From 5281b8bf0a5dfec8460f54e0d0d06ecd4e285e0a Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 21 Oct 2022 12:26:37 -0700 Subject: exclude data_tinysearch & data_stork from sitemap.xml by marking as draft --- README.md | 8 ++++++++ content/static/stork_toml.md | 1 + content/static/tinysearch_json.md | 1 + 3 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 82f0852..e8baf7d 100644 --- a/README.md +++ b/README.md @@ -174,6 +174,8 @@ Switch abridge to tinysearch: ```shell cd ~/.dev/abridge sed -i 's/^search_library =.*/search_library = "tinysearch"/' config.toml +sed -i 's/^draft =.*/draft = true/' content/static/stork_toml.md +sed -i 's/^draft =.*/draft = false/' content/static/tinysearch_json.md zola build tinysearch --optimize --path static public/data_tinysearch/index.html # zola serve @@ -196,6 +198,8 @@ Switch abridge to stork: ```shell cd ~/.dev/abridge sed -i 's/^search_library =.*/search_library = "stork"/' config.toml +sed -i 's/^draft =.*/draft = false/' content/static/stork_toml.md +sed -i 's/^draft =.*/draft = true/' content/static/tinysearch_json.md zola build stork build --input public/data_stork/index.html --output static/stork.st # zola serve @@ -207,6 +211,8 @@ abridge as a theme: ```shell cd ~/.dev/abridge sed -i 's/^search_library =.*/search_library = false/' config.toml +sed -i 's/^draft =.*/draft = true/' themes/abridge/content/static/stork_toml.md +sed -i 's/^draft =.*/draft = true/' themes/abridge/content/static/tinysearch_json.md zola build npm run abridge zola build @@ -217,6 +223,8 @@ abridge theme directly: ```shell cd ~/.dev/abridge sed -i 's/^search_library =.*/search_library = false/' config.toml +sed -i 's/^draft =.*/draft = true/' content/static/stork_toml.md +sed -i 's/^draft =.*/draft = true/' content/static/tinysearch_json.md zola build npm run abridge-demo zola build diff --git a/content/static/stork_toml.md b/content/static/stork_toml.md index a56dc03..0f7b8a4 100644 --- a/content/static/stork_toml.md +++ b/content/static/stork_toml.md @@ -1,4 +1,5 @@ +++ path = "data_stork" template = "stork_toml.html" +draft = true +++ \ No newline at end of file diff --git a/content/static/tinysearch_json.md b/content/static/tinysearch_json.md index 2edbcd2..c0125f1 100644 --- a/content/static/tinysearch_json.md +++ b/content/static/tinysearch_json.md @@ -1,4 +1,5 @@ +++ path = "data_tinysearch" template = "tinysearch_json.html" +draft = true +++ \ No newline at end of file -- cgit v1.3.1