Cyberpink theme
This commit is contained in:
parent
807ffac8a0
commit
53560c95d3
15 changed files with 955 additions and 0 deletions
0
cyberpink/layouts/404.html
Normal file
0
cyberpink/layouts/404.html
Normal file
17
cyberpink/layouts/_default/baseof.html
Normal file
17
cyberpink/layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
{{- partial "head.html" . -}}
|
||||
<title>{{ if .IsHome }}{{$.Site.Title}}{{ else }}{{ .Title }} | {{ $.Site.Title }}{{ end }}</title>
|
||||
</head>
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<main>
|
||||
{{- block "main" . }}{{- end }}
|
||||
</main>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
|
||||
{{- partial "chroma.html" . -}}
|
||||
|
||||
</html>
|
21
cyberpink/layouts/_default/list.html
Normal file
21
cyberpink/layouts/_default/list.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{{ define "main" }}
|
||||
{{ if .Content }}
|
||||
<article>
|
||||
{{ .Content -}}
|
||||
</article>
|
||||
{{ else }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ end }}
|
||||
<table class="posts">
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Tags</th>
|
||||
</tr>
|
||||
{{ range .Paginator.Pages }}
|
||||
<tr>
|
||||
<td><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></td>
|
||||
<td>{{ range .Params.tags }}<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">#{{ . }}</a> {{ end }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
{{ end }}
|
22
cyberpink/layouts/_default/single.html
Normal file
22
cyberpink/layouts/_default/single.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<div class="main-head">
|
||||
<h1> {{ .Title | markdownify }} </h1>
|
||||
</div>
|
||||
{{ if .Params.image }}
|
||||
<details open="">
|
||||
<summary>Image</summary>
|
||||
<figure class="postImage">
|
||||
<a href="{{ .Site.BaseURL }}{{ .Params.image }}">
|
||||
<img src="{{ .Site.BaseURL }}{{ .Params.image }}" alt="{{ .Params.imageDescription }}">
|
||||
</a>
|
||||
<figcaption>{{ .Params.imageDescription }}</figcaption>
|
||||
</figure>
|
||||
</details>
|
||||
{{ end }}
|
||||
<article class="post-content">
|
||||
{{- with .Content -}}
|
||||
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1} <a href="#${2}" class="anchor" ariaLabel="Anchor">λ</a> ${3}` | safeHTML }}
|
||||
{{- end -}}
|
||||
</article>
|
||||
{{ end }}
|
22
cyberpink/layouts/index.html
Normal file
22
cyberpink/layouts/index.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{ define "main" }}
|
||||
<div class="main-head">
|
||||
<h1>{{ .Title }}</h1>
|
||||
</div>
|
||||
{{ if .Content }}
|
||||
<article>
|
||||
{{ .Content -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
<table class="posts">
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Tags</th>
|
||||
</tr>
|
||||
{{ range .Paginator.Pages }}
|
||||
<tr>
|
||||
<td><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></td>
|
||||
<td>{{ range .Params.tags }}<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">#{{ . }}</a> {{ end }}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
{{ end }}
|
42
cyberpink/layouts/partials/chroma.html
Normal file
42
cyberpink/layouts/partials/chroma.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!-- Chromatic abaration effect -->
|
||||
<svg width="0" height="0">
|
||||
|
||||
<filter id="chroma">
|
||||
<feColorMatrix type="matrix"
|
||||
result="red_"
|
||||
values="4 0 0 0 0
|
||||
0 0 0 0 0
|
||||
0 0 0 0 0
|
||||
0 0 0 1 0"/>
|
||||
<feOffset in="red_" dx="2" dy="0" result="red"/>
|
||||
<feColorMatrix type="matrix"
|
||||
in="SourceGraphic"
|
||||
result="blue_"
|
||||
values="0 0 0 0 0
|
||||
0 3 0 0 0
|
||||
0 0 10 0 0
|
||||
0 0 0 1 0"/>
|
||||
<feOffset in="blue_" dx="-3" dy="0" result="blue"/>
|
||||
<feBlend mode="screen" in="red" in2="blue"/>
|
||||
</filter>
|
||||
|
||||
<filter id="chromaClick">
|
||||
<feColorMatrix type="matrix"
|
||||
result="red_"
|
||||
values="4 0 0 0 0
|
||||
0 0 0 0 0
|
||||
0 0 0 0 0
|
||||
0 0 0 1 0"/>
|
||||
<feOffset in="red_" dx="4" dy="0" result="red"/>
|
||||
<feColorMatrix type="matrix"
|
||||
in="SourceGraphic"
|
||||
result="blue_"
|
||||
values="0 0 0 0 0
|
||||
0 3 0 0 0
|
||||
0 0 10 0 0
|
||||
0 0 0 1 0"/>
|
||||
<feOffset in="blue_" dx="-5" dy="0" result="blue"/>
|
||||
<feBlend mode="screen" in="red" in2="blue"/>
|
||||
</filter>
|
||||
|
||||
</svg>
|
After Width: | Height: | Size: 976 B |
3
cyberpink/layouts/partials/footer.html
Normal file
3
cyberpink/layouts/partials/footer.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<footer>
|
||||
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> | <a href="https://files.antimattercloud.nl/git/hugo/cyberpink.git">Hugo theme</a>
|
||||
</footer>
|
6
cyberpink/layouts/partials/head.html
Normal file
6
cyberpink/layouts/partials/head.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<link rel='stylesheet' type='text/css' href='{{ .Site.BaseURL }}style.css' />
|
||||
<link rel='alternate' type='application/rss+xml' title='{{ .Site.Title }} RSS' href='/index.xml'>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1' />
|
||||
<meta charset='UTF-8' />
|
||||
<meta name='description' content='{{ with .Params.description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}'>
|
||||
{{ if $.Site.Params.pwa }}<link rel="manifest" href="{{ .Site.BaseURL }}manifest.json" />{{ end }}
|
4
cyberpink/layouts/partials/header.html
Normal file
4
cyberpink/layouts/partials/header.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<header>
|
||||
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
|
||||
{{- partial "menu.html" . -}}
|
||||
</header>
|
7
cyberpink/layouts/partials/menu.html
Normal file
7
cyberpink/layouts/partials/menu.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<menu type="toolbar">
|
||||
{{range $name, $taxonomy := .Site.Taxonomies.tags}}
|
||||
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
||||
<a href={{ .RelPermalink }} title="All pages with tag <i>{{$name}}</i>">#{{$name}}</a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</menu>
|
Loading…
Add table
Add a link
Reference in a new issue