Implement show inline title setting

This commit is contained in:
Ole Eskild Steensen 2022-10-14 20:37:34 +02:00
parent cc476d6a92
commit ba366f0fa9
2 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,9 @@ permalink: "notes/{{ page.fileSlug | slugify }}/"
{% if dgHomeLink !== false%}
<a href="/">🏡 Back Home</a>
{% endif %}
{% if dgShowInlineTitle === true %}
<h1>{{ page.fileSlug }}</h1>
{% endif %}
{{ content | link | highlight | safe}}
{% if dgShowBacklinks === true or dgShowLocalGraph === true%}

View File

@ -8,10 +8,14 @@
{%include "components/notegrowthhistory.njk"%}
<div class="content">
{% if collections.gardenEntry[0].dgShowInlineTitle === true %}
<h1>{{ collections.gardenEntry[0].fileSlug }}</h1>
{% endif %}
{%- for garden in collections.gardenEntry -%}
{{garden.templateContent | link | highlight | safe }}
{%- endfor -%}
{%if collections.gardenEntry[0].data.dgShowBacklinks === true or collections.gardenEntry[0].data.dgShowLocalGraph === true%}
{%include "components/sidebar.njk" %}
{%endif%}