Cyberpink theme
This commit is contained in:
parent
807ffac8a0
commit
53560c95d3
15 changed files with 955 additions and 0 deletions
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 }}
|
Loading…
Add table
Add a link
Reference in a new issue