added privacy policy

This commit is contained in:
Vrifox 2020-10-05 09:57:10 +02:00
parent c8698d8c80
commit 26cd9f0bea
16 changed files with 285 additions and 112 deletions

1
.gitignore vendored
View file

@ -10,3 +10,4 @@ deploy.sh
# not ignored directories # not ignored directories
!/content/errorpages/ !/content/errorpages/
!/content/privacy/

View file

@ -3,10 +3,16 @@
@import '../partials/footer'; @import '../partials/footer';
header { header {
align-items: center;
background: rgb(60, 60, 90);
border-radius: 5px;
display: flex;
height: 200px;
margin: 40px 0;
text-align: center; text-align: center;
margin: 100px 0;
h1 { h1 {
font-size: 2em; font-size: 2em;
margin: auto;
} }
} }

View file

@ -6,7 +6,7 @@
margin: 80px auto; margin: 80px auto;
max-width: 720px; max-width: 720px;
.meta { .meta {
color: rgb(180, 180, 220); color: rgb(215, 215, 235);
} }
.title { .title {
font-size: 2em; font-size: 2em;
@ -19,32 +19,37 @@
max-width: 100%; max-width: 100%;
} }
a { a {
background: rgb(60, 60, 90); border-bottom: 1px solid;
border-radius: 5px; color: rgb(245, 245, 255);
color: rgb(240, 240, 250); margin: -5px;
margin: -5px 0; padding: 5px;
padding: 5px 5px; transition: border .2s, color .2s;
transition: background .2s, color .2s;
&:hover { &:hover {
background: rgb(255, 130, 130); color: rgb(255, 130, 130);
color: rgb(255, 255, 255);
text-decoration: none; text-decoration: none;
} }
} }
h2 {
font-size: .6em;
}
aside { aside {
margin-top: 80px; margin-top: 80px;
.tags { .tags {
display: flex; display: flex;
list-style: none; list-style: none;
margin-left: -10px; margin-left: -15px;
padding: 0; padding: 0;
li { li {
a { a {
color: rgb(180, 180, 220); background: rgb(60, 60, 90);
margin-left: 10px; border: 0;
border-radius: 5px;
color: rgb(215, 215, 225);
margin-left: 15px;
padding: 10px; padding: 10px;
&:hover { &:hover {
background: rgb(70, 70, 105); background: rgb(50, 50, 75);
color: rgb(255, 255, 255);
} }
} }
} }
@ -57,34 +62,54 @@
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
grid-gap: 1rem; grid-gap: 1rem;
margin: 20px auto -50px auto; margin: 20px auto 0 auto;
max-width: 720px; max-width: 720px;
white-space: nowrap;
&::after { &::after {
background: rgb(50, 50, 75); background: rgb(50, 50, 75);
content: ''; content: '';
height: 210px; height: 200px;
left: 0; left: 0;
position: absolute; position: absolute;
width: 100vw; width: 100vw;
z-index: -10; z-index: -10;
} }
article { article {
border-radius: 5px;
color: rgb(255, 255, 255);
display: flex; display: flex;
flex-flow: column; flex-flow: column;
height: max-content; height: max-content;
margin: 20px 0; margin: 20px 0;
transition: background .2s;
a { a {
margin: 10px 0; border-bottom: 1px solid transparent;
color: rgb(215, 215, 225);
transition: border .2s, color .2s;
&:hover { &:hover {
text-decoration: underline; border-bottom: 1px solid;
color: rgb(255, 130, 130);
text-decoration: none;
} }
} }
} }
.next-article {
margin-right: auto;
}
.previous-article { .previous-article {
text-align: right; margin-left: auto;
}
}
@media (max-width: 400px) {
.section-articles {
grid-template-columns: repeat(1, 1fr);
&::after {
height: 250px;
}
.next-article {
margin: 20px auto 0 auto;
}
.previous-article {
margin: 0 auto;
}
} }
} }

View file

@ -2,17 +2,31 @@
@import 'partials/nav'; @import 'partials/nav';
header { header {
margin: 100px 0; align-items: center;
background: rgb(60, 60, 90);
border-radius: 5px;
display: flex;
height: 200px;
margin: 40px 0;
text-align: center; text-align: center;
h1 { h1 {
font-size: 2em; font-size: 2em;
margin: auto;
} }
} }
h1 { .section-header {
a:hover { color: rgb(215, 215, 225);
text-decoration: none; font-size: 1.5em;
a {
border-bottom: 2px solid; border-bottom: 2px solid;
color: rgb(245, 245, 255);
font-weight: bold;
transition: border .2s, color .2s;
&:hover {
color: rgb(255, 130, 130);
text-decoration: none;
}
} }
} }

View file

@ -1,6 +1,6 @@
footer { footer {
background: rgb(30, 30, 45); background: rgb(30, 30, 45);
color: rgb(200, 200, 230); color: rgb(215, 215, 235);
margin-top: 100px; margin-top: 100px;
overflow-x: auto; overflow-x: auto;
overflow-y: hidden; overflow-y: hidden;
@ -21,17 +21,21 @@ footer {
margin-left: auto; margin-left: auto;
ul { ul {
display: flex; display: flex;
padding: 0;
}
li {
list-style-type: none; list-style-type: none;
padding: 4px 0 4px 30px; padding: 0;
} li {
margin-left: 30px;
a { a {
color: rgb(200, 200, 230); border-bottom: 1px solid transparent;
color: rgb(215, 215, 235);
padding: 5px 0;
transition: border .2s, color .2s;
&:hover { &:hover {
text-decoration: none;
border-bottom: 1px solid; border-bottom: 1px solid;
color: rgb(255, 130, 130);
text-decoration: none;
}
}
} }
} }
} }

View file

@ -9,7 +9,7 @@ html {
} }
body { body {
background: rgb(40, 40, 60); background: rgb(40, 40, 60);
color: rgb(240, 240, 255); color: rgb(245, 245, 255);
display: grid; display: grid;
font-family: monospace, 'Lucida Console', 'Monaco'; font-family: monospace, 'Lucida Console', 'Monaco';
line-height: 1.8; line-height: 1.8;
@ -22,6 +22,22 @@ a {
text-decoration: underline; text-decoration: underline;
} }
} }
h1 {
font-size: 1.5em;
}
h2 {
font-size: 1.3em;
}
h3 {
font-size: 1.1em;
}
h4 {
font-size: .9em;
}
hr {
color: rgb(60, 60, 90);
margin: 50px 20px;
}
.container { .container {
margin: 0 auto; margin: 0 auto;

View file

@ -17,9 +17,15 @@ nav {
&:hover { &:hover {
background: rgb(50, 50, 75); background: rgb(50, 50, 75);
} }
&.active {
border-bottom: 2px solid rgb(215,215,225);
border-top: 2px solid transparent;
padding: 16px 30px;
}
} }
} }
.seperator { .seperator {
cursor: default;
display: block; display: block;
padding: 20px; padding: 20px;
} }
@ -30,6 +36,11 @@ nav {
padding: 0; padding: 0;
li { li {
list-style-type: none; list-style-type: none;
&.active a {
border-bottom: 2px solid rgb(215,215,225);
border-top: 4px solid transparent;
padding: 16px 30px;
}
a { a {
color: rgb(245, 245, 245); color: rgb(245, 245, 245);
display: block; display: block;
@ -85,8 +96,8 @@ nav {
ul { ul {
li { li {
a { a {
color: rgb(215, 215, 225);
background: rgb(50, 50, 75); background: rgb(50, 50, 75);
color: rgb(215, 215, 225);
&:hover { &:hover {
background: rgb(40, 40, 60); background: rgb(40, 40, 60);
} }

View file

@ -2,17 +2,23 @@
@import '../partials/nav'; @import '../partials/nav';
header { header {
margin: 100px 0; align-items: center;
background: rgb(60, 60, 90);
border-radius: 5px;
display: flex;
height: 200px;
margin: 40px 0;
text-align: center; text-align: center;
h1 { h1 {
font-size: 2em; font-size: 2em;
margin: auto;
} }
} }
.section-articles { .section-articles {
display: grid; display: grid;
grid-gap: 1rem; grid-gap: 1rem;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(2, 1fr);
margin: 20px 0; margin: 20px 0;
a { a {
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
@ -36,7 +42,7 @@ header {
background: rgb(80, 80, 120); background: rgb(80, 80, 120);
border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px;
margin: -20px -20px 20px -20px; margin: -20px -20px 20px -20px;
max-height: 170px; max-height: 250px;
max-width: calc(100% + 40px); max-width: calc(100% + 40px);
object-fit: cover; object-fit: cover;
order: -1; order: -1;

View file

@ -5,16 +5,22 @@ enableRobotsTXT: true
params: params:
menuname: vrifox.cc menuname: vrifox.cc
menu: menu:
name:
- identifier: vrifox.cc
name: vrifox.cc
title: vrifox.cc
url: /
weight: 1
main: main:
- identifier: blog - identifier: blog
name: blog name: blog
title: blog title: blog
url: /blog url: /blog/
weight: 1 weight: 1
- identifier: projects - identifier: projects
name: projects name: projects
title: projects title: projects
url: /projects url: /projects/
weight: 2 weight: 2
externallinks: externallinks:
- identifier: mastodon - identifier: mastodon
@ -28,13 +34,18 @@ menu:
url: https://git.vrifox.cc/vrifox url: https://git.vrifox.cc/vrifox
weight: 2 weight: 2
footer: footer:
- identifier: privacy
name: privacy
title: privacy
url: https://vrifox.cc/privacy
weight: 1
- identifier: feed - identifier: feed
name: feed (rss) name: feed (rss)
title: rss-feed title: rss-feed
url: https://vrifox.cc/blog/index.xml url: https://vrifox.cc/blog/index.xml
weight: 1 weight: 2
- identifier: sourcecode - identifier: sourcecode
name: source code name: source code
title: source code title: source code
url: https://git.vrifox.cc/vrifox/vrifox.cc url: https://git.vrifox.cc/vrifox/vrifox.cc
weight: 2 weight: 3

33
content/privacy/_index.md Normal file
View file

@ -0,0 +1,33 @@
---
title: privacy policy
---
#### last updated: 2020-10-04
# Websites
This privacy policy applies to:
- vrifox.cc
- git.vrifox.cc
# What data do I store and process?
- browser type and version
- operating system
- requested url
- downloaded / accessed files
- referrer url
- ip address
- time of request
The data will not be given to third party and deleted after three (3) days.
## Cookies
Cookies will not be set on these websites.
I configured [nginx](https://nginx.org) to drop the header »Set-Cookie«.
---
This privacy policy was inspired by [Natenoms Datenschutz[-erklärung]](https://blog.natenom.com/datenschutz/).

View file

@ -1,6 +1,6 @@
<!doctype html> <!doctype html>
<html> <html lang="en">
<head> <head>
<title>{{ with .Title }} {{ . }} {{ end }}{{ .Site.Title }}</title> <title>{{ with .Title }} {{ . }} {{ end }}{{ .Site.Title }}</title>

View file

@ -3,10 +3,11 @@
{{ end }} {{ end }}
{{ define "main" }} {{ define "main" }}
<main class="container"> <main>
<div class="container">
<section> <section>
<header> <header>
<h1>{{ .Params.heading }}</h1> <h1>{{ .Title }}</h1>
<span class="subtitle">{{.Params.subheading}}</span> <span class="subtitle">{{.Params.subheading}}</span>
</header> </header>
{{ .Content }} {{ .Content }}
@ -16,19 +17,28 @@
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
<article> <article>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ if eq .Params.type "project" }}
<p class="" title="last change: {{ .Date.Format "2 Jan 2006" }}">
{{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }}
{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}
</p>
{{ end }}
{{ if ne .Params.type "project" }}
<p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}"> <p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">
<span class="date">{{ .Date.Format "2 January 2006" }}</span> <span class="date">{{ .Date.Format "2 January 2006" }}</span>
<span class="author">{{ with .Params.author }}by {{ end }}{{ .Params.author }}</span> {{ with .Params.author }}<span class="author">by {{ .Params.author }}</span>{{ end }}
</p> </p>
{{ end }}
{{ with .Description }} {{ with .Description }}
<p>{{ . }}</p> <p>{{ . }}</p>
{{ end }} {{ end }}
{{ with .Params.featured_image }} {{ with .Params.featured_image }}
<img src="{{ . | relURL }}" loading="lazy"> <img src="{{ . | relURL }}" loading="lazy" alt="">
{{ end }} {{ end }}
</article> </article>
</a> </a>
{{ end }} {{ end }}
</section> </section>
</div>
</main> </main>
{{ end }} {{ end }}

View file

@ -14,21 +14,26 @@
</p> </p>
<h1 class="title">{{ .Title }}</h1> <h1 class="title">{{ .Title }}</h1>
{{ with .Params.featured_image }} {{ with .Params.featured_image }}
<img src="{{ . | relURL }}" loading="lazy"> <img src="{{ . | relURL }}" loading="lazy" alt="">
{{ end }} {{ end }}
{{ .Content }} {{ .Content }}
<aside class="meta"> <aside class="meta">
{{ with .Params.topics }} {{ with .Params.topics }}
<ul class="topics"> <ul class="topics">
{{ range . }} {{ range . }}
<li><a href="{{ "topics" | relURL}}/{{ . | urlize }}">{{ . }}</a> </li> <li>
<a href="{{ "topics" | relURL}}/{{ . | urlize }}">{{ . }}</a>
</li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}
{{ with .Params.tags }} {{ with .Params.tags }}
<h3>tags</h3>
<ul class="tags"> <ul class="tags">
{{ range . }} {{ range . }}
<li> <a href="{{ "tags" | relURL }}/{{ . | urlize }}">{{ . }}</a> </li> <li>
<a href="{{ "tags" | relURL }}/{{ . | urlize }}">{{ . }}</a>
</li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}
@ -37,12 +42,20 @@
</section> </section>
<section class="section-articles"> <section class="section-articles">
<article class="next-article"> <article class="next-article">
{{ with .NextInSection }}<span>{{ if eq .Params.type "project" }}next project{{ end }}{{ if ne .Params.type "project" }}next article{{ end }}</span> {{ with .NextInSection }}
<a href="{{ .Permalink }}">{{ .Title }}</a>{{ end }} <a href="{{ .Permalink }}">
{{ if eq .Params.type "project" }}&leftarrow; next project{{ end }}
{{ if ne .Params.type "project" }}&leftarrow; next article{{ end }}
</a>
{{ end }}
</article> </article>
<article class="previous-article"> <article class="previous-article">
{{ with .PrevInSection }}<span>{{ if eq .Params.type "project" }}previous project{{ end }}{{ if ne .Params.type "project" }}previous article{{ end }}</span> {{ with .PrevInSection }}<span></span>
<a href="{{ .Permalink }}">{{ .Title }}</a>{{ end }} <a href="{{ .Permalink }}">
{{ if eq .Params.type "project" }}previous project &rightarrow;{{ end }}
{{ if ne .Params.type "project" }}previous article &rightarrow;{{ end }}
</a>
{{ end }}
</article> </article>
</section> </section>
</div> </div>

View file

@ -12,7 +12,9 @@
</header> </header>
{{.Content}} {{.Content}}
</section> </section>
<h1>latest <a href="{{ "/blog" | relURL }}">posts</a></h1> <span class="section-header">latest
<a href="{{ "/blog" | relURL }}">posts</a>
</span>
<section class="section-articles"> <section class="section-articles">
{{ range first 2 (where .Site.RegularPages "Type" "post") }} {{ range first 2 (where .Site.RegularPages "Type" "post") }}
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
@ -26,13 +28,15 @@
<p>{{ . }}</p> <p>{{ . }}</p>
{{ end }} {{ end }}
{{ with .Params.featured_image }} {{ with .Params.featured_image }}
<img src="{{ . | relURL }}"> <img src="{{ . | relURL }}" alt="">
{{ end }} {{ end }}
</article> </article>
</a> </a>
{{ end }} {{ end }}
</section> </section>
<h1>latest <a href="{{ "/projects" | relURL }}">projects</a></h1> <span class="section-header">latest
<a href="{{ "/projects" | relURL }}">projects</a>
</span>
<section class="section-projects"> <section class="section-projects">
{{ range first 3 (where .Site.RegularPages "Type" "project") }} {{ range first 3 (where .Site.RegularPages "Type" "project") }}
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
@ -40,7 +44,7 @@
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<p class="meta" title="last change: {{ .Date.Format "2 Jan 2006" }}">{{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }} {{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}</p> <p class="meta" title="last change: {{ .Date.Format "2 Jan 2006" }}">{{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }} {{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}</p>
{{ with .Description }}<p>{{ . }}</p>{{ end }} {{ with .Description }}<p>{{ . }}</p>{{ end }}
<img {{ with .Params.featured_image }}src="{{ . | relURL }}"{{ end }}> <img {{ with .Params.featured_image }}src="{{ . | relURL }}"{{ end }} alt="">
</article> </article>
</a> </a>
{{ end }} {{ end }}

View file

@ -1,19 +1,33 @@
{{ $currentPage := . }}
<nav> <nav>
<div class="container"> <div class="container">
<section class="website-name"> <section class="website-name">
<a href="{{ .Site.BaseURL }}">{{ .Site.Params.menuname }}</a> {{ range .Site.Menus.name }}
{{ if $currentPage.IsMenuCurrent "name" . }}
<a href="{{ .URL }}" class="active">{{ .Name }}</a>
{{ else }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
{{ end }}
</section> </section>
<span class="seperator">/</span> <span class="seperator">/</span>
<section class="website-mainmenu"> <section class="website-mainmenu">
<ul> <ul>
{{ $currentPage := . }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<li> {{ if $currentPage.IsMenuCurrent "main" . }}
<li class="active">
<a href="{{ .URL }}"> <a href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span> <span>{{ .Name }}</span>
</a> </a>
</li> </li>
{{ else }}
<li>
<a href="{{ .URL }}">
<span>{{ .Name }}</span>
</a>
</li>
{{ end }}
{{ end }} {{ end }}
</ul> </ul>
</section> </section>

View file

@ -3,7 +3,8 @@
{{ end }} {{ end }}
{{ define "main" }} {{ define "main" }}
<main class="container"> <main>
<div class="container">
<section> <section>
<header> <header>
<h1>{{ .Params.heading }}</h1> <h1>{{ .Params.heading }}</h1>
@ -16,12 +17,16 @@
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
<article> <article>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<p class="" title="last change: {{ .Date.Format "2 Jan 2006" }}">{{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }} {{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}</p> <p class="" title="last change: {{ .Date.Format "2 Jan 2006" }}">
{{ with .Params.activetime }}<span class="date">{{ . }}</span>{{ end }}
{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}
</p>
{{ with .Description }}<p>{{ . }}</p>{{ end }} {{ with .Description }}<p>{{ . }}</p>{{ end }}
<img {{ with .Params.featured_image }}src="{{ . | relURL }}"{{ end }} loading="lazy"> <img {{ with .Params.featured_image }}src="{{ . | relURL }}"{{ end }} loading="lazy" alt="">
</article> </article>
</a> </a>
{{ end }} {{ end }}
</section> </section>
</div>
</main> </main>
{{ end }} {{ end }}