diff --git a/README.md b/README.md index 5394bbd..f9c31b0 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ My personal Zettelkasten notes, powered by [Sculpin](https://sculpin.io). -All notes are located in the `source/_notes` directory and can also be viewed at +All notes are located in the `source/_zets` directory and can also be viewed at diff --git a/app/config/sculpin_kernel.yml b/app/config/sculpin_kernel.yml index b92a403..203df8a 100644 --- a/app/config/sculpin_kernel.yml +++ b/app/config/sculpin_kernel.yml @@ -1,6 +1,6 @@ --- sculpin_content_types: - notes: - permalink: /notes/:basename/ posts: enabled: false + zets: + permalink: /notes/:basename/ diff --git a/run.local b/run.local index 3ff06a0..074d7aa 100755 --- a/run.local +++ b/run.local @@ -16,10 +16,10 @@ function new { fi title="$1" - note_path="source/_notes" - note_count=$(find "$note_path" -type f | wc -l) - next_note=$((note_count + 1)) - next_note_path="$note_path/$next_note.md" + zet_path="source/_zets" + zet_count=$(find "$zet_path" -type f | wc -l) + next_zet=$((zet_count + 1)) + next_zet_path="$zet_path/$next_zet.md" date=$(date +"%Y-%m-%d %T") { @@ -29,9 +29,9 @@ function new { echo "tags: []" echo "---" echo "" - } > "$next_note_path" + } > "$next_zet_path" - git add "$next_note_path" + git add "$next_zet_path" git commit -m "$title" } diff --git a/source/_includes/notes/related.html.twig b/source/_includes/notes/related.html.twig deleted file mode 100644 index 0caea60..0000000 --- a/source/_includes/notes/related.html.twig +++ /dev/null @@ -1,13 +0,0 @@ -{% if related and notes %} -
-

Related

- -
    - {% for note in notes if related|filter((title) => title == note.title) %} -
  • - {{ note.title }} -
  • - {% endfor %} -
-
-{% endif %} diff --git a/source/_includes/notes/links.html.twig b/source/_includes/zets/links.html.twig similarity index 100% rename from source/_includes/notes/links.html.twig rename to source/_includes/zets/links.html.twig diff --git a/source/_includes/zets/related.html.twig b/source/_includes/zets/related.html.twig new file mode 100644 index 0000000..3703375 --- /dev/null +++ b/source/_includes/zets/related.html.twig @@ -0,0 +1,13 @@ +{% if related and zets %} +
+

Related

+ +
    + {% for zet in zets if related|filter((title) => title == zet.title) %} +
  • + {{ zet.title }} +
  • + {% endfor %} +
+
+{% endif %} diff --git a/source/_includes/notes/tags.html.twig b/source/_includes/zets/tags.html.twig similarity index 100% rename from source/_includes/notes/tags.html.twig rename to source/_includes/zets/tags.html.twig diff --git a/source/_layouts/base.html.sync-conflict-20240821-224633-UAU7ZWL.twig b/source/_layouts/base.html.sync-conflict-20240821-224633-UAU7ZWL.twig new file mode 100644 index 0000000..248d095 --- /dev/null +++ b/source/_layouts/base.html.sync-conflict-20240821-224633-UAU7ZWL.twig @@ -0,0 +1,24 @@ + + + + + + + {{ site.name|default('Sculpin Skeleton') }} + + + {% block body %} +

{% block page_title %}{{ page.title }}{% endblock %}

+ + {% block content_wrapper %} + {% block content %}{% endblock %} + {% endblock %} + +
+ + + {% endblock %} + + diff --git a/source/_layouts/note.html.twig b/source/_layouts/zet.html.twig similarity index 64% rename from source/_layouts/note.html.twig rename to source/_layouts/zet.html.twig index bf7ac5d..c65500a 100644 --- a/source/_layouts/note.html.twig +++ b/source/_layouts/zet.html.twig @@ -13,13 +13,13 @@ {% block content %}{% endblock %} - {% include "notes/links" with { links: page.links } %} + {% include "zets/links" with { links: page.links } %} - {% include "notes/related" with { - notes: data.notes, + {% include "zets/related" with { + zets: data.zets, related: page.related, } %} -{% include "notes/tags" with { tags: page.tags } %} +{% include "zets/tags" with { tags: page.tags } %} {% endblock %} diff --git a/source/_notes/1.md b/source/_zets/1.md similarity index 100% rename from source/_notes/1.md rename to source/_zets/1.md diff --git a/source/_notes/10.md b/source/_zets/10.md similarity index 100% rename from source/_notes/10.md rename to source/_zets/10.md diff --git a/source/_notes/11.md b/source/_zets/11.md similarity index 100% rename from source/_notes/11.md rename to source/_zets/11.md diff --git a/source/_notes/12.md b/source/_zets/12.md similarity index 100% rename from source/_notes/12.md rename to source/_zets/12.md diff --git a/source/_notes/13.md b/source/_zets/13.md similarity index 100% rename from source/_notes/13.md rename to source/_zets/13.md diff --git a/source/_notes/14.md b/source/_zets/14.md similarity index 100% rename from source/_notes/14.md rename to source/_zets/14.md diff --git a/source/_notes/15.md b/source/_zets/15.md similarity index 100% rename from source/_notes/15.md rename to source/_zets/15.md diff --git a/source/_notes/16.md b/source/_zets/16.md similarity index 100% rename from source/_notes/16.md rename to source/_zets/16.md diff --git a/source/_notes/17.md b/source/_zets/17.md similarity index 100% rename from source/_notes/17.md rename to source/_zets/17.md diff --git a/source/_notes/18.md b/source/_zets/18.md similarity index 100% rename from source/_notes/18.md rename to source/_zets/18.md diff --git a/source/_notes/19.md b/source/_zets/19.md similarity index 100% rename from source/_notes/19.md rename to source/_zets/19.md diff --git a/source/_notes/2.md b/source/_zets/2.md similarity index 100% rename from source/_notes/2.md rename to source/_zets/2.md diff --git a/source/_notes/20.md b/source/_zets/20.md similarity index 100% rename from source/_notes/20.md rename to source/_zets/20.md diff --git a/source/_notes/21.md b/source/_zets/21.md similarity index 100% rename from source/_notes/21.md rename to source/_zets/21.md diff --git a/source/_notes/22.md b/source/_zets/22.md similarity index 100% rename from source/_notes/22.md rename to source/_zets/22.md diff --git a/source/_notes/23.md b/source/_zets/23.md similarity index 100% rename from source/_notes/23.md rename to source/_zets/23.md diff --git a/source/_notes/24.md b/source/_zets/24.md similarity index 97% rename from source/_notes/24.md rename to source/_zets/24.md index dcb3674..16c2a9c 100644 --- a/source/_notes/24.md +++ b/source/_zets/24.md @@ -4,7 +4,7 @@ date: 2024-09-14 13:39:01 tags: [Linux, curl] related: - Sending POST requests with curl -use: [notes] +use: [zets] --- When sending JSON data in a POST request, instead of writing it inline with the `--data` or `--json` option, a filename can be entered - prefixed with an `@` symbol. diff --git a/source/_notes/3.md b/source/_zets/3.md similarity index 100% rename from source/_notes/3.md rename to source/_zets/3.md diff --git a/source/_notes/4.md b/source/_zets/4.md similarity index 100% rename from source/_notes/4.md rename to source/_zets/4.md diff --git a/source/_notes/5.md b/source/_zets/5.md similarity index 100% rename from source/_notes/5.md rename to source/_zets/5.md diff --git a/source/_notes/6.md b/source/_zets/6.md similarity index 100% rename from source/_notes/6.md rename to source/_zets/6.md diff --git a/source/_notes/7.md b/source/_zets/7.md similarity index 100% rename from source/_notes/7.md rename to source/_zets/7.md diff --git a/source/_notes/8.md b/source/_zets/8.md similarity index 100% rename from source/_notes/8.md rename to source/_zets/8.md diff --git a/source/_notes/9.md b/source/_zets/9.md similarity index 100% rename from source/_notes/9.md rename to source/_zets/9.md diff --git a/source/index.html.twig b/source/index.html.twig index 244c63b..6cc6d89 100644 --- a/source/index.html.twig +++ b/source/index.html.twig @@ -1,14 +1,14 @@ --- layout: page title: Zettelkasten for Oliver Davies (opdavies) -use: [notes] +use: [zets] ---