init: hugo site with mytheme
This commit is contained in:
13
themes/mytheme/layouts/_default/list.html
Normal file
13
themes/mytheme/layouts/_default/list.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end }}
|
||||
{{ define "main" }}
|
||||
<div class="post-list">
|
||||
<h1 class="list-title">{{ .Title }}</h1>
|
||||
{{ range .Paginator.Pages }}
|
||||
<div class="post-card">
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
<div class="post-meta">{{ .Date.Format "2006-01-02" }}{{ with .Params.categories }} · {{ . }}{{ end }}</div>
|
||||
<p class="post-summary">{{ with .Description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user