bit-101 Part 3 + config.toml (hugo.toml)
This commit is contained in:
BIN
themes/mytheme/layouts/_default/.DS_Store
vendored
Normal file
BIN
themes/mytheme/layouts/_default/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -1,17 +1,12 @@
|
||||
<!-- this is a generic base template = KISS -->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0">
|
||||
<title>Sum something up</title>
|
||||
</head>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
<a href="/">Home</a>
|
||||
<a href="/page">LL-CAT</a>
|
||||
<a href="/tags">Ports and Apps</a>
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,11 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<ul>
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
{{- partial "listitem.html" . -}}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
@@ -1,5 +1,8 @@
|
||||
{{ define "main" }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
<p>{{ .PublishDate }}</p>
|
||||
{{ if .Params.Tags }}
|
||||
Tags: {{ partial "tags.html" . -}}
|
||||
{{ end }}
|
||||
<div>{{ .Content }}</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user