Make full alert banners clickable

This commit is contained in:
Saivann 2015-07-04 11:59:28 -04:00
parent 6a03c57dbf
commit 227dc24d68
No known key found for this signature in database
GPG key ID: 5780F5D31B5577B0
3 changed files with 13 additions and 10 deletions

View file

@ -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