How to edit link added
This commit is contained in:
parent
abc909b254
commit
90c502edcf
3 changed files with 31 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
|||
{%- include "macros/rezept_body.html" -%}
|
||||
{%- if not from_index -%}
|
||||
{%- include "zutaten/hygiene.html" -%}
|
||||
{%- include "zutaten/orf.html" -%}
|
||||
{%- include "zutaten/github.html" -%}
|
||||
{%- endif %}
|
||||
{%- else -%}
|
||||
{%- include "macros/rezept_body.html" -%}
|
||||
|
|
14
templates/zutaten/github.html
Normal file
14
templates/zutaten/github.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{%- for child in post.children -%}
|
||||
{%- if child._template == 'zutaten.yaml' -%}
|
||||
{%- if child.render_hygiene | default(True) -%}
|
||||
<div class="content__box">
|
||||
<div class="content__inner_box">
|
||||
<h3 id="hygiene">Verbesserungsvorschläge</h3>
|
||||
<p>Unsere Webseite wird in einem <a href="https://github.com/c3woc/c3woc-website/">git</a> verwaltet.<br/>
|
||||
Wenn dir auffällt, das etwas verbessert werden kann, öffne gerne ein <a href="https://github.com/c3woc/c3woc-website/issues/new/choose">Issue</a>. Du kannst auch zum Beispiel dieses Rezept hier direkt <a href="https://github.com/c3woc/c3woc-website/edit/main/content{{ '.' | url(external=false) }}rezept.yaml/contents.lr">bearbeiten</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
15
templates/zutaten/orf.html
Normal file
15
templates/zutaten/orf.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{%- for child in post.children -%}
|
||||
{%- if child._template == 'zutaten.yaml' -%}
|
||||
{%- if child.render_hygiene | default(True) -%}
|
||||
<div class="content__box">
|
||||
<div class="content__inner_box">
|
||||
<h2 id="hygiene">Open Recipe Format</h2>
|
||||
<p>Beim C3WOC lieben wir Offene Daten und Standards. <br/>
|
||||
Daher gibt es nun alle hier veröffentlichten Rezepte auch im "<a href="https://open-recipe-format.readthedocs.io/en/latest/">Open Recipe Format</a>.<br/>
|
||||
Diess findet ihr für "{{ child.title }}" auf <a href="{{ './rezept.yaml' | url(external=true) }}">{{ './rezept.yaml' | url(external=true) }}</a>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
Loading…
Reference in a new issue