old work pushed
This commit is contained in:
parent
dad292e2fd
commit
e27fbc792d
15 changed files with 379 additions and 1 deletions
0
layouts/404.html
Normal file
0
layouts/404.html
Normal file
26
layouts/_default/baseof.html
Normal file
26
layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
<header>
|
||||
{{- partial "header.html" . -}}
|
||||
</header>
|
||||
|
||||
<nav>
|
||||
{{ range .Site.Menus.main -}}
|
||||
<span>
|
||||
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
</span>
|
||||
{{- end }}
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
{{- block "main" . }}{{- end }}
|
||||
</main>
|
||||
|
||||
|
||||
<footer>
|
||||
{{- partial "footer.html" . -}}
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
9
layouts/_default/list.html
Normal file
9
layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<p>
|
||||
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{ partial "metadata.html" . }}
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
6
layouts/_default/single.html
Normal file
6
layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "metadata.html" . }}
|
||||
<!-- <br><br> -->
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
5
layouts/index.html
Normal file
5
layouts/index.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "metadata.html" . }}
|
||||
<!-- <br><br> -->
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
3
layouts/partials/footer.html
Normal file
3
layouts/partials/footer.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<p><a href="/policies/privacy/">Privacy Policy</a> | <a href="/policies/cookies/">Cookie Policy</a> | <a href="/policies/terms/">Terms of Use</a></p> <!-- We like putting links in a paragraph separated by pipe ("|") characters -->
|
||||
<p>© 2023 {{ $.Site.Params.author }}</p> <!-- While not legally required, it's nice to put copyright and/or license info here. Also, it looks nice to break up the links with a line of text -->
|
||||
<a href={{ $.Site.Params.Mastodon }} rel="me" target="blank">Mastodon</a> | <a href="/contact/">Contact Me</a></p> <!-- This is the kind of thing people look for in footers: contact info and legal info. Make sure you include both! -->
|
||||
8
layouts/partials/head.html
Normal file
8
layouts/partials/head.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- This ensures your site looks right on mobile devices -->
|
||||
<link rel="stylesheet" type="text/css" href="/css/readable.css?v=1.0.0">
|
||||
{{ $title := print .Site.Title " | " .Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
</head>
|
||||
2
layouts/partials/header.html
Normal file
2
layouts/partials/header.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<h1>{{ $.Site.Title }}</h1>
|
||||
<p>{{ $.Site.Params.subtitle }}</p>
|
||||
13
layouts/partials/metadata.html
Normal file
13
layouts/partials/metadata.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
|
||||
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
|
||||
<i data-feather="calendar"></i>
|
||||
{{ if .PublishDate }}
|
||||
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
|
||||
{{ end }}
|
||||
{{ with .Params.tags }}
|
||||
<i data-feather="tag"></i>
|
||||
{{ range . }}
|
||||
{{ $href := print (absURL "tags/") (urlize .) }}
|
||||
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue