diff --git a/content/subprojects/_index.md b/content/subprojects/_index.md index 00cd077..9d0de54 100644 --- a/content/subprojects/_index.md +++ b/content/subprojects/_index.md @@ -1,5 +1,6 @@ +++ title = "Subprojects" +sort_by = "weight" template = "subproject_list.html" page_template = "subproject.html" +++ diff --git a/content/subprojects/blog/index.md b/content/subprojects/blog/index.md index ec5fd24..b8989c4 100644 --- a/content/subprojects/blog/index.md +++ b/content/subprojects/blog/index.md @@ -1,8 +1,7 @@ +++ +weight = 1 title = "Blogs" description = "Duckling offers the blogs feature borrowed from Duckquill 🦆" -date = 2023-08-31 -updated = "2024-06-21" [taxonomies] tags = ["Demo", "Test"] +++ diff --git a/content/subprojects/docs/index.md b/content/subprojects/docs/index.md index 6f23aca..254060c 100644 --- a/content/subprojects/docs/index.md +++ b/content/subprojects/docs/index.md @@ -1,10 +1,11 @@ +++ +weight = 3 title = "Documentation" description = "No need for a separate documentation page - coming soon!" -date = 2023-08-31 -updated = "2024-06-21" [taxonomies] tags = ["Demo", "Test"] +[extra] +featured = true +++ This feature is not yet implemented. Coming soon! diff --git a/content/subprojects/subproject/index.md b/content/subprojects/subproject/index.md index 868cc13..0da15cb 100644 --- a/content/subprojects/subproject/index.md +++ b/content/subprojects/subproject/index.md @@ -1,8 +1,7 @@ +++ +weight = 2 title = "Subprojects" description = "Showcase parts of your project!" -date = 2023-08-31 -updated = "2024-06-21" [taxonomies] tags = ["Demo", "Test"] +++ diff --git a/static/processed_images/banner.11b1c6ec8721de53.webp b/static/processed_images/banner.11b1c6ec8721de53.webp deleted file mode 100644 index 05d28ad..0000000 Binary files a/static/processed_images/banner.11b1c6ec8721de53.webp and /dev/null differ diff --git a/templates/partials/articles.html b/templates/partials/articles.html index 92180b4..c463629 100644 --- a/templates/partials/articles.html +++ b/templates/partials/articles.html @@ -24,10 +24,7 @@ {%- set article_type = "poor" -%} {%- set article_string = macros_translate::translate(key="poor", default="Poor", language_strings=language_strings) -%} {%- endif -%} - {%- if page.extra.banner -%} - {%- set blurnail = resize_image(path=page.colocated_path ~ page.extra.banner, width=4, height=2, op="fill", format="webp") -%} - {%- endif -%} -
+
{% if article_type %} diff --git a/templates/partials/subprojects.html b/templates/partials/subprojects.html index 92180b4..19ba969 100644 --- a/templates/partials/subprojects.html +++ b/templates/partials/subprojects.html @@ -1,13 +1,5 @@ -{%- if paginator.pages -%} - {%- set pages = paginator.pages -%} -{%- elif section.pages -%} - {%- set pages = section.pages -%} -{%- else -%} - {%- set pages = term.pages -%} -{%- endif -%} -
- {%- for page in pages %} + {%- for page in section.pages %} {%- if page.draft -%} {%- set article_type = "draft" -%} {%- set article_string = macros_translate::translate(key="drafted", default="Drafted", language_strings=language_strings) -%} @@ -24,10 +16,7 @@ {%- set article_type = "poor" -%} {%- set article_string = macros_translate::translate(key="poor", default="Poor", language_strings=language_strings) -%} {%- endif -%} - {%- if page.extra.banner -%} - {%- set blurnail = resize_image(path=page.colocated_path ~ page.extra.banner, width=4, height=2, op="fill", format="webp") -%} - {%- endif -%} -
+
{% if article_type %} @@ -39,29 +28,6 @@ {%- if page.description %} {{ page.description | markdown | safe }} {%- endif %} - {%- if page.date -%} -
- - - {%- if page.authors -%} - {{ config.extra.separator | default(value="•") }} {% include "partials/authors.html" -%} - {%- endif -%} - - {%- if page.taxonomies -%} - {%- for name, taxon in page.taxonomies %} - -
    - {%-for item in taxon -%} -
  • {{ item }}
  • - {%- endfor %} -
-
- {%- endfor -%} - {%- endif %} -
- {%- endif -%}
{%- endfor %}
diff --git a/templates/subproject.html b/templates/subproject.html index fb51e12..8dc68a8 100644 --- a/templates/subproject.html +++ b/templates/subproject.html @@ -1,8 +1,6 @@ {% extends "base.html" %} {% block content %} -{%- set date_format = macros_translate::translate(key="date_format", default="%B %d, %Y", language_strings=language_strings) -%} -{%- set date_locale = macros_translate::translate(key="date_locale", default="en_US", language_strings=language_strings) -%} {%- set rel_attributes = macros_rel_attributes::rel_attributes() | trim -%} {%- if page.extra.toc_ordered or section.extra.toc_ordered or config.extra.toc_ordered -%} @@ -19,23 +17,6 @@ {%- endif -%}
- {%- if page.date -%} -

- - - {%- if page.updated -%} - {{ config.extra.separator | default(value="•") }} - - {%- endif -%} - -

- {%- endif -%}

{{ page.title }}

diff --git a/templates/subproject_list.html b/templates/subproject_list.html index c88fc73..21f1278 100644 --- a/templates/subproject_list.html +++ b/templates/subproject_list.html @@ -1,8 +1,6 @@ {% extends "base.html" %} {% block content %} -{%- set date_format = macros_translate::translate(key="date_format", default="%B %d, %Y", language_strings=language_strings) -%} -{%- set date_locale = macros_translate::translate(key="date_locale", default="en_US", language_strings=language_strings) -%} {%- if paginator.pages -%} {%- set number_of_posts = paginator.total_pages -%}