Option to link from subproject to external site
This commit is contained in:
parent
21c184a004
commit
be8a904508
@ -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!
|
||||||
|
|||||||
@ -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 }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user