From f2e8988825006576bdc4ed4e31c47841ac55de77 Mon Sep 17 00:00:00 2001 From: jultty Date: Sat, 16 Nov 2024 02:03:03 -0300 Subject: [PATCH] Setup a Notes category --- content/notes/_index.md | 7 +++++++ content/notes/_index.pt.md | 7 +++++++ templates/base.html | 2 ++ templates/note-page.html | 24 ++++++++++++++++++++++++ templates/notes.html | 13 +++++++++++++ 5 files changed, 53 insertions(+) create mode 100644 content/notes/_index.md create mode 100644 content/notes/_index.pt.md create mode 100644 templates/note-page.html create mode 100644 templates/notes.html diff --git a/content/notes/_index.md b/content/notes/_index.md new file mode 100644 index 0000000..9b36dd7 --- /dev/null +++ b/content/notes/_index.md @@ -0,0 +1,7 @@ ++++ +title = "Notes" +sort_by = "date" +template = "notes.html" +page_template = "note-page.html" +generate_feeds = true ++++ diff --git a/content/notes/_index.pt.md b/content/notes/_index.pt.md new file mode 100644 index 0000000..2265f66 --- /dev/null +++ b/content/notes/_index.pt.md @@ -0,0 +1,7 @@ ++++ +title = "Notas" +sort_by = "date" +template = "notes.html" +page_template = "note-page.html" +generate_feeds = true ++++ diff --git a/templates/base.html b/templates/base.html index 6e4c29d..5b12a9a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -52,6 +52,7 @@ {%- endif -%} + {%- endblock %} {%- block extra_head %}{% endblock %} @@ -74,6 +75,7 @@
  • Home
  • {%- endif %}
  • Posts
  • +
  • {% if lang == "pt" %}Notas{% else %}Notes{% endif %}
  • Links
  • RSS
  • Mastodon
  • diff --git a/templates/note-page.html b/templates/note-page.html new file mode 100644 index 0000000..1f66da9 --- /dev/null +++ b/templates/note-page.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} + +{% block content %} +
    +

    {{ page.title }}

    + + {{ page.content | safe }} +
    +{%- endblock content -%} + +{%- block footer %} +
    + +{% endblock footer %} diff --git a/templates/notes.html b/templates/notes.html new file mode 100644 index 0000000..441f622 --- /dev/null +++ b/templates/notes.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block content %} +

    {{ section.title }}

    + +{%- endblock content %}