diff --git a/content/search.md b/content/search.md new file mode 100644 index 0000000..4b8be36 --- /dev/null +++ b/content/search.md @@ -0,0 +1,14 @@ +--- +title: Search +type: "search" +description: Interactive search for posts on Daniel's personal site. +--- + +Here's a [Stork](https://github.com/jameslittle230/stork)-powered search for all articles on +this site. Stork takes some time to load on slower devices, which is why this isn't on +every page (or even on the index page). Because the LaTeX rendering occurs _after_ +the search indexing, you may see raw LaTeX code in the content of the presented +articles, like `\beta`. This does, however, also mean that you can search for mathematical +symbols using only the English alphabet! + +If you're just browsing, you could alternatively check out [all posts](/blog), or perhaps my [favorite articles](/favorites) from this blog. diff --git a/static/index.st b/static/index.st new file mode 100644 index 0000000..be2ba8c Binary files /dev/null and b/static/index.st differ diff --git a/themes/vanilla/layouts/partials/header.html b/themes/vanilla/layouts/partials/header.html index c8b046e..abea395 100644 --- a/themes/vanilla/layouts/partials/header.html +++ b/themes/vanilla/layouts/partials/header.html @@ -8,6 +8,8 @@ GitHub Resume Tags + Favorites + Search All Posts diff --git a/themes/vanilla/layouts/search/single.html b/themes/vanilla/layouts/search/single.html new file mode 100644 index 0000000..415aef5 --- /dev/null +++ b/themes/vanilla/layouts/search/single.html @@ -0,0 +1,17 @@ +{{ define "main" }} +

{{ .Title }}

+{{ .Content }} + +{{ $search := resources.Get "scss/search.scss" | resources.ToCSS | resources.Minify }} + + +
+
+ +
+
+
+ + + +{{ end }}