Remove blog-specific items #2

This commit is contained in:
david-swift 2025-03-08 12:30:03 +01:00
parent d30fd2b007
commit ce27eabb69
9 changed files with 9 additions and 67 deletions

View File

@ -1,5 +1,6 @@
+++ +++
title = "Subprojects" title = "Subprojects"
sort_by = "weight"
template = "subproject_list.html" template = "subproject_list.html"
page_template = "subproject.html" page_template = "subproject.html"
+++ +++

View File

@ -1,8 +1,7 @@
+++ +++
weight = 1
title = "Blogs" title = "Blogs"
description = "Duckling offers the blogs feature borrowed from Duckquill 🦆" description = "Duckling offers the blogs feature borrowed from Duckquill 🦆"
date = 2023-08-31
updated = "2024-06-21"
[taxonomies] [taxonomies]
tags = ["Demo", "Test"] tags = ["Demo", "Test"]
+++ +++

View File

@ -1,10 +1,11 @@
+++ +++
weight = 3
title = "Documentation" title = "Documentation"
description = "No need for a separate documentation page - coming soon!" description = "No need for a separate documentation page - coming soon!"
date = 2023-08-31
updated = "2024-06-21"
[taxonomies] [taxonomies]
tags = ["Demo", "Test"] tags = ["Demo", "Test"]
[extra]
featured = true
+++ +++
This feature is not yet implemented. Coming soon! This feature is not yet implemented. Coming soon!

View File

@ -1,8 +1,7 @@
+++ +++
weight = 2
title = "Subprojects" title = "Subprojects"
description = "Showcase parts of your project!" description = "Showcase parts of your project!"
date = 2023-08-31
updated = "2024-06-21"
[taxonomies] [taxonomies]
tags = ["Demo", "Test"] tags = ["Demo", "Test"]
+++ +++

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 B

View File

@ -24,10 +24,7 @@
{%- set article_type = "poor" -%} {%- set article_type = "poor" -%}
{%- set article_string = macros_translate::translate(key="poor", default="Poor", language_strings=language_strings) -%} {%- set article_string = macros_translate::translate(key="poor", default="Poor", language_strings=language_strings) -%}
{%- endif -%} {%- endif -%}
{%- if page.extra.banner -%} <article {% if article_type %}class="{{ article_type }}"{% endif %}>
{%- set blurnail = resize_image(path=page.colocated_path ~ page.extra.banner, width=4, height=2, op="fill", format="webp") -%}
{%- endif -%}
<article {% if article_type %}class="{{ article_type }}"{% endif %} {% if blurnail %}style="--blurnail: url('{{ blurnail.url }}')"{% endif %}>
<a href="{{ page.permalink | safe }}"></a> <a href="{{ page.permalink | safe }}"></a>
{% if article_type %} {% if article_type %}
<span class="badge"> <span class="badge">

View File

@ -1,13 +1,5 @@
{%- if paginator.pages -%}
{%- set pages = paginator.pages -%}
{%- elif section.pages -%}
{%- set pages = section.pages -%}
{%- else -%}
{%- set pages = term.pages -%}
{%- endif -%}
<div id="article-list"> <div id="article-list">
{%- for page in pages %} {%- for page in section.pages %}
{%- if page.draft -%} {%- if page.draft -%}
{%- set article_type = "draft" -%} {%- set article_type = "draft" -%}
{%- set article_string = macros_translate::translate(key="drafted", default="Drafted", language_strings=language_strings) -%} {%- set article_string = macros_translate::translate(key="drafted", default="Drafted", language_strings=language_strings) -%}
@ -24,10 +16,7 @@
{%- set article_type = "poor" -%} {%- set article_type = "poor" -%}
{%- set article_string = macros_translate::translate(key="poor", default="Poor", language_strings=language_strings) -%} {%- set article_string = macros_translate::translate(key="poor", default="Poor", language_strings=language_strings) -%}
{%- endif -%} {%- endif -%}
{%- if page.extra.banner -%} <article {% if article_type %}class="{{ article_type }}"{% endif %}>
{%- set blurnail = resize_image(path=page.colocated_path ~ page.extra.banner, width=4, height=2, op="fill", format="webp") -%}
{%- endif -%}
<article {% if article_type %}class="{{ article_type }}"{% endif %} {% if blurnail %}style="--blurnail: url('{{ blurnail.url }}')"{% endif %}>
<a href="{{ page.permalink | safe }}"></a> <a href="{{ page.permalink | safe }}"></a>
{% if article_type %} {% if article_type %}
<span class="badge"> <span class="badge">
@ -39,29 +28,6 @@
{%- if page.description %} {%- if page.description %}
{{ page.description | markdown | safe }} {{ page.description | markdown | safe }}
{%- endif %} {%- endif %}
{%- if page.date -%}
<div class="details">
<small>
<time datetime="{{ page.date | date(format='%+') }}" pubdate>
{{- page.date | date(format=date_format, locale=date_locale) -}}
</time>
{%- if page.authors -%}
<span> {{ config.extra.separator | default(value="•") }} {% include "partials/authors.html" -%}</span>
{%- endif -%}
</small>
{%- if page.taxonomies -%}
{%- for name, taxon in page.taxonomies %}
<small>
<ul class="tags">
{%-for item in taxon -%}
<li><a class="tag" href="{{ get_taxonomy_url(kind=name, name=item, lang=lang) }}">{{ item }}</a></li>
{%- endfor %}
</ul>
</small>
{%- endfor -%}
{%- endif %}
</div>
{%- endif -%}
</article> </article>
{%- endfor %} {%- endfor %}
</div> </div>

View File

@ -1,8 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% 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 -%} {%- set rel_attributes = macros_rel_attributes::rel_attributes() | trim -%}
{%- if page.extra.toc_ordered or section.extra.toc_ordered or config.extra.toc_ordered -%} {%- if page.extra.toc_ordered or section.extra.toc_ordered or config.extra.toc_ordered -%}
@ -19,23 +17,6 @@
{%- endif -%} {%- endif -%}
<div id="heading"> <div id="heading">
{%- if page.date -%}
<p>
<small>
<time datetime="{{ page.date | date(format=' %+') }}">
{{- macros_translate::translate(key="published", default="Published on", language_strings=language_strings) }}
{{ page.date | date(format=date_format, locale=date_locale) -}}
</time>
{%- if page.updated -%}
<span> {{ config.extra.separator | default(value="•") }} </span>
<time datetime="{{ page.updated | date(format=' %+') }}">
{{- macros_translate::translate(key="updated", default="Updated on", language_strings=language_strings) }}
{{ page.updated | date(format=date_format, locale=date_locale) -}}
</time>
{%- endif -%}
</small>
</p>
{%- endif -%}
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>

View File

@ -1,8 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% 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 -%} {%- if paginator.pages -%}
{%- set number_of_posts = paginator.total_pages -%} {%- set number_of_posts = paginator.total_pages -%}