Skip to content

Commit 0102fc8

Browse files
committed
Change how the sidebar is positioned so single column pages look nicer
1 parent 631357b commit 0102fc8

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

_includes/site-aside.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<aside class="aside typeset">
1+
<aside class="aside typeset{% if include.align == "left" %} aside--left{% endif %}">
22

33
{% unless page.layout == "categories" or page.collection == "posts" %}
44
<h3>About this site</h3>
@@ -21,7 +21,7 @@ <h3>Index</h3>
2121
{% endif %}
2222

2323
{% if page.collection == "posts" or paginator.posts %}
24-
{% include button.html text="Subscribe to posts &nbsp;" icon="rss" link="/feed.xml" %}
24+
{% include button.html text="Subscribe to posts" icon="rss" link="/feed.xml" %}
2525
{% endif %}
2626

2727
{% unless page.layout == "categories" %}

_layouts/categories.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
<main class="main container">
88

9-
<div class="content content--aside-left">
9+
<div class="content">
1010

11-
<article class="article article--page typeset">
11+
<article class="article article--page typeset">
1212

1313
<h1>{{ page.title }}</h1>
1414

@@ -20,7 +20,7 @@ <h1>{{ page.title }}</h1>
2020

2121
</div>
2222

23-
{% include site-aside.html %}
23+
{% include site-aside.html align="left" %}
2424

2525
</main>
2626

_layouts/page-aside-left.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
<main class="main container">
88

9-
<article class="article article--page content content--aside-left typeset">
9+
<article class="article article--page content typeset">
1010

1111
<h1>{{ page.title }}</h1>
1212

1313
{{ content }}
1414

1515
</article>
1616

17-
{% include site-aside.html %}
17+
{% include site-aside.html align="left" %}
1818

1919
</main>
2020

_posts/2016-08-27-example-post-one.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Description of an Alembic
33
category: General
44
feature_image: "https://unsplash.it/1200/400?image=200"
5+
layout: post-simple
56
---
67

78
The complete distilling apparatus consists of three parts: the "cucurbit" (Arabic ḳarʿa, Greek βίκος), the still pot containing the liquid to be distilled, which is heated by a flame; the "head" or "cap" (Arabic anbiḳ, Greek ἄμβιξ) which fits over the mouth of the cucurbit to receive the vapors, with an attached downward-sloping "tube" (Greek σωλήν), leading to the "receiver" (Arabic ḳābila, Greek ἄγγος or φιάλη) container.

0 commit comments

Comments
 (0)