adding DM view options
This commit is contained in:
parent
4f010ba507
commit
5edf5f2283
|
@ -6,12 +6,13 @@ author: evilchili
|
||||||
tags: region, homebrew
|
tags: region, homebrew
|
||||||
date: 2022-07-20 17:54:47.286869
|
date: 2022-07-20 17:54:47.286869
|
||||||
template: region
|
template: region
|
||||||
|
show_dm_content: True
|
||||||
region:
|
region:
|
||||||
name: The Blooming Wastes
|
name: The Blooming Wastes
|
||||||
size: 20
|
size: 20
|
||||||
terrain: difficult
|
terrain: difficult
|
||||||
description: |
|
dm_notes: |
|
||||||
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.
|
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:
|
skills:
|
||||||
travel:
|
travel:
|
||||||
DC: 10
|
DC: 10
|
||||||
|
@ -59,4 +60,9 @@ region:
|
||||||
Effect: Bubbles rain upwards, obscuring vision; disadvantage on perception checks
|
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);
|
-o-transform:skew(8deg) rotate(3deg);
|
||||||
transform:skew(8deg) rotate(3deg);
|
transform:skew(8deg) rotate(3deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dm {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
{% endblock head %}
|
{% endblock head %}
|
||||||
|
{% block extrahead %}{% endblock %}
|
||||||
|
{% if is_dm %}
|
||||||
|
<style type="text/css">.dm { display: block !important; }</style>
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="index" class="archive">
|
<body id="index" class="archive">
|
||||||
|
@ -46,4 +50,5 @@
|
||||||
</footer><!-- /#contentinfo -->
|
</footer><!-- /#contentinfo -->
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
{% block is_dm %}{{ ' ' if 'localhost' in SITEURL else '' }}{% endblock %}
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -6,21 +6,21 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% 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 %}
|
{% if l is mapping %}
|
||||||
{% for key in l if key in headers%}
|
{% for key in l if key in headers%}
|
||||||
{{ list_to_cols(l[key], headers) }}
|
{{ _list_to_cols(l[key], headers) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% elif l %}
|
{% elif l %}
|
||||||
<td>{{ l }}</td>
|
<td>{{ l }}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% 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 }}
|
{{ article.content }}
|
||||||
|
|
||||||
{% set target = article.title.replace(' ', '_') %}
|
{% set target = article.title.replace(' ', '_') %}
|
||||||
|
{% if self.is_dm() %}
|
||||||
<div class='statblock'>
|
<div class='statblock'>
|
||||||
<div style='cursor: pointer;'
|
<div style='cursor: pointer;'
|
||||||
onclick="document.getElementById('{{target}}').style.display=((document.getElementById('{{ target }}').style.display=='none')?'':'none');" ><h3>{{ article.title }}</h3></div>
|
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 id="{{ target }}" style='display:none;'>
|
||||||
<div class='read'>
|
<div class='read'>
|
||||||
{{ r.description }}
|
{{ r.dm_notes }}
|
||||||
</div>
|
</div>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Size</dt><dd>{{ r.size }} sq. miles </dd>
|
<dt>Size</dt><dd>{{ r.size }} sq. miles </dd>
|
||||||
|
@ -37,6 +38,7 @@
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<hr>
|
<hr>
|
||||||
{% include "bottom-nav.html" %}
|
{% include "bottom-nav.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
title: {{ title }}
|
title: {{ title }}
|
||||||
author: {{ author if author else 'evilchili' }}
|
author: {{ author if author else 'evilchili' }}
|
||||||
|
show_dm_content: False
|
||||||
tags: {{ tags }}
|
tags: {{ tags }}
|
||||||
{% if date %}
|
{% if date %}
|
||||||
date: {{ date }}
|
date: {{ date }}
|
||||||
|
@ -10,6 +11,6 @@ date: {{ date }}
|
||||||
{% if summary %}
|
{% if summary %}
|
||||||
summary: {{summary}}
|
summary: {{summary}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
status: {{ status if status else 'draft' }}
|
status: {{ status if status else 'publish }}
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ tags: {{ tags or 'region'}}
|
||||||
date: {{ date }}
|
date: {{ date }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
template: region
|
template: region
|
||||||
|
show_dm_content: False
|
||||||
{% if summary %}
|
{% if summary %}
|
||||||
summary: {{summary}}
|
summary: {{summary}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user