Initial commit
This commit is contained in:
commit
e9839679e6
31 changed files with 911 additions and 0 deletions
0
layouts/404.html
Normal file
0
layouts/404.html
Normal file
15
layouts/_default/baseof.html
Normal file
15
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Language.Lang }}">
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<main>
|
||||
{{- block "main" . }}{{- end }}
|
||||
</main>
|
||||
<footer>
|
||||
{{- partial "footer.html" . -}}
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
11
layouts/_default/list.html
Normal file
11
layouts/_default/list.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
<article>
|
||||
{{ range .Paginator.Pages }}
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
{{ partial "list-post.html" . }}
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
{{ end }}
|
29
layouts/_default/single.html
Normal file
29
layouts/_default/single.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p id="date">{{.Date.Format "2006-01-02"}}</p>
|
||||
<p>{{ .WordCount }} words, ~ {{ .ReadingTime }} min reading time</p>
|
||||
|
||||
<p>
|
||||
{{ with .Params.categories }}
|
||||
<span id="categories">
|
||||
{{ range . }}
|
||||
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ with .Params.tags }}
|
||||
<span id="tags">
|
||||
{{ range . }}
|
||||
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ .Content }}
|
||||
|
||||
{{ with .Site.Params.comment.commentmail }}
|
||||
<p class="comment-notice">
|
||||
If you would like to comment on this post, feel free to write me a mail at {{ . }}!
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
52
layouts/index.html
Normal file
52
layouts/index.html
Normal file
|
@ -0,0 +1,52 @@
|
|||
{{ define "main" }}
|
||||
<header>
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
<h3>I compose music and write stuff</h3>
|
||||
</header>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<h3>Read more from me</h3>
|
||||
|
||||
{{ with .Site.GetPage "/about" }}
|
||||
<a class="btn" href="{{ .Permalink }}">More about me</a>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.GetPage "/blog" }}
|
||||
<a class="btn" href="{{ .Permalink }}">My blog</a>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.GetPage "/projects" }}
|
||||
<a class="btn" href="{{ .Permalink }}">My projects</a>
|
||||
{{ end }}
|
||||
|
||||
<h3>Find me on other places</h3>
|
||||
|
||||
{{ with .Site.Params.social.mastodon }}
|
||||
<a class="btn" href="{{ . }}">Mastodon</a>
|
||||
{{- end -}}
|
||||
{{ with .Site.Params.social.twitter }}
|
||||
<a class="btn" href="{{ . }}">Twitter</a>
|
||||
{{- end -}}
|
||||
|
||||
{{ with .Site.Params.social.git }}
|
||||
<a class="btn" href="{{ . }}">Git Repos</a>
|
||||
{{- end -}}
|
||||
|
||||
{{ with .OutputFormats.Get "rss" }}
|
||||
<a class="btn" href="{{ .Permalink }}">RSS</a>
|
||||
{{- end -}}
|
||||
|
||||
<h2>Latest Post</h2>
|
||||
|
||||
{{ range first 3 .Site.RegularPages }}
|
||||
<article>
|
||||
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
|
||||
{{ partial "list-post.html" . }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.GetPage "/blog" }}
|
||||
<a href="{{ .Permalink }}">Read more posts</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
16
layouts/partials/footer.html
Normal file
16
layouts/partials/footer.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<p>
|
||||
{{ with .Site.Params.copyrighthtml }}
|
||||
{{ . | safeHTML }}
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ with .Site.GetPage "/imprint" }}
|
||||
<p>
|
||||
<a href="{{ .Permalink }}">{{ .Site.Params.imprinttext }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
<p>Last updated: {{ .Lastmod.Format "2006-01-02" }}
|
||||
{{ $giturl := .Site.Params.giturl }}
|
||||
{{- with .GitInfo }}
|
||||
(<a href="{{ $giturl }}" target="_blank">{{ .AbbreviatedHash }}</a>)
|
||||
{{- end -}}
|
||||
</p>
|
31
layouts/partials/head.html
Normal file
31
layouts/partials/head.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<meta name="viewport" content="width=device-width">
|
||||
|
||||
{{ if .IsHome -}}
|
||||
<title>{{ .Site.Title }}</title>
|
||||
{{- else -}}
|
||||
<title>{{ .Site.Title }} - {{ .Title }}</title>
|
||||
{{- end }}
|
||||
|
||||
<meta name="author" content='{{ delimit .Site.Author ", " }}' />
|
||||
<meta name="description" content="{{ .Description }}" />
|
||||
<meta name="keywords" content="{{ delimit .Keywords ", " }}" />
|
||||
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/normalize.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/fonts.css">
|
||||
{{- $style := resources.Get "css/main.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
{{- template "_internal/opengraph.html" . }}
|
||||
|
||||
{{- template "_internal/twitter_cards.html" . -}}
|
||||
|
||||
<link rel="apple-touch-icon-precomposed" sizes="256x256" href="{{ .Site.BaseURL }}/favicon/favicon-256.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ .Site.BaseURL }}/favicon/favicon-144.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="128x128" href="{{ .Site.BaseURL }}/favicon/favicon-128.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ .Site.BaseURL }}/favicon/favicon-72.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="{{ .Site.BaseURL }}/favicon/favicon.png">
|
||||
<link rel="shortcut icon" href="{{ .Site.BaseURL }}/favicon/favicon.png">
|
14
layouts/partials/header.html
Normal file
14
layouts/partials/header.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<header>
|
||||
<a id="title" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
|
||||
<label for="show-menu" class="show-menu">Menu</label>
|
||||
<input type="checkbox" id="show-menu" role="button">
|
||||
<nav>
|
||||
<ul>
|
||||
{{ range .Site.Menus.main }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
21
layouts/partials/list-post.html
Normal file
21
layouts/partials/list-post.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<p id="date">{{.Date.Format "2006-01-02"}}</p>
|
||||
<p>
|
||||
{{ with .Params.categories }}
|
||||
<span id="categories">
|
||||
{{ range . }}
|
||||
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ with .Params.tags }}
|
||||
<span id="tags">
|
||||
{{ range . }}
|
||||
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ .Summary }}
|
||||
{{- if .Truncated -}}
|
||||
<p><a href="{{.Permalink}}">Read more</a></p>
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue