Disable reading optimisation if sidebar is hidden
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
51442ee1dc
commit
220eef2e31
|
@ -2,7 +2,7 @@
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="reading-optimised">
|
<div {% if page.hidesidebar %}{% else %}class="reading-optimised"{% endif %}>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
<ul class="post-list list-unstyled">
|
<ul class="post-list list-unstyled">
|
||||||
{% assign categories = page.categories | split:',' %}
|
{% assign categories = page.categories | split:',' %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="reading-optimised">
|
<div {% if page.hidesidebar %}{% else %}class="reading-optimised"{% endif %}>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
<ul class="post-list list-unstyled">
|
<ul class="post-list list-unstyled">
|
||||||
{% for post in site.categories[page.category] %}
|
{% for post in site.categories[page.category] %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
<article class="post reading-optimised">
|
<article class="post{% if page.hidesidebar %}{% else %} reading-optimised{% endif %}">
|
||||||
|
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 class="post-title">{{ page.title }}</h1>
|
<h1 class="post-title">{{ page.title }}</h1>
|
||||||
|
|
Loading…
Reference in New Issue