mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 02:06:13 +00:00
Normalize page redirections
Use a fallback HTML page with a manual and javascript redirect Keep canonical pages only for alerts
This commit is contained in:
parent
b988ce349c
commit
3da682b36b
11 changed files with 69 additions and 54 deletions
|
@ -14,7 +14,7 @@ module Jekyll
|
|||
self.data['date'] = date
|
||||
self.data['layout'] = 'alert'
|
||||
if dstdir == ''
|
||||
self.data['redirect'] = src.split('.')[0]
|
||||
self.data['canonical'] = '/en/alert/' + 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue