Initial commit
This commit is contained in:
commit
e9839679e6
31 changed files with 911 additions and 0 deletions
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