Testing phugo as theme
This commit is contained in:
24
layouts/_default/baseof.html
Normal file
24
layouts/_default/baseof.html
Normal 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>
|
||||
10
layouts/_default/list.html
Normal file
10
layouts/_default/list.html
Normal 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 }}
|
||||
8
layouts/_default/section.html
Normal file
8
layouts/_default/section.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }} - {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<div id="main">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user