diff --git a/_includes/navbar.html b/_includes/navbar.html index 5ca88b8..60b7ade 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -20,6 +20,9 @@ + diff --git a/search.json b/search.json new file mode 100644 index 0000000..0254f46 --- /dev/null +++ b/search.json @@ -0,0 +1,16 @@ +--- +layout: null +sitemap: false +--- +[ +{%- for post in site.posts %} + { + "title": {{ post.title | jsonify }}, + "url": {{ post.url | relative_url | jsonify }}, + "date": {{ post.date | date: "%Y-%m-%d" | jsonify }}, + "categories": {{ post.categories | join: " " | jsonify }}, + "tags": {{ post.tags | join: " " | jsonify }}, + "content": {{ post.content | strip_html | normalize_whitespace | truncatewords: 2000 | jsonify }} + }{% unless forloop.last %},{% endunless %} +{%- endfor %} +] diff --git a/search.md b/search.md new file mode 100644 index 0000000..8595cff --- /dev/null +++ b/search.md @@ -0,0 +1,94 @@ +--- +layout: page +title: Search +description: Cari post berdasarkan judul, kategori, tag, atau isi +permalink: /search/ +--- + + + +

+ + + +