claude and example site
This commit is contained in:
40
example_site/template/__folder.md.html
Normal file
40
example_site/template/__folder.md.html
Normal file
@ -0,0 +1,40 @@
|
||||
<div class="holder">
|
||||
<div class="breadcrumbs">
|
||||
{% set breadcrumbs = currentPath.split('/') %}
|
||||
{% for i in range(breadcrumbs|length) %}
|
||||
{% if i+1 == breadcrumbs|length %}
|
||||
<div class="current">{{ breadcrumbs[i] }}</div>
|
||||
{% else %}
|
||||
<a href="{{ '/' ~ '/'.join(breadcrumbs[:i+1]) }}"> 🗀 {{ breadcrumbs[i] }}</a>
|
||||
<div class="seperator">/</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="content_holder">
|
||||
<div class="albums">
|
||||
{% for album in get_sibling_content_folders(currentPath) %}
|
||||
<a href="/{{ album[1] }}">↪ 🗀 {{ album[0] }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="content">
|
||||
{% set sorted_files = get_folder_contents(currentPath) | sort(attribute='date_created', reverse=True) %}
|
||||
{% set filtered_files = [] %}
|
||||
<!-- Filter sorted_files to only items are have "document" in item.categories -->
|
||||
{% for file in sorted_files %}
|
||||
{% if 'document' in file.categories %}
|
||||
{{ filtered_files.append(file) or "" }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<div class="filelist">
|
||||
{% for file in filtered_files %}
|
||||
{% if 'document' in file.categories %}
|
||||
<div class="post">
|
||||
<a href="/{{ file.path }}"><p>{{ file.date_created }}</p><h2>{{ file.proper_name }}</h2></a>
|
||||
</div>
|
||||
<hr class="solid">
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user