1
Fork 0

add description content to category pages

This commit is contained in:
Jake Howard 2016-06-26 11:57:22 +01:00
parent 5fbbf149f9
commit 8da4fc7503
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 12 additions and 3 deletions

View file

@ -54,12 +54,14 @@ FEED_DOMAIN = SITEURL
# Setup plugins # Setup plugins
PLUGIN_PATHS = ["pelican_plugins", "plugins"] PLUGIN_PATHS = ["pelican_plugins", "plugins"]
PLUGINS = ["sitemap", "filetime_from_git", "pelican-jinja2content", "open_graph"] PLUGINS = ["sitemap", "filetime_from_git", "pelican-jinja2content", "open_graph", "autopages"]
SITEMAP = { SITEMAP = {
"format": "xml" "format": "xml"
} }
CATEGORY_PAGE_PATH = "theme/templates/categories"
# Setup markdown extensions # Setup markdown extensions
from fontawesome_markdown import FontAwesomeExtension from fontawesome_markdown import FontAwesomeExtension
from pyembed.markdown import PyEmbedMarkdown from pyembed.markdown import PyEmbedMarkdown

View file

@ -15,12 +15,19 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-lg-8 col-lg-offset-2 text-center"> <div class="col-lg-8 col-lg-offset-2 text-center">
<h1 class="section-heading">{{ category|title }}</h1> <h1 class="section-heading">{{ category.name|title }}</h1>
<hr class="light"> <hr class="light">
</div> </div>
</div> </div>
</div> </div>
</section> </section>
{% if category.page %}
<section>
<div class="container">
{{ category.page.content }}
</div>
</section>
{% endif %}
<section class="no-padding"> <section class="no-padding">
<div class="container-fluid"> <div class="container-fluid">
<div class="row no-gutter"> <div class="row no-gutter">
@ -33,7 +40,7 @@
{{ article.title }} {{ article.title }}
</div> </div>
<div class="project-name"> <div class="project-name">
{{ article.title }} {{ article.summary|striptags|e }}
</div> </div>
</div> </div>
</div> </div>