add description content to category pages
This commit is contained in:
parent
5fbbf149f9
commit
8da4fc7503
2 changed files with 12 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Reference in a new issue