feat: Init with clean layout
This commit is contained in:
30
layouts/notes/list.html
Normal file
30
layouts/notes/list.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{{- define "main" }}
|
||||
|
||||
<header class="page-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{- if .Description }}
|
||||
<div class="post-description">{{ .Description }}</div>
|
||||
{{- end }}
|
||||
</header>
|
||||
|
||||
{{- $pages := .Pages }}
|
||||
|
||||
{{- if .Site.Params.fuseOpts }}
|
||||
<div id="searchResults" class="post-list"></div>
|
||||
{{- end }}
|
||||
|
||||
<ul class="notes-list">
|
||||
{{- range $pages }}
|
||||
<li class="note-item">
|
||||
<a href="{{ .Permalink }}">
|
||||
<span class="note-title">{{ .Title }}</span>
|
||||
<span class="note-date">{{ .Date.Format "Jan 2, 2006" }}</span>
|
||||
</a>
|
||||
{{- if .Summary }}
|
||||
<p class="note-summary">{{ .Summary | plainify | truncate 100 }}</p>
|
||||
{{- end }}
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
|
||||
{{- end }}{{/* end main */}}
|
||||
Reference in New Issue
Block a user