added privacy policy
This commit is contained in:
parent
c8698d8c80
commit
26cd9f0bea
16 changed files with 285 additions and 112 deletions
|
@ -1,6 +1,6 @@
|
|||
<!doctype html>
|
||||
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{{ with .Title }} {{ . }} – {{ end }}{{ .Site.Title }}</title>
|
||||
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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" }}← next project{{ end }}
|
||||
{{ if ne .Params.type "project" }}← 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 →{{ end }}
|
||||
{{ if ne .Params.type "project" }}previous article →{{ end }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</article>
|
||||
</section>
|
||||
</div>
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
</header>
|
||||
{{.Content}}
|
||||
</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">
|
||||
{{ range first 2 (where .Site.RegularPages "Type" "post") }}
|
||||
<a href="{{ .Permalink }}">
|
||||
|
@ -26,13 +28,15 @@
|
|||
<p>{{ . }}</p>
|
||||
{{ end }}
|
||||
{{ with .Params.featured_image }}
|
||||
<img src="{{ . | relURL }}">
|
||||
<img src="{{ . | relURL }}" alt="">
|
||||
{{ end }}
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}
|
||||
</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">
|
||||
{{ range first 3 (where .Site.RegularPages "Type" "project") }}
|
||||
<a href="{{ .Permalink }}">
|
||||
|
@ -40,7 +44,7 @@
|
|||
<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>
|
||||
{{ with .Description }}<p>{{ . }}</p>{{ end }}
|
||||
<img {{ with .Params.featured_image }}src="{{ . | relURL }}"{{ end }}>
|
||||
<img {{ with .Params.featured_image }}src="{{ . | relURL }}"{{ end }} alt="">
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,19 +1,33 @@
|
|||
{{ $currentPage := . }}
|
||||
|
||||
<nav>
|
||||
<div class="container">
|
||||
<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>
|
||||
<span class="seperator">/</span>
|
||||
<section class="website-mainmenu">
|
||||
<ul>
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ if $currentPage.IsMenuCurrent "main" . }}
|
||||
<li class="active">
|
||||
<a href="{{ .URL }}">
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
|
|
|
@ -3,25 +3,30 @@
|
|||
{{ 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>
|
||||
<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>
|
||||
{{ with .Description }}<p>{{ . }}</p>{{ end }}
|
||||
<img {{ with .Params.featured_image }}src="{{ . | relURL }}"{{ end }} loading="lazy">
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}
|
||||
</section>
|
||||
<main>
|
||||
<div 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>
|
||||
<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>
|
||||
{{ with .Description }}<p>{{ . }}</p>{{ end }}
|
||||
<img {{ with .Params.featured_image }}src="{{ . | relURL }}"{{ end }} loading="lazy" alt="">
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue