collapsing dir structure

This commit is contained in:
evilchili
2022-07-30 15:00:24 -07:00
parent 2796d56426
commit fd6131ad5a
99 changed files with 3394 additions and 33 deletions
@@ -0,0 +1,24 @@
{% extends "base.html" %}
{% block archclass %} class="active"{%endblock%}
{% block title %}Site Index - {{SITENAME}}{%endblock%}
{% block content %}
<div class='box curled'>
<h2>Index</h2>
<hr>
{% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %}
<!--<h3><a href="{{SITEURL}}/{{year}}">{{ year }}</a></h3>-->
<h3>{{ year }}</h3>
<table class='archive-list'>
{% for article in date_year %}
<tr>
<td class="date">{{article.locale_date}}</td>
<td class='category'>{{article.category}}</td>
<td class='title'><a href="{{ SITEURL }}/{{ article.url }}">{{article.title}}</a> </td>
</tr>
{% endfor %}
</table>
<hr>
{% endfor %}
</div>
{% endblock %}
@@ -0,0 +1,22 @@
{% extends "base.html" %}
{% block title %}{{ article.title|capitalize }} - {{SITENAME}}{% endblock title %}
{% block content %}
<section id="content">
<div class='box curled'>
<h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
<hr>
<div class='byline'>
<span class='date'>{{ article.locale_date }}</span>&nbsp;{% if article.tags %}{% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> {% endfor %}{% endif %}
</div>
{% if article.description %}
<div class='scrap'><div class='note'>{{ article.description }}</div></div>
{% endif %}
{{ article.content }}
<hr>
{% include "bottom-nav.html" %}
</div>
</section>
{% endblock %}
@@ -0,0 +1,7 @@
{% extends "index.html" %}
{% block title %} Articles by {{ author }} - {{ SITENAME }}{% endblock %}
{% block navclass %}{%endblock%}
{% block content_title %}
<h2>Articles by {{ author }}</h2>
{% endblock %}
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
{% block head %}
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
<meta charset="utf-8" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<link href="{{ SITEURL }}/theme/deadsands/css/style.css" rel="stylesheet" />
{% if FAVICON %}
<link rel="shortcut icon" href="{{ SITEURL }}/{{ FAVICON }}" type="image/x-icon" />
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
{% endblock head %}
</head>
<body id="index" class="archive">
<div id='header_background'>
<div class="header">
<div class='sun'></div>
<div class='title'><h1><a href="/">{{ SITENAME }}</a></h1></div>
<ul class="nav">
{% for category, articles in categories %}
<li><a href="{{ SITEURL }}/{{ category.name }}">{{ category }}</a></li>
{% endfor %}
{% for p in pages %}
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
{% endfor %}
{% for m in MENU_ITEMS %}<li><a href="{{ SITEURL }}/{{ m[1] }}">{{ m[0] }}</a></li>{% endfor %}
</ul>
</div>
</div>
<div id='background'>
<div class="container">{% block content %}{% endblock %}</div>
<footer id="contentinfo" class="footer">
<nav class="pull-right bottom-nav">
<a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">RSS</a>
</nav>
<address id="about" class="vcard body">
<!--
&copy; <a href="{{SITEURL}}">{{SITENAME}}</a> Proudly powered by <a href="http://getpelican.com/">Pelican</a>
-->
</address><!-- /#about -->
</footer><!-- /#contentinfo -->
</div>
</body>
</html>
@@ -0,0 +1,22 @@
{% set all = articles|selectattr('category', 'equalto', category)|list %}
{% if article in all %}
{% set pos = all.index(article) %}
{% set next = all[pos - 1] if pos > 0 else "" %}
{% set prev = all[pos + 1] if pos < all|length else "" %}
<div class='pager'>
<div class='prev'>
{% if prev %}
<a href="{{ SITEURL }}/{{ prev.url }}">← {{ prev.title }}</a>
{% else %}
<a class='disabled'>← Previous</a>
{% endif %}
</div>
<div class='middle'>&nbsp;</div>
<div class='next'>
{% if next %}
<a href="{{ SITEURL }}/{{ next.url }}">{{ next.title }} →</a>
{% else %}
<a class='disabled'>Next →</a>
{% endif %}
</div>
{% endif %}
@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block title %} {{ category }} - {{ SITENAME }}{% endblock %}
{% block archclass %} class="active"{%endblock%}
{% block content %}
<ul>
{% for category, articles in categories %}
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
{% endfor %}
</ul>
{% endblock %}
@@ -0,0 +1,17 @@
<div class='box curled'>
<h2>{{ title | capitalize }}</a></h2>
<hr>
{% for year, date_year in dates|selectattr(key, 'in', values)|groupby( 'date.year' )|sort(reverse=True) %}
<h3>{{ year }}</h3>
<table class='archive-list'>
{% for article in date_year %}
<tr>
<td class="date">{{article.locale_date}}</td>
<td class='category'>{{article.category}}</td>
<td class='title'><a href="{{ SITEURL }}/{{ article.url }}">{{article.title}}</a> </td>
</tr>
{% endfor %}
</table>
{% endfor %}
<hr>
</div>
@@ -0,0 +1,13 @@
{% extends "base.html" %}
{% block title %}{{ category if category else tag if tag else "" |capitalize }} - {{SITENAME}}{% endblock title %}
{% block navclass %}active{%endblock%}
{% block content %}
<section id="content" class="content">
{% if category %}
{% with key='category', values=[category], title=category %}{% include "category-index.html" %}{% endwith %}
{% elif tag %}
{% include "tag-index.html" %}
{% endif %}
</section>
{% endblock content %}
@@ -0,0 +1,26 @@
{% extends "base.html" %}
{% block title %}{{ page.title }} - {{SITENAME}}{%endblock%}
{% block content %}
<div class='box curled'>
<h2>{{ page.title }}</h2>
<hr>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{{ page.content }}
<hr>
{% if page.metadata['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 %}
</div>
{% endblock %}
@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }}: A 5e Homebrew Campaign{%endblock%}
{% block content %}
<section id='content' class='content'>
<div class='box curled'>
<hr>
{{ page.content }}
<hr>
</div>
<div class='column box curled'>
<h3>Recent Sessions</h3>
{% with count=10, key='category', values=['sessions', 'test'] %}{% include "recent.html" %}{% endwith %}
</div>
<div class='column box curled'>
<h3>Recent Lore</h3>
{% with count=10, key='category', values=['lore', 'dm'] %}{% include "recent.html" %}{% endwith %}
</div>
</section>
{% endblock %}
@@ -0,0 +1,7 @@
{% set lim = count or 10 %}
{% set a = articles | selectattr(key, 'in', values) | list %}
{% for article in a[:lim] %}
<article class='recent'>
<a class='title' href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{article.title|striptags }}">{{ article.title }}</a><span class="summary"> {{ article.summary }} </span>
</article>
{% endfor %}
@@ -0,0 +1,98 @@
{% extends "base.html" %}
{% block title %}{{ article.title|capitalize }} - {{SITENAME}}{% endblock title %}
{% block content %}
{% set r = article.metadata.region %}
<section id="content">
<div class='box curled'>
<h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
<hr>
<div class='byline'>
<span class='date'>{{ article.locale_date }}</span>&nbsp;{% if article.tags %}{% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> {% endfor %}{% endif %}
</div>
{% if article.description %}
<div class='scrap'><div class='note'>{{ article.description }}</div></div>
{% endif %}
{{ article.content }}
<div class='statblock'>
<div class='two-column'>
<h3>{{ article.title }}</h3>
<table class='auto'>
<tr>
<td colspan='2'>{{ r.description }}</td>
</tr>
<tr>
<th>Size</th>
<td>{{ r.size }} sq. miles</td>
</tr>
<tr>
<th>Terrain</th>
<td>{{ r.terrain }}</td>
</tr>
<tr>
<th>Encounters On</th>
<td>{{ r.encounters }}</td>
</tr>
<tr>
<th>Challenge Rating</th>
<td>{{ r.cr }}</td>
</tr>
<tr>
<th>Regional Effects</th>
<td>
<ul>{% for e in r.regional_effects %}<li>{{ e }}</li>{% endfor %}</ul>
</td>
</tr>
</table>
<div>
<h4>Weather</h4>
<table class='auto'>
<tr><th>Roll</th><th>Effect</td></tr>
<tr><td>d1</td><td>{{ r.weather.d1 }}</td></tr>
<tr><td>d2</td><td>{{ r.weather.d2 }}</td></tr>
<tr><td>d3</td><td>{{ r.weather.d3 }}</td></tr>
<tr><td>d4</td><td>{{ r.weather.d4 }}</td></tr>
<tr><td>d5</td><td>{{ r.weather.d5 }}</td></tr>
<tr><td>d6</td><td>{{ r.weather.d6 }}</td></tr>
<tr><td>d7</td><td>{{ r.weather.d7 }}</td></tr>
<tr><td>d8</td><td>{{ r.weather.d8 }}</td></tr>
</table>
</div>
</div>
<br>
<h4>Activities</h4>
<table class='min'>
<thead>
<tr>
<th>&nbsp;</td>
<th>DC</th>
<th>Resources</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{% for (k, v) in [ ('Travel', r.travel), ('Forage', r.forage), ('Track', r.track), ('Evade', r.evade), ('Survey', r.survey) ] %}
<tr>
<th>{{ k }}</th>
<td>{{ v.dc or ""}}</td>
<td>{{ v.resources or ""}}</td>
<td>
{% if v.critical_success %}crit. success = {{ v.critical_success }}<br>{% endif %}
{% if v.critical_failure %}crit. failure = {{ v.critical_failure }}<br>{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
<hr>
{% include "bottom-nav.html" %}
</div>
</section>
{% endblock %}
@@ -0,0 +1,19 @@
<div class='box curled'>
<h2>{{ tag }}</a></h2>
<hr>
{% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %}
<h3>{{ year }}</h3>
<table class='archive-list'>
{% for article in date_year %}
{% if tag in article.tags %}
<tr>
<td class="date">{{article.locale_date}}</td>
<td class='category'>{{article.category}}</td>
<td class='title'><a href="{{ SITEURL }}/{{ article.url }}">{{article.title}}</a> </td>
</tr>
{% endif %}
{% endfor %}
</table>
{% endfor %}
<hr>
</div>
@@ -0,0 +1,17 @@
{% extends "base.html" %}
{% block title %}{{ SITENAME }} - Tags{% endblock %}
{% block content %}
<section id="content" class="content">
<div class='cards'>
<div class='card curled'>
<ul class='cloud'>
{% for tag, articles in tags|sort %}
<li><a href="{{ SITEURL }}/{{ tag.url }}" data-weight={{ articles|count }}>{{ tag }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</section>
{% endblock %}