adding DM view options
This commit is contained in:
parent
4f010ba507
commit
5edf5f2283
|
@ -6,12 +6,13 @@ author: evilchili
|
|||
tags: region, homebrew
|
||||
date: 2022-07-20 17:54:47.286869
|
||||
template: region
|
||||
show_dm_content: True
|
||||
region:
|
||||
name: The Blooming Wastes
|
||||
size: 20
|
||||
terrain: difficult
|
||||
description: |
|
||||
The Blooming Wastes stretch out before you: a mostly flat expanse of hard, cracked earth blanketed by some kind of sandy brown scrub. Small mesas dot the horizon, suggesting the possibility of shelter. As you approach you see that the scrub is covered in thick black thorns sharp enough to pierce boot leather; you will need to tread carefully.
|
||||
dm_notes: |
|
||||
A mostly flat expanse of hard-packed earth blanked by redfoot, a hardy, sandy-brown moss covered in sharp thorns. At night glowing clusters of moon blossoms emerge from the earth and open their petals, bathing the entire wasteland in a pale, silvery light.
|
||||
skills:
|
||||
travel:
|
||||
DC: 10
|
||||
|
@ -59,4 +60,9 @@ region:
|
|||
Effect: Bubbles rain upwards, obscuring vision; disadvantage on perception checks
|
||||
---
|
||||
|
||||
A mostly flat expanse of hard-packed earth blanked by redfoot, a hardy, sandy-brown moss covered in sharp thorns. At night glowing clusters of moon blossoms emerge from the earth and open their petals, bathing the entire wasteland in a pale, silvery light.
|
||||
The Blooming Wastes stretch out before you: a mostly flat
|
||||
expanse of hard, cracked earth blanketed by some kind of
|
||||
sandy brown scrub. Small mesas dot the horizon, suggesting the
|
||||
possibility of shelter. As you approach you see that the scrub
|
||||
is covered in thick black thorns sharp enough to pierce boot
|
||||
leather; you will need to tread carefully.
|
||||
|
|
|
@ -837,3 +837,7 @@ a.disabled:hover {
|
|||
-o-transform:skew(8deg) rotate(3deg);
|
||||
transform:skew(8deg) rotate(3deg);
|
||||
}
|
||||
|
||||
.dm {
|
||||
display: none !important;
|
||||
}
|
||||
|
|
|
@ -11,6 +11,10 @@
|
|||
{% endif %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
{% endblock head %}
|
||||
{% block extrahead %}{% endblock %}
|
||||
{% if is_dm %}
|
||||
<style type="text/css">.dm { display: block !important; }</style>
|
||||
{% endif %}
|
||||
</head>
|
||||
|
||||
<body id="index" class="archive">
|
||||
|
@ -46,4 +50,5 @@
|
|||
</footer><!-- /#contentinfo -->
|
||||
</div>
|
||||
</body>
|
||||
{% block is_dm %}{{ ' ' if 'localhost' in SITEURL else '' }}{% endblock %}
|
||||
</html>
|
||||
|
|
|
@ -6,21 +6,21 @@
|
|||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro list_to_cols(l, headers) %}
|
||||
{% macro table(t, headers=[]) %}
|
||||
<table>
|
||||
<tr>{% for h in headers %}{% if h %}<th>{{ h }}</th>{% endif %}{% endfor %}</tr>
|
||||
{% for key in t %}
|
||||
<tr><td>{{ key }}</td>{{ _list_to_cols(t[key], headers) }}</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro _list_to_cols(l, headers) %}
|
||||
{% if l is mapping %}
|
||||
{% for key in l if key in headers%}
|
||||
{{ list_to_cols(l[key], headers) }}
|
||||
{{ _list_to_cols(l[key], headers) }}
|
||||
{% endfor %}
|
||||
{% elif l %}
|
||||
<td>{{ l }}</td>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro table(t, headers=[]) %}
|
||||
<table>
|
||||
<tr>{% for h in headers %}{% if h %}<th>{{ h }}</th>{% endif %}{% endfor %}</tr>
|
||||
{% for key in t %}
|
||||
<tr><td>{{ key }}</td>{{ list_to_cols(t[key], headers) }}</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endmacro %}
|
||||
|
|
|
@ -20,12 +20,13 @@
|
|||
{{ article.content }}
|
||||
|
||||
{% set target = article.title.replace(' ', '_') %}
|
||||
{% if self.is_dm() %}
|
||||
<div class='statblock'>
|
||||
<div style='cursor: pointer;'
|
||||
onclick="document.getElementById('{{target}}').style.display=((document.getElementById('{{ target }}').style.display=='none')?'':'none');" ><h3>{{ article.title }}</h3></div>
|
||||
<div id="{{ target }}" style='display:none;'>
|
||||
<div class='read'>
|
||||
{{ r.description }}
|
||||
{{ r.dm_notes }}
|
||||
</div>
|
||||
<dl>
|
||||
<dt>Size</dt><dd>{{ r.size }} sq. miles </dd>
|
||||
|
@ -37,6 +38,7 @@
|
|||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<hr>
|
||||
{% include "bottom-nav.html" %}
|
||||
</div>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
title: {{ title }}
|
||||
author: {{ author if author else 'evilchili' }}
|
||||
show_dm_content: False
|
||||
tags: {{ tags }}
|
||||
{% if date %}
|
||||
date: {{ date }}
|
||||
|
@ -10,6 +11,6 @@ date: {{ date }}
|
|||
{% if summary %}
|
||||
summary: {{summary}}
|
||||
{% endif %}
|
||||
status: {{ status if status else 'draft' }}
|
||||
status: {{ status if status else 'publish }}
|
||||
---
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ tags: {{ tags or 'region'}}
|
|||
date: {{ date }}
|
||||
{% endif %}
|
||||
template: region
|
||||
show_dm_content: False
|
||||
{% if summary %}
|
||||
summary: {{summary}}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user