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 %}