53 lines
1.2 KiB
HTML
53 lines
1.2 KiB
HTML
|
{{ define "main" }}
|
||
|
<main id="main">
|
||
|
<h1>{{ .Title }}</h1>
|
||
|
{{ if site.Params.search }}
|
||
|
<input
|
||
|
id="search"
|
||
|
type="text"
|
||
|
placeholder="{{ T "search_placeholder" }}"
|
||
|
aria-label="{{ T "search_aria_label" }}"
|
||
|
/>
|
||
|
{{ end }}
|
||
|
<ul class="patterns-list" id="list">
|
||
|
{{ range .Pages.ByPublishDate.Reverse }}
|
||
|
<li>
|
||
|
<h2>
|
||
|
<a href="{{ .RelPermalink }}">
|
||
|
<svg
|
||
|
class="bookmark"
|
||
|
aria-hidden="true"
|
||
|
viewBox="0 0 40 50"
|
||
|
focusable="false"
|
||
|
>
|
||
|
<use href="#bookmark"></use>
|
||
|
</svg>
|
||
|
{{ .Title }}
|
||
|
</a>
|
||
|
</h2>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
{{ range $i,$line := getCSV "," "./localhost_urls.csv" }}
|
||
|
{{ $url := index $line 0 }}
|
||
|
{{ if and (ne $i 0) (eq (len (findRE `replytocom` $url 1)) 0)}}
|
||
|
<li>
|
||
|
<h2>
|
||
|
<a href="{{ index $line 0 }}">
|
||
|
<svg
|
||
|
class="bookmark"
|
||
|
aria-hidden="true"
|
||
|
viewBox="0 0 40 50"
|
||
|
focusable="false"
|
||
|
>
|
||
|
<use href="#bookmark"></use>
|
||
|
</svg>
|
||
|
{{ index $line 2 }}
|
||
|
</a>
|
||
|
</h2>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</main>
|
||
|
{{ end }}
|