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

View file

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

View file

@ -3,32 +3,42 @@
{{ end }}
{{ define "main" }}
<main class="container">
<section>
<header>
<h1>{{ .Params.heading }}</h1>
<span class="subtitle">{{.Params.subheading}}</span>
</header>
{{ .Content }}
</section>
<section class="section-articles">
{{ range .Pages }}
<a href="{{ .Permalink }}">
<article>
<main>
<div class="container">
<section>
<header>
<h1>{{ .Title }}</h1>
<p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
<span class="author">{{ with .Params.author }}by {{ end }}{{ .Params.author }}</span>
</p>
{{ with .Description }}
<p>{{ . }}</p>
{{ end }}
{{ with .Params.featured_image }}
<img src="{{ . | relURL }}" loading="lazy">
{{ end }}
</article>
</a>
{{ end }}
</section>
<span class="subtitle">{{.Params.subheading}}</span>
</header>
{{ .Content }}
</section>
<section class="section-articles">
{{ range .Pages }}
<a href="{{ .Permalink }}">
<article>
<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" }}">
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
{{ with .Params.author }}<span class="author">by {{ .Params.author }}</span>{{ end }}
</p>
{{ end }}
{{ with .Description }}
<p>{{ . }}</p>
{{ end }}
{{ with .Params.featured_image }}
<img src="{{ . | relURL }}" loading="lazy" alt="">
{{ end }}
</article>
</a>
{{ end }}
</section>
</div>
</main>
{{ end }}

View file

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