diff --git a/src/_includes/main/content-list.njk b/src/_includes/main/content-list.njk new file mode 100644 index 00000000..23b8723a --- /dev/null +++ b/src/_includes/main/content-list.njk @@ -0,0 +1,29 @@ + + + diff --git a/src/archive/archive.11tydata.json b/src/archive/archive.11tydata.json new file mode 100644 index 00000000..ca5a0dad --- /dev/null +++ b/src/archive/archive.11tydata.json @@ -0,0 +1,5 @@ +{ + "tags": "archive", + "layout": "main/content", + "permalink": "/{{ page.fileSlug }}/" +} \ No newline at end of file diff --git a/src/archive/archive.njk b/src/archive/archive.njk new file mode 100644 index 00000000..00dcbd42 --- /dev/null +++ b/src/archive/archive.njk @@ -0,0 +1,8 @@ +--- +title: Archive +eleventyComputed: + desc: All contents published on {{ sitemeta.siteName | safe }}. +--- + +{% set contentList = collections.contents | reverse %} +{% include "main/content-list.njk" %} \ No newline at end of file diff --git a/src/archive/categories-list.njk b/src/archive/categories-list.njk new file mode 100644 index 00000000..0a39c490 --- /dev/null +++ b/src/archive/categories-list.njk @@ -0,0 +1,16 @@ +--- +title: Content Categories +permalink: /categories/ +eleventyComputed: + desc: All content categories on {{ sitemeta.siteName | safe }}. +--- + + + +

See all contents on this website in the archive.

\ No newline at end of file diff --git a/src/archive/categories.njk b/src/archive/categories.njk new file mode 100644 index 00000000..915b491b --- /dev/null +++ b/src/archive/categories.njk @@ -0,0 +1,19 @@ +--- +pagination: + data: collections.categories + size: 1 + alias: category +permalink: /categories/{{ category | slugify }}/ +eleventyExcludeFromCollections: true +eleventyComputed: + title: 'Content Category: "{{ category }}"' + desc: All contents under the "{{ category }}" category on {{ sitemeta.siteName | safe }}. +--- + +{% set contentCount = collections.contents | filterByCategory(category) | length %} +

{{ contentCount }} Contents Filed Under "{{ category }}"

+ +{% set contentList = collections.contents | filterByCategory(category) | reverse %} +{% include "main/content-list.njk" %} + +

See all content categories.

\ No newline at end of file diff --git a/src/sitemap.njk b/src/sitemap.njk index ac9c404d..0c1f51ee 100644 --- a/src/sitemap.njk +++ b/src/sitemap.njk @@ -2,7 +2,8 @@ layout: main/content title: Site Map eleventyExcludeFromCollections: true -desc: Site map of Leilukin's Hub. +eleventyComputed: + desc: Site map of {{ sitemeta.siteName | safe }}. ---

This page lists the links to the pages on my website for easier navigation.

@@ -11,49 +12,53 @@ desc: Site map of Leilukin's Hub. {% for page in collections.pages %}
  • {{ page.data.title or page.data.metadata.title }} - {% if page.data.title === "Blog" %} - - {% endif %} - - {% if page.data.title === "Articles" %} - - {% endif %} - - {% if page.data.title === "Projects" %} - - {% endif %} - - {% if page.data.title === "Changelogs" %} - - {% endif %}
  • + {% if page.data.title === "Blog" %} + + {% endif %} + + {% if page.data.title === "Articles" %} + + {% endif %} + + {% if page.data.title === "Projects" %} + + {% endif %} + + {% if page.data.title === "Changelogs" %} + + {% endif %} {%- endfor %} + + {% for archive in collections.archive %} +
  • {{ archive.data.title }}
  • + {% endfor %}