mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 22:16:07 +01:00
36 lines
1.5 KiB
HTML
36 lines
1.5 KiB
HTML
|
|
{{ define "main" }}
|
|
<main class="posts" {{ if eq .Kind "taxonomy" }}data-pagefind-ignore{{ end }}>
|
|
{{ partial "memex-header.html" . }}
|
|
|
|
<hgroup class="post-title">
|
|
<h1 class="p-name">
|
|
{{ with .Params.emoji }}<span data-emoji="{{.}}"></span>{{end}}
|
|
<a href="{{ .RelPermalink }}" class="noaccent u-url">{{ title (replace .Title "-" " ") }}</a>
|
|
</h1>
|
|
{{ partial "alternates.html" . }}
|
|
</hgroup>
|
|
|
|
{{ if .Content }}
|
|
<div class="post-content e-content" data-pagefind-body data-pagefind-filter="type:{{.Type | title}}">{{ .Content }}</div>
|
|
{{ end }}
|
|
|
|
<ul class="posts-list">
|
|
{{ range .Pages.ByDate }}
|
|
<li class="post-item">
|
|
<a href="{{.RelPermalink}}">
|
|
{{ if .Params.emoji }}<span class="post-emoji">{{ .Params.emoji }}</span>{{ end }}
|
|
<span class="post-title">{{ if .Title }}{{.Title}}{{ else }}<i>Untitled {{ .Type | singularize -}}</i>{{ end }}</span>
|
|
<span class="post-day">
|
|
{{ if .Site.Params.dateformShort }}
|
|
{{ .Date.Format .Site.Params.dateformShort }}
|
|
{{ else }}
|
|
{{ .Date.Format "Jan 2"}}
|
|
{{ end }}
|
|
</span>
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</main>
|
|
{{ end }}
|