File tree Expand file tree Collapse file tree 8 files changed +9
-5
lines changed Expand file tree Collapse file tree 8 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -32,4 +32,7 @@ colors:
3232 purple : ' #c869bf'
3333 orange : ' #fab125'
3434 turquoise : ' #0fbfcf'
35+
36+ collections :
37+ - sections
3538
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 11---
2- Title: Python
2+ title: statement
33bg: '#fab125'
44color: black
55---
Original file line number Diff line number Diff line change 11---
2+ title : timeline
23bg : ' white'
34fa-icon : calendar
45style : center
Original file line number Diff line number Diff line change 11---
2- Title : Why drop support for Python 2?
2+ title : why
33color : ' white'
44bg : ' #49a7e9 '
55fa-icon : ' question'
File renamed without changes.
Original file line number Diff line number Diff line change 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 %}
You can’t perform that action at this time.
0 commit comments