mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Make full alert banners clickable
This commit is contained in:
parent
6a03c57dbf
commit
227dc24d68
3 changed files with 13 additions and 10 deletions
|
@ -36,7 +36,8 @@ module Jekyll
|
|||
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>'
|
||||
site.config['ALERT']=self.data['banner']
|
||||
site.config['ALERTURL']='/'+dstdir+'/'+dst.gsub('.html','')
|
||||
end
|
||||
if self.data.has_key?('active') and !self.data['active'].nil? and self.data['active'] == true
|
||||
site.config['STATUS']=1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue