Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Security Policy (CSP) #19

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"detail": "Start Hugo’s development server to view the site. Press Ctrl + C to stop Hugo’s development server."
},
{
"label": "upgrade",
"label": "yarn",
"command": "yarn upgrade --latest && yarn list && npx depcheck",
"detail": "Upgrade package.json."
},
Expand Down
13 changes: 13 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ title = 'Fixie Agents by uLynks'
# theme = 'ananke'
theme = 'ulynks'

# Configure server
# https://gohugo.io/getting-started/configuration/#configure-server

[server]
[[server.headers]]
for = '/**'
[server.headers.values]
Content-Security-Policy = "default-src 'self' https://api.fixie.ai https://cdn.jsdelivr.net https://embed.fixie.ai https://eu.umami.is https://fonts.gstatic.com https://fonts.googleapis.com"
Referrer-Policy = 'strict-origin-when-cross-origin'
X-Content-Type-Options = 'nosniff'
X-Frame-Options = 'DENY'
X-XSS-Protection = '1; mode=block'

[params]
subtitle = 'Growing on Fyn, Denmark 🇩🇰'
umami = '3cf42fbf-5ff7-4ba7-b4d1-607641c5b4e8'
Expand Down
2 changes: 1 addition & 1 deletion public/assets/main.css

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions public/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
<meta property="twitter:title" content="Fixie Agents by uLynks | Categories">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="http://localhost:1313/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head><body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
<nav class="UnderlineNav" aria-label="Nav bar">
<div class="UnderlineNav-body">
<a href="/"><img class="avatar" height="40" alt="Fixie Agents by uLynks" src="/img/logo.png" width="40"></a>
Expand Down Expand Up @@ -54,7 +56,7 @@ <h1>Categories</h1>


<footer class="Footer py-3">
<p><a style="color:black" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
<p><a class="fgColor-default" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
2024</a>. All rights reserved.
</p>
</footer></div><script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
Expand Down
8 changes: 5 additions & 3 deletions public/django/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
<meta property="twitter:title" content="Fixie Agents by uLynks | Django">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="http://localhost:1313/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head><body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
<nav class="UnderlineNav" aria-label="Nav bar">
<div class="UnderlineNav-body">
<a href="/"><img class="avatar" height="40" alt="Fixie Agents by uLynks" src="/img/logo.png" width="40"></a>
Expand Down Expand Up @@ -60,7 +62,7 @@
</iframe>
</main>
<footer class="Footer py-3">
<p><a style="color:black" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
<p><a class="fgColor-default" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
2024</a>. All rights reserved.
</p>
</footer></div><script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
Expand Down
8 changes: 5 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
<meta property="twitter:title" content="Fixie Agents by uLynks">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="http://localhost:1313/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head><body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
<nav class="UnderlineNav" aria-label="Nav bar">
<div class="UnderlineNav-body">
<a href="/"><img class="avatar" height="40" alt="Fixie Agents by uLynks" src="/img/logo.png" width="40"></a>
Expand Down Expand Up @@ -76,7 +78,7 @@ <h1 class="title-h1 border-bottom-0 mb-0">Fixie Agents by uLynks</h1>

</main>
<footer class="Footer py-3">
<p><a style="color:black" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
<p><a class="fgColor-default" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
2024</a>. All rights reserved.
</p>
</footer></div><script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
Expand Down
8 changes: 5 additions & 3 deletions public/posts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
<meta property="twitter:title" content="Fixie Agents by uLynks | Posts">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="http://localhost:1313/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head><body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
<nav class="UnderlineNav" aria-label="Nav bar">
<div class="UnderlineNav-body">
<a href="/"><img class="avatar" height="40" alt="Fixie Agents by uLynks" src="/img/logo.png" width="40"></a>
Expand Down Expand Up @@ -58,7 +60,7 @@ <h2><a href="/posts/my-first-post/">My First Post</a></h2>
Visit the Hugo website!

<footer class="Footer py-3">
<p><a style="color:black" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
<p><a class="fgColor-default" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
2024</a>. All rights reserved.
</p>
</footer></div><script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
Expand Down
8 changes: 5 additions & 3 deletions public/posts/my-first-post/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
<meta property="twitter:title" content="Fixie Agents by uLynks | My First Post">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="http://localhost:1313/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head><body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
<nav class="UnderlineNav" aria-label="Nav bar">
<div class="UnderlineNav-body">
<a href="/"><img class="avatar" height="40" alt="Fixie Agents by uLynks" src="/img/logo.png" width="40"></a>
Expand Down Expand Up @@ -63,7 +65,7 @@ <h2 id="introduction">Introduction</h2>
</iframe>
</main>
<footer class="Footer py-3">
<p><a style="color:black" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
<p><a class="fgColor-default" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
2024</a>. All rights reserved.
</p>
</footer></div><script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
Expand Down
8 changes: 5 additions & 3 deletions public/python/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
<meta property="twitter:title" content="Fixie Agents by uLynks | Python">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="http://localhost:1313/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head><body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
<nav class="UnderlineNav" aria-label="Nav bar">
<div class="UnderlineNav-body">
<a href="/"><img class="avatar" height="40" alt="Fixie Agents by uLynks" src="/img/logo.png" width="40"></a>
Expand Down Expand Up @@ -60,7 +62,7 @@
</iframe>
</main>
<footer class="Footer py-3">
<p><a style="color:black" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
<p><a class="fgColor-default" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
2024</a>. All rights reserved.
</p>
</footer></div><script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
Expand Down
8 changes: 5 additions & 3 deletions public/react/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
<meta property="twitter:title" content="Fixie Agents by uLynks | React">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="http://localhost:1313/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head><body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
<nav class="UnderlineNav" aria-label="Nav bar">
<div class="UnderlineNav-body">
<a href="/"><img class="avatar" height="40" alt="Fixie Agents by uLynks" src="/img/logo.png" width="40"></a>
Expand Down Expand Up @@ -60,7 +62,7 @@
</iframe>
</main>
<footer class="Footer py-3">
<p><a style="color:black" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
<p><a class="fgColor-default" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
2024</a>. All rights reserved.
</p>
</footer></div><script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
Expand Down
8 changes: 5 additions & 3 deletions public/scopus/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
<meta property="twitter:title" content="Fixie Agents by uLynks | Scopus">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="http://localhost:1313/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head><body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
<nav class="UnderlineNav" aria-label="Nav bar">
<div class="UnderlineNav-body">
<a href="/"><img class="avatar" height="40" alt="Fixie Agents by uLynks" src="/img/logo.png" width="40"></a>
Expand Down Expand Up @@ -60,7 +62,7 @@
</iframe>
</main>
<footer class="Footer py-3">
<p><a style="color:black" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
<p><a class="fgColor-default" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
2024</a>. All rights reserved.
</p>
</footer></div><script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
Expand Down
8 changes: 5 additions & 3 deletions public/sdu/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
<meta property="twitter:title" content="Fixie Agents by uLynks | SDU">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="http://localhost:1313/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head><body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
<nav class="UnderlineNav" aria-label="Nav bar">
<div class="UnderlineNav-body">
<a href="/"><img class="avatar" height="40" alt="Fixie Agents by uLynks" src="/img/logo.png" width="40"></a>
Expand Down Expand Up @@ -60,7 +62,7 @@
</iframe>
</main>
<footer class="Footer py-3">
<p><a style="color:black" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
<p><a class="fgColor-default" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
2024</a>. All rights reserved.
</p>
</footer></div><script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
Expand Down
8 changes: 5 additions & 3 deletions public/tags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
<meta property="twitter:title" content="Fixie Agents by uLynks | Tags">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="http://localhost:1313/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head><body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
<nav class="UnderlineNav" aria-label="Nav bar">
<div class="UnderlineNav-body">
<a href="/"><img class="avatar" height="40" alt="Fixie Agents by uLynks" src="/img/logo.png" width="40"></a>
Expand Down Expand Up @@ -54,7 +56,7 @@ <h1>Tags</h1>


<footer class="Footer py-3">
<p><a style="color:black" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
<p><a class="fgColor-default" href="https://www.ulynks.io/" target="_blank">Fixie Agents by uLynks Copyright
2024</a>. All rights reserved.
</p>
</footer></div><script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
Expand Down
2 changes: 1 addition & 1 deletion static/assets/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/ulynks/assets/css/app.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions themes/ulynks/assets/scss/app.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Primer CSS Typography variables
// see: <https://github.com/pages-themes/primer/blob/master/_sass/primer-support/lib/variables/typography.scss>
// CSS utilities > Colors
// see: <https://primer.style/foundations/css-utilities/colors>

// Heading sizes - desktop
// $h1-size: 32px !default;
Expand All @@ -14,6 +16,10 @@ $body-font: "Poppins", sans-serif !default;

// Custom

.w-800 {
max-width: 800px;
}

.Footer {
position: fixed;
bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion themes/ulynks/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{- partial "head.html" . -}}

<body>
<div style="max-width: 800px" class="mx-auto py-1 px-2">
<div class="w-800 mx-auto py-1 px-2">
{{- partial "header.html" . -}}
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
Expand Down
2 changes: 1 addition & 1 deletion themes/ulynks/layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<footer class="Footer py-3">
<p><a style="color:black" href="{{ .Site.Params.mainWebsite }}" target="_blank">{{ .Site.Title }} Copyright
<p><a class="fgColor-default" href="{{ .Site.Params.mainWebsite }}" target="_blank">{{ .Site.Title }} Copyright
{{ now.Year }}</a>. All rights reserved.
</p>
</footer>
4 changes: 3 additions & 1 deletion themes/ulynks/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
<meta property="twitter:title" content="{{ $title }}">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="canonical" href="{{ .Site.BaseURL }}">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://embed.fixie.ai">
<link rel="dns-prefetch" href="https://eu.umami.is">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="/assets/main.css">
</head>
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1652,9 +1652,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001578, caniuse-lite@^1.0.30001587:
version "1.0.30001588"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001588.tgz#07f16b65a7f95dba82377096923947fb25bce6e3"
integrity sha512-+hVY9jE44uKLkH0SrUTqxjxqNTOWHsbnQDIKjwkZ3lNTzUUVdBLBGXtj/q5Mp5u98r3droaZAewQuEDzjQdZlQ==
version "1.0.30001589"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001589.tgz#7ad6dba4c9bf6561aec8291976402339dc157dfb"
integrity sha512-vNQWS6kI+q6sBlHbh71IIeC+sRwK2N3EDySc/updIGhIee2x5z00J4c1242/5/d6EpEMdOnk/m+6tuk4/tcsqg==

chalk@^2.4.1, chalk@^2.4.2:
version "2.4.2"
Expand Down