Add noopener and noreferrer

This commit is contained in:
Sam A. 2022-05-23 18:04:31 +02:00
parent baadf2eff9
commit 9c6428aafc
9 changed files with 81 additions and 87 deletions

View file

@ -9,91 +9,88 @@ pygmentsCodeFences = true
pygmentsCodeFencesGuessSyntax = true
enableEmoji = true
[blackfriday]
noreferrerLinks = true
[taxonomies]
category = "categories"
series = "series"
tag = "tags"
author = "authors"
category = "categories"
series = "series"
tag = "tags"
author = "authors"
[params]
author = "Sam Al-Sapti"
license = '<a rel="license noopener noreferrer" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-NC-SA 4.0</a>'
description = "Sam Al-Sapti's personal website"
keywords = "blog,developer,personal"
info = ["BSc Student", "Software Developer"]
avatarURL = "/images/avatar.png"
dateFormat = "January 2, 2006"
since = 2022
colorScheme = "auto"
hideColorSchemeToggle = false
maxSeeAlsoItems = 5
author = "Sam Al-Sapti"
license = '<a rel="noopener noreferrer license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-NC-SA 4.0</a>'
description = "Sam Al-Sapti's personal website"
keywords = "blog,developer,personal"
info = ["BSc Student", "Software Developer"]
avatarURL = "/images/avatar.png"
dateFormat = "January 2, 2006"
since = 2022
colorScheme = "auto"
hideColorSchemeToggle = false
maxSeeAlsoItems = 5
[[params.social]]
name = "Mastodon"
icon = "fa fa-2x fa-mastodon"
weight = 1
url = "https://social.data.coop/@samsapti"
name = "Mastodon"
icon = "fa fa-2x fa-mastodon"
weight = 1
url = "https://social.data.coop/@samsapti"
target = "_blank"
rel = "noopener noreferrer me"
[[params.social]]
name = "GitHub"
icon = "fa fa-2x fa-github"
weight = 2
url = "https://github.com/samsapti"
name = "GitHub"
icon = "fa fa-2x fa-github"
weight = 2
url = "https://github.com/samsapti"
target = "_blank"
rel = "noopener noreferrer me"
[[params.social]]
name = "Gitea"
icon = "fa fa-2x fa-git-square"
weight = 3
url = "https://git.data.coop/samsapti"
name = "Gitea"
icon = "fa fa-2x fa-git-square"
weight = 3
url = "https://git.data.coop/samsapti"
target = "_blank"
rel = "noopener noreferrer me"
[[params.social]]
name = "RSS"
icon = "fa fa-2x fa-rss"
weight = 4
url = "/index.xml"
rel = "alternate"
type = "application/rss+xml"
name = "RSS"
icon = "fa fa-2x fa-rss"
weight = 4
url = "/index.xml"
target = "_blank"
rel = "alternate"
type = "application/rss+xml"
[languages.en]
languageName = ":uk:"
languageName = ":uk:"
[[languages.en.menu.main]]
name = "About"
weight = 1
url = "about/"
name = "About"
weight = 1
url = "about/"
[[languages.en.menu.main]]
name = "Blog"
weight = 2
url = "posts/"
name = "Blog"
weight = 2
url = "posts/"
[[languages.en.menu.main]]
name = "Contact"
weight = 3
url = "contact/"
name = "Contact"
weight = 3
url = "contact/"
[languages.da]
languageName = ":denmark:"
languageName = ":denmark:"
[languages.da.params]
info = ["BSc Studerende", "Softwareudvikler"]
description = "Sam Al-Saptis personlige hjemmeside"
keywords = "blog,udvikler,personlig"
info = ["BSc Studerende", "Softwareudvikler"]
description = "Sam Al-Saptis personlige hjemmeside"
keywords = "blog,udvikler,personlig"
[[languages.da.menu.main]]
name = "Om"
weight = 1
url = "om/"
name = "Om"
weight = 1
url = "about/"
[[languages.da.menu.main]]
name = "Blog"
weight = 2
url = "posts/"
name = "Blog"
weight = 2
url = "posts/"
[[languages.da.menu.main]]
name = "Kontakt"
weight = 3
url = "kontakt/"
name = "Kontakt"
weight = 3
url = "contact/"

6
content/about.da.md Normal file
View file

@ -0,0 +1,6 @@
---
title: "Om mig"
date: 2022-05-23T17:12:33+02:00
draft: true
---

View file

@ -1,8 +1,5 @@
---
title: "About"
date: 2022-05-20T20:43:02+02:00
title: "About me"
date: 2022-05-23T17:12:30+02:00
draft: true
---
hello

6
content/contact.da.md Normal file
View file

@ -0,0 +1,6 @@
---
title: "Kontaktinformation"
date: 2022-05-23T17:12:39+02:00
draft: true
---

View file

@ -1,6 +1,6 @@
---
title: "Contact"
date: 2022-05-23T16:13:02+02:00
title: "Contact information"
date: 2022-05-23T17:12:37+02:00
draft: true
---

View file

@ -1,6 +0,0 @@
---
title: "Kontakt"
date: 2022-05-23T16:13:07+02:00
draft: true
---

View file

@ -1,6 +0,0 @@
---
title: "Om"
date: 2022-05-23T16:12:55+02:00
draft: true
---

View file

@ -1,7 +1,6 @@
---
title: "Posts"
date: 2022-05-23T16:13:37+02:00
date: 2022-05-23T17:12:43+02:00
draft: true
---
This page is empty.

View file

@ -0,0 +1 @@
<a rel="noopener noreferrer" href="{{ .Destination | safeURL }}" {{ with .Title }} title="{{ . }}" {{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" {{ end }}>{{ .Text }}</a>