Option to link from subproject to external site

This commit is contained in:
david-swift 2025-03-11 21:08:49 +01:00
parent 21c184a004
commit be8a904508
2 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@ tags = ["Demo", "Test"]
[extra] [extra]
preview = "pond.jpg" preview = "pond.jpg"
badge = "Coming Soon" badge = "Coming Soon"
url = "https://example.com"
+++ +++
This feature is not yet implemented. Coming soon! This feature is not yet implemented. Coming soon!

View File

@ -1,7 +1,11 @@
<div id="subproject-list"> <div id="subproject-list">
{%- for page in section.pages %} {%- for page in section.pages %}
<article> <article>
<a href="{{ page.permalink | safe }}"></a> {%- if page.extra.url -%}
<a href="{{ page.extra.url }}"></a>
{%- else -%}
<a href="{{ page.permalink | safe }}"></a>
{%- endif -%}
{% if page.extra.badge %} {% if page.extra.badge %}
<span class="badge subproject-badge"> <span class="badge subproject-badge">
{{ page.extra.badge }} {{ page.extra.badge }}