Skip to content

Commit 575cc79

Browse files
committed
Figure out how to drop the date-base naming.
1 parent 32521f5 commit 575cc79

File tree

8 files changed

+9
-5
lines changed

8 files changed

+9
-5
lines changed

_config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ colors:
3232
purple: '#c869bf'
3333
orange: '#fab125'
3434
turquoise: '#0fbfcf'
35+
36+
collections:
37+
- sections
3538

_includes/css/main.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ html { box-sizing: border-box; }
1515
{% endfor %}
1616

1717
/* ----- per-post colors! ----- */
18-
{% for node in site.posts %}
18+
{% for node in site.sections %}
1919
{% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %}
2020
{% capture bg %}{% if site.colors[node.bg] %}{{ site.colors[node.bg] }}{% else %}{{ node.bg }}{% endif %}{% endcapture %}
2121
{% capture fg %}{% if site.colors[node.color] %}{{ site.colors[node.color] }}{% else %}{{ node.color }}{% endif %}{% endcapture %}
File renamed without changes.

_posts/2007-01-01-statement.md renamed to _sections/02-statement.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
Title: Python
2+
title: statement
33
bg: '#fab125'
44
color: black
55
---

_posts/2009-02-02-timeline.md renamed to _sections/03-timeline.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
title: timeline
23
bg: 'white'
34
fa-icon: calendar
45
style: center

_posts/2009-01-02-why.md renamed to _sections/04-why.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
Title: Why drop support for Python 2?
2+
title: why
33
color: 'white'
44
bg: '#49a7e9 '
55
fa-icon: 'question'
File renamed without changes.

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
<div id="main">
2121

2222
<nav><ul>
23-
{% for node in site.posts reversed %}
23+
{% for node in site.sections %}
2424
{% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %}
2525
<li class="p-{{id}}"><a href="#{{id}}">{{node.title}}</a></li>
2626
{% endfor %}
2727
</ul></nav>
2828

2929

30-
{% for page in site.posts reversed %}
30+
{% for page in site.sections %}
3131
{% capture id %}{{ page.id | remove:'/' | downcase }}{% endcapture %}
3232
<div id="{{id}}" class="section p-{{id}}">
3333
{% if page.icon %}

0 commit comments

Comments
 (0)