mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Handle alert banners in alerts.rb
This commit is contained in:
parent
9e25b71df5
commit
b520e53047
11 changed files with 24 additions and 68 deletions
|
@ -17,6 +17,9 @@ module Jekyll
|
|||
self.data['redirect'] = src.split('.')[0]
|
||||
else
|
||||
self.data['category'] = 'alert'
|
||||
if self.data.has_key?('banner') and !self.data['banner'].nil? and self.data['banner'].length>0
|
||||
site.config['ALERT']='<a href="/'+dstdir+'/'+dst.gsub('.html','')+'">'+self.data['banner']+'</a>'
|
||||
end
|
||||
if self.data.has_key?('alias')
|
||||
site.pages << AlertPage.new(site, base, lang, srcdir, src, '', self.data['alias']+'.html', date)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue