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]
|
||||
preview = "pond.jpg"
|
||||
badge = "Coming Soon"
|
||||
url = "https://example.com"
|
||||
+++
|
||||
|
||||
This feature is not yet implemented. Coming soon!
|
||||
|
||||
@ -1,7 +1,11 @@
|
||||
<div id="subproject-list">
|
||||
{%- for page in section.pages %}
|
||||
<article>
|
||||
{%- if page.extra.url -%}
|
||||
<a href="{{ page.extra.url }}"></a>
|
||||
{%- else -%}
|
||||
<a href="{{ page.permalink | safe }}"></a>
|
||||
{%- endif -%}
|
||||
{% if page.extra.badge %}
|
||||
<span class="badge subproject-badge">
|
||||
{{ page.extra.badge }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user