added meta descriptions, fixed landing page recent list

This commit is contained in:
evilchili
2022-08-07 13:12:38 -07:00
parent 2873278789
commit d98e9a5e97
6 changed files with 14 additions and 11 deletions
@@ -173,6 +173,10 @@ article.recent a.title {
font-style: normal;
}
article.recent h3, h4, h5, h6 {
display: none;
}
/* Custom page header */
.header {
position: relative;
@@ -1,6 +1,7 @@
{% extends "base.html" %}
{% import "macros.html" as macros %}
{% block title %}{{ article.title|capitalize }} - {{SITENAME}}{% endblock title %}
{% block summary %}{{ article.summary|striptags }}{% endblock %}
{% block key_image %}{{ macros.key_image(article) }}{% endblock key_image %}
{% block content %}
{% if not self.is_dm() and article.category == 'dm' %}
@@ -11,6 +11,7 @@
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
{% endblock head %}
<meta name="description" content="{% block summary %}{% endblock %}" />
{% block extrahead %}{% endblock %}
{% if is_dm %}
<style type="text/css">.dm { display: block !important; }</style>
@@ -1,6 +1,7 @@
{% extends "base.html" %}
{% import "macros.html" as macros %}
{% block title %}{{ page.title }} - {{SITENAME}}{% endblock title %}
{% block summary %}{{ page.summary|striptags }}{% endblock %}
{% block key_image %}{{ macros.key_image(page) }}{% endblock key_image %}
{% block content %}
<section id="content">
@@ -6,14 +6,11 @@
<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 %}
{% if page.show_recent %}
<h3>Recent Posts</h3>
{% with count=10, key='category', values=['lore', 'mechanics', 'regions'] %}{% include "recent.html" %}{% endwith %}
<hr>
{% endif %}
</div>
</section>
{% endblock %}