Add the option to open footer links in a new tab (#136)

This commit is contained in:
Giorgio Productions 2021-09-11 01:17:13 +02:00 committed by GitHub
parent 9a1c84d6b7
commit b2fe90ba88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -41,7 +41,8 @@
{ {
"title": "Changelog", "title": "Changelog",
"url": "https://github.com/derpibooru/philomena/commits/master", "url": "https://github.com/derpibooru/philomena/commits/master",
"bold": true "bold": true,
"target": "_blank"
}, },
{ {
"title": "FAQs", "title": "FAQs",
@ -90,7 +91,8 @@
}, },
{ {
"title": "Twitter", "title": "Twitter",
"url": "https://twitter.com/Derpibooru" "url": "https://twitter.com/Derpibooru",
"target": "_blank"
} }
] ]
} }

View file

@ -9,9 +9,9 @@ footer#footer
= for row <- footer_data[column] do = for row <- footer_data[column] do
= if row["bold"] do = if row["bold"] do
strong strong
a href=row["url"] = row["title"] a href=row["url"] target=row["target"]||"_self" = row["title"]
- else - else
a href=row["url"] = row["title"] a href=row["url"] target=row["target"]||"_self" = row["title"]
br br
#serving_info #serving_info