Fix categories. Oops

This commit is contained in:
Rico Sta. Cruz 2017-09-04 10:29:25 +08:00
parent 0188226c6e
commit 58865dcdf0
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
5 changed files with 27 additions and 6 deletions

23
_data/categories.yml Normal file
View File

@ -0,0 +1,23 @@
enabled: true
names:
- Ansible
- Apps
- CLI
- CSS
- Devops
- Elixir
- Git
- HTML
- JavaScript
- JavaScript libraries
- Jekyll
- Ledger
- Markup
- Node.js
- Rails
- React
- Ruby
- Ruby libraries
- Vim
- Fitness
- Others

View File

View File

@ -40,7 +40,8 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% for category in site.data.category.names %}
{% for category in site.data.categories.names %}
<h2 class='category item' id='{{ category | downcase | replace: " ", "-" }}' data-js-searchable-header> <h2 class='category item' id='{{ category | downcase | replace: " ", "-" }}' data-js-searchable-header>
<span>{{ category }}</span> <span>{{ category }}</span>
</h2> </h2>
@ -60,6 +61,7 @@
<a class='push-button' href='{{ site.github.repository_url }}/issues/new?title=Cheatsheet%20request:%20APP_NAME_HERE'>Request cheatsheet</a> <a class='push-button' href='{{ site.github.repository_url }}/issues/new?title=Cheatsheet%20request:%20APP_NAME_HERE'>Request cheatsheet</a>
</p> </p>
</div> </div>
</div>
</div> </div>
{% include 2017/foot.html %} {% include 2017/foot.html %}

View File

@ -1,7 +1,3 @@
---
og_type: article
type: article
---
{% include 2017/head.html %} {% include 2017/head.html %}
{% include 2017/top-nav.html page=page %} {% include 2017/top-nav.html page=page %}

View File

@ -5,7 +5,7 @@ type: home
{% include head.html %} {% include head.html %}
{% include site-header.html %} {% include site-header.html %}
{% for category in site.data.category.names %} {% for category in site.data.categories.names %}
<div class='pages-header'> <div class='pages-header'>
<h2 id='{{ category | downcase | replace: " ", "-" }}'>{{ category }}</h2> <h2 id='{{ category | downcase | replace: " ", "-" }}'>{{ category }}</h2>
</div> </div>