Initial commit
This commit is contained in:
commit
e9839679e6
31 changed files with 911 additions and 0 deletions
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 }}
|
Loading…
Add table
Add a link
Reference in a new issue