adding maps, gallery
This commit is contained in:
@@ -6,6 +6,19 @@
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro image(filename, alt) %}
|
||||
<div class='gallery_image'>
|
||||
<a href="/images/{{ filename }}"><img src="/images/{{ filename|replace('.','_thumb.') }}"></a>
|
||||
<span>{{ alt }}</span>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro gallery(ref) %}
|
||||
<div class='gallery'>
|
||||
{% for img in ref.gallery %}{{ image(img, ref.gallery[img]) }}{% endfor %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro table(t, headers=[]) %}
|
||||
<table>
|
||||
<tr>{% for h in headers %}{% if h %}<th>{{ h }}</th>{% endif %}{% endfor %}</tr>
|
||||
|
||||
@@ -9,22 +9,8 @@
|
||||
<h2>{{ page.title }}</h2>
|
||||
<hr>
|
||||
{{ page.content }}
|
||||
{% if page.gallery %}{{ macros.gallery(page) }}{% endif %}
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
{% if page.show_recent %}
|
||||
<div class='column'>
|
||||
<div class='signs'>
|
||||
<h3>Recent Sessions</h3>
|
||||
{% with count=10, key='category', values=['sessions', 'test'] %}{% include "signs.html" %}{% endwith %}
|
||||
</div>
|
||||
</div>
|
||||
<div class='column'>
|
||||
<h3>Recent Lore</h3>
|
||||
<div class='signs'>
|
||||
{% with count=10, key='category', values=['lore', 'dm'] %}{% include "signs.html" %}{% endwith %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
{% endblock content %}
|
||||
|
||||
Reference in New Issue
Block a user