Add parameter to exclude headings from linking.
Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
1e3c716f14
commit
76ef5ce5ef
3 changed files with 13 additions and 6 deletions
|
|
@ -27,11 +27,12 @@
|
|||
#
|
||||
#
|
||||
# params may be set as follows:
|
||||
# params[:format] -> [weit|schmal] (weit)
|
||||
# params[:buzer] -> fallback to buzer.de? (1)
|
||||
# params[:target] -> target for <a href> ('')
|
||||
# params[:class] -> CSS class for <a href> ('')
|
||||
# params[:cache_days] -> cache validity in days (7)
|
||||
# params[:format] -> [weit|schmal] (weit)
|
||||
# params[:buzer] -> fallback to buzer.de? (1)
|
||||
# params[:noheadings] -> exclude headings from linker (0)
|
||||
# params[:target] -> target for <a href> ('')
|
||||
# params[:class] -> CSS class for <a href> ('')
|
||||
# params[:cache_days] -> cache validity in days (7)
|
||||
|
||||
require 'net/http'
|
||||
require 'digest'
|
||||
|
|
@ -70,10 +71,11 @@ module Nanoc::Filters
|
|||
if !@config[:base_url].nil?
|
||||
params[:Anbieterkennung] = @config[:base_url]
|
||||
else
|
||||
params[:Anbieterkennung] = 'http://unknown.nanoc.installation.invalid'
|
||||
params[:Anbieterkennung] = 'http://unknown.nanoc.installation.invalid'
|
||||
end
|
||||
params[:format] ||= 'weit'
|
||||
params[:buzer] ||= 1
|
||||
params[:ohnehtags] = params.delete(:noheadings)
|
||||
return params
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue