diff --git a/deadsands/content/regions/blooming-wastes.md b/deadsands/content/regions/blooming-wastes.md index 6549976..5a38a30 100644 --- a/deadsands/content/regions/blooming-wastes.md +++ b/deadsands/content/regions/blooming-wastes.md @@ -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. diff --git a/deadsands/deadsands-theme/static/deadsands/css/style.css b/deadsands/deadsands-theme/static/deadsands/css/style.css index 4aa2b32..684722a 100644 --- a/deadsands/deadsands-theme/static/deadsands/css/style.css +++ b/deadsands/deadsands-theme/static/deadsands/css/style.css @@ -837,3 +837,7 @@ a.disabled:hover { -o-transform:skew(8deg) rotate(3deg); transform:skew(8deg) rotate(3deg); } + +.dm { + display: none !important; +} diff --git a/deadsands/deadsands-theme/templates/base.html b/deadsands/deadsands-theme/templates/base.html index 5322c6c..1d42e27 100644 --- a/deadsands/deadsands-theme/templates/base.html +++ b/deadsands/deadsands-theme/templates/base.html @@ -11,6 +11,10 @@ {% endif %} {% endblock head %} + {% block extrahead %}{% endblock %} + {% if is_dm %} + + {% endif %} @@ -46,4 +50,5 @@ + {% block is_dm %}{{ ' ' if 'localhost' in SITEURL else '' }}{% endblock %} diff --git a/deadsands/deadsands-theme/templates/macros.html b/deadsands/deadsands-theme/templates/macros.html index 087c34b..467b70d 100644 --- a/deadsands/deadsands-theme/templates/macros.html +++ b/deadsands/deadsands-theme/templates/macros.html @@ -1,26 +1,26 @@ {% macro key_image(ref) %} -{% if ref.key_image %} - - {{ ref.key_image.alt}} - -{% endif %} + {% if ref.key_image %} + + {{ ref.key_image.alt}} + + {% endif %} {% endmacro %} -{% macro list_to_cols(l, headers) %} +{% macro table(t, headers=[]) %} + + {% for h in headers %}{% if h %}{% endif %}{% endfor %} + {% for key in t %} + {{ _list_to_cols(t[key], headers) }} + {% endfor %} +
{{ h }}
{{ key }}
+{% 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 %} {{ l }} {% endif %} {% endmacro %} - -{% macro table(t, headers=[]) %} - - {% for h in headers %}{% if h %}{% endif %}{% endfor %} - {% for key in t %} - {{ list_to_cols(t[key], headers) }} - {% endfor %} -
{{ h }}
{{ key }}
-{% endmacro %} diff --git a/deadsands/deadsands-theme/templates/region.html b/deadsands/deadsands-theme/templates/region.html index fbcb680..28446ce 100644 --- a/deadsands/deadsands-theme/templates/region.html +++ b/deadsands/deadsands-theme/templates/region.html @@ -20,12 +20,13 @@ {{ article.content }} {% set target = article.title.replace(' ', '_') %} + {% if self.is_dm() %}

{{ article.title }}

+ {% endif %}
{% include "bottom-nav.html" %} diff --git a/deadsands/markdown-templates/default.md b/deadsands/markdown-templates/default.md index 71907d7..7d1386c 100644 --- a/deadsands/markdown-templates/default.md +++ b/deadsands/markdown-templates/default.md @@ -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 }} --- diff --git a/deadsands/markdown-templates/region.md b/deadsands/markdown-templates/region.md index 71bc59f..4be2e1d 100644 --- a/deadsands/markdown-templates/region.md +++ b/deadsands/markdown-templates/region.md @@ -8,6 +8,7 @@ tags: {{ tags or 'region'}} date: {{ date }} {% endif %} template: region +show_dm_content: False {% if summary %} summary: {{summary}} {% endif %}