Compare commits

..

6 Commits

4 changed files with 7 additions and 2 deletions

BIN
static/index.st Normal file

Binary file not shown.

View File

@ -74,6 +74,9 @@ input.stork-input {
.stork-title, .stork-excerpt { .stork-title, .stork-excerpt {
margin: 0; margin: 0;
}
.stork-excerpt {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -82,6 +85,8 @@ input.stork-input {
.stork-title { .stork-title {
font-family: $font-heading; font-family: $font-heading;
font-size: 1.4rem; font-size: 1.4rem;
text-align: left;
width: 100%;
} }
.stork-highlight { .stork-highlight {

View File

@ -2,7 +2,7 @@
base_directory = "content/" base_directory = "content/"
title_boost = "Large" title_boost = "Large"
files = [ files = [
{{ range $index , $e := .Site.RegularPages }}{{ if $index }}, {{end}}{ path = {{ $e.File.Path | jsonify }}, title = {{ $e.Title | jsonify }}, url = {{ $e.Permalink | jsonify }} } {{ range $index , $e := .Site.RegularPages }}{{ if $index }}, {{end}}{ filetype = "PlainText", contents = {{ $e.Plain | jsonify }}, title = {{ $e.Title | jsonify }}, url = {{ $e.Permalink | jsonify }} }
{{ end }} {{ end }}
] ]

View File

@ -18,5 +18,5 @@ Recent posts:
</ul> </ul>
<script src="https://files.stork-search.net/stork.js"></script> <script src="https://files.stork-search.net/stork.js"></script>
<script>stork.register("blog", "http://localhost:8000/index.st");</script> <script>stork.register("blog", "/index.st");</script>
{{ end }} {{ end }}