mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 12:08:00 +01:00
Add the option to open footer links in a new tab (#136)
This commit is contained in:
parent
9a1c84d6b7
commit
b2fe90ba88
2 changed files with 7 additions and 5 deletions
|
@ -41,7 +41,8 @@
|
|||
{
|
||||
"title": "Changelog",
|
||||
"url": "https://github.com/derpibooru/philomena/commits/master",
|
||||
"bold": true
|
||||
"bold": true,
|
||||
"target": "_blank"
|
||||
},
|
||||
{
|
||||
"title": "FAQs",
|
||||
|
@ -90,7 +91,8 @@
|
|||
},
|
||||
{
|
||||
"title": "Twitter",
|
||||
"url": "https://twitter.com/Derpibooru"
|
||||
"url": "https://twitter.com/Derpibooru",
|
||||
"target": "_blank"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -5,13 +5,13 @@ footer#footer
|
|||
= for column <- footer_data["cols"] do
|
||||
.footercol
|
||||
h5 = column
|
||||
|
||||
|
||||
= for row <- footer_data[column] do
|
||||
= if row["bold"] do
|
||||
strong
|
||||
a href=row["url"] = row["title"]
|
||||
a href=row["url"] target=row["target"]||"_self" = row["title"]
|
||||
- else
|
||||
a href=row["url"] = row["title"]
|
||||
a href=row["url"] target=row["target"]||"_self" = row["title"]
|
||||
br
|
||||
|
||||
#serving_info
|
||||
|
|
Loading…
Reference in a new issue