From d6fe8c61c831ec2671215b6d553a28e5901b6f4e Mon Sep 17 00:00:00 2001 From: evilchili Date: Sun, 7 Aug 2022 16:45:46 -0700 Subject: [PATCH] adding maps, gallery --- deadsands/content/pages/maps.md | 3 ++- deadsands/content/regions/blooming-wastes.md | 8 ++----- .../static/deadsands/css/style.css | 23 +++++++++++++++++++ .../deadsands-theme/templates/macros.html | 13 +++++++++++ deadsands/deadsands-theme/templates/page.html | 16 +------------ 5 files changed, 41 insertions(+), 22 deletions(-) diff --git a/deadsands/content/pages/maps.md b/deadsands/content/pages/maps.md index 1c1652b..7cf8d49 100644 --- a/deadsands/content/pages/maps.md +++ b/deadsands/content/pages/maps.md @@ -8,6 +8,7 @@ date: 2022-08-03 23:20:02.243922 key_image: src: '/images/dewa_qasos.png' alt: "Hand-drawn map of the Dewa Q'Asos" +gallery: + overland_map.png: "Overland map of the Sahwat Desert (so far)" --- -Map men map men map map map men men men ...men. diff --git a/deadsands/content/regions/blooming-wastes.md b/deadsands/content/regions/blooming-wastes.md index 5a38a30..7166bd8 100644 --- a/deadsands/content/regions/blooming-wastes.md +++ b/deadsands/content/regions/blooming-wastes.md @@ -7,6 +7,7 @@ tags: region, homebrew date: 2022-07-20 17:54:47.286869 template: region show_dm_content: True +description: Detail of an overland map of the Sahwat Desert Leads to Calamity Ridge, Dust River Canyon, and Tano's Edge. region: name: The Blooming Wastes size: 20 @@ -60,9 +61,4 @@ region: Effect: Bubbles rain upwards, obscuring vision; disadvantage on perception checks --- -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. +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 476efb4..4fd2c97 100644 --- a/deadsands/deadsands-theme/static/deadsands/css/style.css +++ b/deadsands/deadsands-theme/static/deadsands/css/style.css @@ -163,6 +163,29 @@ img { z-index: -1; } +.gallery_image { + max-width: 300px; + height: auto; + margin: 0px auto; +} + +.gallery_image a { + position: relative; + display: block; + border: 5px solid black; +} +.gallery_image a:active, .gallery_image a:hover { + border-color:#cca138; +} +.gallery_iamge a img { + position: relative; +} +.gallery_image span { + display: block; + padding: 10px; + text-justify: left; +} + article.recent { font-style: italic; margin-bottom: 1em; diff --git a/deadsands/deadsands-theme/templates/macros.html b/deadsands/deadsands-theme/templates/macros.html index 467b70d..c68cd9e 100644 --- a/deadsands/deadsands-theme/templates/macros.html +++ b/deadsands/deadsands-theme/templates/macros.html @@ -6,6 +6,19 @@ {% endif %} {% endmacro %} +{% macro image(filename, alt) %} + +{% endmacro %} + +{% macro gallery(ref) %} + +{% endmacro %} + {% macro table(t, headers=[]) %} {% for h in headers %}{% if h %}{% endif %}{% endfor %} diff --git a/deadsands/deadsands-theme/templates/page.html b/deadsands/deadsands-theme/templates/page.html index 386778f..0724df6 100644 --- a/deadsands/deadsands-theme/templates/page.html +++ b/deadsands/deadsands-theme/templates/page.html @@ -9,22 +9,8 @@

{{ page.title }}


{{ page.content }} + {% if page.gallery %}{{ macros.gallery(page) }}{% endif %}
- - {% if page.show_recent %} -
-
-

Recent Sessions

- {% with count=10, key='category', values=['sessions', 'test'] %}{% include "signs.html" %}{% endwith %} -
-
-
-

Recent Lore

-
- {% with count=10, key='category', values=['lore', 'dm'] %}{% include "signs.html" %}{% endwith %} -
-
- {% endif %} {% endblock content %}
{{ h }}