Testing phugo as theme

This commit is contained in:
2017-10-15 18:32:13 +02:00
parent 4a0f71961e
commit e9957f193d
219 changed files with 3198 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<!DOCTYPE HTML>
{{ partial "lang.html" . }}
<head>
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{ partial "head.html" . }}
<head>
<body>
<div id="wrapper">
{{ partial "header.html" . }}
{{ block "main" . }}
{{ end }}
{{ partial "footer.html" . }}
</div>
{{ partial "scripts.html" . }}
</body>
</html>

View File

@@ -0,0 +1,10 @@
{{ define "main" }}
<div id="main">
{{ range (where .Site.Pages "Kind" "section").ByDate.Reverse }}
<article class="thumb">
<a href="{{ .Permalink }}" class="link"><img src="{{ .Params.albumthumb }}" alt="{{ .Title }}" /></a>
<h2>{{ .Title }}</h2>
</article>
{{ end }}
</div>
{{ end }}

View File

@@ -0,0 +1,8 @@
{{ define "title" }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<div id="main">
{{ .Content }}
</div>
{{ end }}