Skip to content

Commit

Permalink
Add post-(type) class to story.tmpl
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 2, 2016
1 parent 970598a commit 22fe92c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -4,6 +4,8 @@ New in master
Features
--------

* Added ``post-(type)`` class to ``story.tmpl`` (uses the ``type``
meta field, defaults to ``post-text`` — same behavior as posts)
* Added ``compiled`` signal after post is compiled (Issue #2369)

Bugfixes
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base-jinja/templates/story.tmpl
Expand Up @@ -5,7 +5,7 @@
{% extends 'post.tmpl' %}

{% block content %}
<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article">
<article class="post-{{ post.meta('type') }} storypage" itemscope="itemscope" itemtype="http://schema.org/Article">
<header>
{{ pheader.html_title() }}
{{ pheader.html_translations(post) }}
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base/templates/story.tmpl
Expand Up @@ -5,7 +5,7 @@
<%inherit file="post.tmpl"/>

<%block name="content">
<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article">
<article class="post-${post.meta('type')} storypage" itemscope="itemscope" itemtype="http://schema.org/Article">
<header>
${pheader.html_title()}
${pheader.html_translations(post)}
Expand Down
8 changes: 8 additions & 0 deletions nikola/data/themes/bootstrap3-jinja/assets/css/theme.css
Expand Up @@ -177,6 +177,14 @@ article.post-micro {
border-top: 1px solid #e5e5e5;
}

.codetable {
table-layout: fixed;
}

.codetable pre {
overflow-x: scroll;
}

/* hat tip bootstrap/html5 boilerplate */
@media print {
*, *:before, *:after {
Expand Down

0 comments on commit 22fe92c

Please sign in to comment.