Entry
This commit is contained in:
parent
047907d4bb
commit
0b7c8ca989
3 changed files with 22 additions and 7 deletions
11
doc/templates/category.html.jinja
vendored
11
doc/templates/category.html.jinja
vendored
|
@ -1,16 +1,13 @@
|
|||
{% import "macros.html.jinja" as macros %}
|
||||
{% import "macros.html.jinja" as macros -%}
|
||||
|
||||
<section id="{{ category.id.path }}">
|
||||
{% call macros.maybe_spoilered(category) %}
|
||||
<h2 class="category-title page-header">
|
||||
{{ category.name | hexdoc_block }}
|
||||
{{ macros.jump_to_top() }}
|
||||
{{ macros.permalink(category.id.path) }}
|
||||
</h2>
|
||||
{{ macros.header(category, "category-title") }}
|
||||
{{ category.description | hexdoc_block }}
|
||||
{% endcall %}
|
||||
{% for entry in category.entries %}
|
||||
{% if entry.id not in blacklist %}
|
||||
entry
|
||||
{% include "entry.html.jinja" %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</section>
|
10
doc/templates/entry.html.jinja
vendored
Normal file
10
doc/templates/entry.html.jinja
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
{% import "macros.html.jinja" as macros -%}
|
||||
|
||||
<div id="{{ entry.id.path }}">
|
||||
{% call macros.maybe_spoilered(entry) %}
|
||||
{{ macros.header(entry, "entry-title") }}
|
||||
{% for page in entry.pages %}
|
||||
page
|
||||
{% endfor %}
|
||||
{% endcall %}
|
||||
</div>
|
8
doc/templates/macros.html.jinja
vendored
8
doc/templates/macros.html.jinja
vendored
|
@ -25,3 +25,11 @@
|
|||
<i class="bi bi-box-arrow-up"></i>
|
||||
</a>
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro header(value, class_name) %}
|
||||
<h3 class="{{ class_name }} page-header">
|
||||
{{ value.name | hexdoc_block }}
|
||||
{{ jump_to_top() }}
|
||||
{{ permalink(value.id.path) }}
|
||||
</h3>
|
||||
{%- endmacro %}
|
||||
|
|
Loading…
Reference in a new issue