Disable reading optimisation if sidebar is hidden

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2019-06-09 17:30:31 +02:00
parent 51442ee1dc
commit 220eef2e31
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
layout: default
---
<div class="reading-optimised">
<div {% if page.hidesidebar %}{% else %}class="reading-optimised"{% endif %}>
{{ content }}
<ul class="post-list list-unstyled">
{% assign categories = page.categories | split:',' %}

View File

@ -2,7 +2,7 @@
layout: default
---
<div class="reading-optimised">
<div {% if page.hidesidebar %}{% else %}class="reading-optimised"{% endif %}>
{{ content }}
<ul class="post-list list-unstyled">
{% for post in site.categories[page.category] %}

View File

@ -2,7 +2,7 @@
layout: default
---
<article class="post reading-optimised">
<article class="post{% if page.hidesidebar %}{% else %} reading-optimised{% endif %}">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>