reading/layouts/home.html

36 lines
951 B
HTML
Raw Normal View History

2020-11-03 23:53:38 +00:00
<head>
<title>reading list</title>
<style>
body { font-family: Arial, Helvetica, sans-serif; }
h3 { margin: 0; }
h3 a { color: black; }
h3 .date { color: gray; }
</style>
</head>
<h1>reading list</h1>
<ul>
{{- range (.Pages.ByParam "Lastmod") -}}
<li>
<h3 class="title">
{{- if .Params.document -}}
<a target="_blank" rel="nofollow noopener" href="{{ .Params.document }}">{{ .Title }}</a>
{{- else -}}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{- end -}}
<small class="date">
<span title="{{ .Lastmod }}">{{ .Lastmod.Format "Mon Jun 02, 2006" }}</span>
</small>
</h3>
<p>{{ .Summary }}</p>
{{- if .Params.link -}}
{{- else -}}
{{- end -}}
</li>
{{- end -}}
</ul>