refactor: ♻️ clean up unused Twig templates
This commit is contained in:
parent
d54d3077cb
commit
a7a7c738ec
12 changed files with 253 additions and 98 deletions
30
www/templates/fragments/filepath_bar.html
Normal file
30
www/templates/fragments/filepath_bar.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<div id="post_file_bar">
|
||||
<menu id="post_file_titles">
|
||||
<li>
|
||||
{{ post.post_metadata.title }}
|
||||
</li>
|
||||
</menu>
|
||||
<menu id="post_file_path">
|
||||
{% set split_post = post.post_path |split('/') %}
|
||||
{% for i in range(0, split_post|length - 1) %}
|
||||
<li>
|
||||
{% if i != 0 %}
|
||||
>
|
||||
{% endif %}
|
||||
{% if i != 0 %}
|
||||
<a href="{{split_post|slice(0,i+1)|join('/')}}">
|
||||
{{ split_post[i] }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="/">root</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<li style="margin-left: auto;">
|
||||
<a href="/raw{{post.post_path}}">raw</a>
|
||||
<a href="/api/posts{{post.post_path}}">api</a>
|
||||
</li>
|
||||
</menu>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue