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,9 +9,6 @@ pygmentsCodeFences = true
pygmentsCodeFencesGuessSyntax = true
enableEmoji = true
[blackfriday]
noreferrerLinks = true
[taxonomies]
category = "categories"
series = "series"
@ -20,7 +17,7 @@ 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>'
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"]
@ -36,24 +33,28 @@ 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"
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"
target = "_blank"
rel = "noopener noreferrer me"
[[params.social]]
name = "RSS"
icon = "fa fa-2x fa-rss"
weight = 4
url = "/index.xml"
target = "_blank"
rel = "alternate"
type = "application/rss+xml"
@ -64,12 +65,10 @@ languageName = ":uk:"
name = "About"
weight = 1
url = "about/"
[[languages.en.menu.main]]
name = "Blog"
weight = 2
url = "posts/"
[[languages.en.menu.main]]
name = "Contact"
weight = 3
@ -86,14 +85,12 @@ keywords = "blog,udvikler,personlig"
[[languages.da.menu.main]]
name = "Om"
weight = 1
url = "om/"
url = "about/"
[[languages.da.menu.main]]
name = "Blog"
weight = 2
url = "posts/"
[[languages.da.menu.main]]
name = "Kontakt"
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"
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>