Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Figure out how to drop the date-base naming.
  • Loading branch information
Carreau committed May 4, 2016
commit 575cc790ed7cad3f2b38789c7423b25c092118f2
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ colors:
purple: '#c869bf'
orange: '#fab125'
turquoise: '#0fbfcf'

collections:
- sections

2 changes: 1 addition & 1 deletion _includes/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Title: Python
title: statement
bg: '#fab125'
color: black
---
Expand Down
1 change: 1 addition & 0 deletions _posts/2009-02-02-timeline.md → _sections/03-timeline.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: timeline
bg: 'white'
fa-icon: calendar
style: center
Expand Down
2 changes: 1 addition & 1 deletion _posts/2009-01-02-why.md → _sections/04-why.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Title: Why drop support for Python 2?
title: why
color: 'white'
bg: '#49a7e9 '
fa-icon: 'question'
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
<div id="main">

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


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