blog-static/themes/vanilla/layouts/index.html

23 lines
640 B
HTML
Raw Permalink Normal View History

{{ define "main" }}
{{ .Content }}
2020-12-27 20:09:05 -08:00
<p>
<div class="stork-wrapper">
<div class="stork-input-wrapper">
<input class="stork-input" data-stork="blog" placeholder="Search (requires JavaScript)"/>
</div>
<div class="stork-output" data-stork="blog-output"></div>
</div>
</p>
Recent posts:
2020-05-09 01:41:10 -07:00
<ul class="post-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ partial "post.html" . }}
{{ end }}
</ul>
2020-12-27 20:09:05 -08:00
<script src="https://files.stork-search.net/stork.js"></script>
2020-12-28 22:23:29 -08:00
<script>stork.register("blog", "/index.st");</script>
{{ end }}