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",
"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"
}
]
}

View file

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