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 pygmentsCodeFencesGuessSyntax = true
enableEmoji = true enableEmoji = true
[blackfriday]
noreferrerLinks = true
[taxonomies] [taxonomies]
category = "categories" category = "categories"
series = "series" series = "series"
tag = "tags" tag = "tags"
author = "authors" author = "authors"
[params] [params]
author = "Sam Al-Sapti" 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>' 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" description = "Sam Al-Sapti's personal website"
keywords = "blog,developer,personal" keywords = "blog,developer,personal"
info = ["BSc Student", "Software Developer"] info = ["BSc Student", "Software Developer"]
avatarURL = "/images/avatar.png" avatarURL = "/images/avatar.png"
dateFormat = "January 2, 2006" dateFormat = "January 2, 2006"
since = 2022 since = 2022
colorScheme = "auto" colorScheme = "auto"
hideColorSchemeToggle = false hideColorSchemeToggle = false
maxSeeAlsoItems = 5 maxSeeAlsoItems = 5
[[params.social]] [[params.social]]
name = "Mastodon" name = "Mastodon"
icon = "fa fa-2x fa-mastodon" icon = "fa fa-2x fa-mastodon"
weight = 1 weight = 1
url = "https://social.data.coop/@samsapti" url = "https://social.data.coop/@samsapti"
target = "_blank"
rel = "noopener noreferrer me"
[[params.social]] [[params.social]]
name = "GitHub" name = "GitHub"
icon = "fa fa-2x fa-github" icon = "fa fa-2x fa-github"
weight = 2 weight = 2
url = "https://github.com/samsapti" url = "https://github.com/samsapti"
target = "_blank"
rel = "noopener noreferrer me"
[[params.social]] [[params.social]]
name = "Gitea" name = "Gitea"
icon = "fa fa-2x fa-git-square" icon = "fa fa-2x fa-git-square"
weight = 3 weight = 3
url = "https://git.data.coop/samsapti" url = "https://git.data.coop/samsapti"
target = "_blank"
rel = "noopener noreferrer me"
[[params.social]] [[params.social]]
name = "RSS" name = "RSS"
icon = "fa fa-2x fa-rss" icon = "fa fa-2x fa-rss"
weight = 4 weight = 4
url = "/index.xml" url = "/index.xml"
rel = "alternate" target = "_blank"
type = "application/rss+xml" rel = "alternate"
type = "application/rss+xml"
[languages.en] [languages.en]
languageName = ":uk:" languageName = ":uk:"
[[languages.en.menu.main]] [[languages.en.menu.main]]
name = "About" name = "About"
weight = 1 weight = 1
url = "about/" url = "about/"
[[languages.en.menu.main]] [[languages.en.menu.main]]
name = "Blog" name = "Blog"
weight = 2 weight = 2
url = "posts/" url = "posts/"
[[languages.en.menu.main]] [[languages.en.menu.main]]
name = "Contact" name = "Contact"
weight = 3 weight = 3
url = "contact/" url = "contact/"
[languages.da] [languages.da]
languageName = ":denmark:" languageName = ":denmark:"
[languages.da.params] [languages.da.params]
info = ["BSc Studerende", "Softwareudvikler"] info = ["BSc Studerende", "Softwareudvikler"]
description = "Sam Al-Saptis personlige hjemmeside" description = "Sam Al-Saptis personlige hjemmeside"
keywords = "blog,udvikler,personlig" keywords = "blog,udvikler,personlig"
[[languages.da.menu.main]] [[languages.da.menu.main]]
name = "Om" name = "Om"
weight = 1 weight = 1
url = "om/" url = "about/"
[[languages.da.menu.main]] [[languages.da.menu.main]]
name = "Blog" name = "Blog"
weight = 2 weight = 2
url = "posts/" url = "posts/"
[[languages.da.menu.main]] [[languages.da.menu.main]]
name = "Kontakt" name = "Kontakt"
weight = 3 weight = 3
url = "kontakt/" 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" title: "About me"
date: 2022-05-20T20:43:02+02:00 date: 2022-05-23T17:12:30+02:00
draft: true 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" title: "Contact information"
date: 2022-05-23T16:13:02+02:00 date: 2022-05-23T17:12:37+02:00
draft: true 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" title: "Posts"
date: 2022-05-23T16:13:37+02:00 date: 2022-05-23T17:12:43+02:00
draft: true 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>