Skip to content
Permalink
Browse files

Add post-(type) class to story.tmpl

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 2, 2016
1 parent 970598a commit 22fe92cecedb86ec8e046022ee9962b61800b3bf
@@ -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
@@ -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) }}
@@ -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)}
@@ -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 {

0 comments on commit 22fe92c

Please sign in to comment.
You can’t perform that action at this time.