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

23 lines
661 B
HTML

{{ define "main" }}
{{ .Content }}
<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:
<ul class="post-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ partial "post.html" . }}
{{ end }}
</ul>
<script src="https://files.stork-search.net/stork.js"></script>
<script>stork.register("blog", "http://localhost:8000/index.st");</script>
{{ end }}