Skip to content

Commit

Permalink
Remove author sidebar from most layouts, make TOC sticky, fewer related.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-p-randall committed Jun 25, 2024
1 parent 95f427c commit a730ea4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,28 +154,30 @@ defaults:
type: posts
values:
layout: single
author_profile: true
author_profile: false # true
breadcrumbs: true
comments: true
read_time: false
related: true
share: false
show_date: true
toc_sticky: true
# _pages
- scope:
path: "_pages"
type: pages
values:
layout: single
author_profile: true
author_profile: false # true
breadcrumbs: true
toc_sticky: true
# notes
- scope:
path: "" # "_notes/**/*.md"
type: notes
values:
layout: "note"
author_profile: true
author_profile: false # true
comments: true
toc: true
toc_sticky: true
Expand All @@ -189,7 +191,7 @@ defaults:
layout: bookmark-single-page # single
# toc: false # true
# toc_sticky: false # true
author_profile: true
author_profile: false # true


category_archive:
Expand Down
4 changes: 2 additions & 2 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4
<div class="page__related">
<h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h2>
<div class="grid__wrapper">
{% for post in site.related_posts limit:4 %}
{% for post in site.related_posts limit:3 %} {% comment %} default was limit:4 {% endcomment %}
{% include archive-single.html type="grid" %}
{% endfor %}
</div>
Expand All @@ -128,7 +128,7 @@ <h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label
<div class="page__related">
<h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h2>
<div class="grid__wrapper">
{% for post in site.posts limit:4 %}
{% for post in site.posts limit:3 %} {% comment %} default was limit:4 {% endcomment %}
{% if post.id == page.id %}
{% continue %}
{% endif %}
Expand Down
2 changes: 2 additions & 0 deletions _pages/colophon.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ header:
image: /assets/images/pocket-notebooks.jpg
image_description: "ryan's pocket notebooks with cute stickers on their covers"
toc: true
toc_sticky: true
featured_pages: true
author_profile: true
---

Colophon
Expand Down

0 comments on commit a730ea4

Please sign in to comment.