diff --git a/_config.yml b/_config.yml index d36503b..9972fe4 100755 --- a/_config.yml +++ b/_config.yml @@ -32,4 +32,7 @@ colors: purple: '#c869bf' orange: '#fab125' turquoise: '#0fbfcf' + +collections: +- sections diff --git a/_includes/css/main.css b/_includes/css/main.css index 9697648..1d50636 100644 --- a/_includes/css/main.css +++ b/_includes/css/main.css @@ -15,7 +15,7 @@ html { box-sizing: border-box; } {% endfor %} /* ----- per-post colors! ----- */ -{% for node in site.posts %} +{% for node in site.sections %} {% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %} {% capture bg %}{% if site.colors[node.bg] %}{{ site.colors[node.bg] }}{% else %}{{ node.bg }}{% endif %}{% endcapture %} {% capture fg %}{% if site.colors[node.color] %}{{ site.colors[node.color] }}{% else %}{{ node.color }}{% endif %}{% endcapture %} diff --git a/_posts/2004-01-15-construction.md b/_sections/01-construction.md similarity index 100% rename from _posts/2004-01-15-construction.md rename to _sections/01-construction.md diff --git a/_posts/2007-01-01-statement.md b/_sections/02-statement.md similarity index 99% rename from _posts/2007-01-01-statement.md rename to _sections/02-statement.md index f4b4606..1d66e15 100644 --- a/_posts/2007-01-01-statement.md +++ b/_sections/02-statement.md @@ -1,5 +1,5 @@ --- -Title: Python +title: statement bg: '#fab125' color: black --- diff --git a/_posts/2009-02-02-timeline.md b/_sections/03-timeline.md similarity index 96% rename from _posts/2009-02-02-timeline.md rename to _sections/03-timeline.md index 448c414..90a8e65 100644 --- a/_posts/2009-02-02-timeline.md +++ b/_sections/03-timeline.md @@ -1,4 +1,5 @@ --- +title: timeline bg: 'white' fa-icon: calendar style: center diff --git a/_posts/2009-01-02-why.md b/_sections/04-why.md similarity index 95% rename from _posts/2009-01-02-why.md rename to _sections/04-why.md index 98057bb..7635be4 100644 --- a/_posts/2009-01-02-why.md +++ b/_sections/04-why.md @@ -1,5 +1,5 @@ --- -Title: Why drop support for Python 2? +title: why color: 'white' bg: '#49a7e9 ' fa-icon: 'question' diff --git a/_posts/2010-01-04-sign.md b/_sections/05-sign.md similarity index 100% rename from _posts/2010-01-04-sign.md rename to _sections/05-sign.md diff --git a/index.html b/index.html index 610b147..505409e 100755 --- a/index.html +++ b/index.html @@ -20,14 +20,14 @@
- {% for page in site.posts reversed %} + {% for page in site.sections %} {% capture id %}{{ page.id | remove:'/' | downcase }}{% endcapture %}
{% if page.icon %}