mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2026-08-16 05:54:53 +02:00
Fix categories. Oops
This commit is contained in:
23
_data/categories.yml
Normal file
23
_data/categories.yml
Normal 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
|
||||
@@ -40,7 +40,8 @@
|
||||
{% endif %}
|
||||
{% 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>
|
||||
<span>{{ category }}</span>
|
||||
</h2>
|
||||
@@ -59,6 +60,7 @@
|
||||
<p>
|
||||
<a class='push-button' href='{{ site.github.repository_url }}/issues/new?title=Cheatsheet%20request:%20APP_NAME_HERE'>Request cheatsheet</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
---
|
||||
og_type: article
|
||||
type: article
|
||||
---
|
||||
{% include 2017/head.html %}
|
||||
|
||||
{% include 2017/top-nav.html page=page %}
|
||||
|
||||
@@ -5,7 +5,7 @@ type: home
|
||||
{% include head.html %}
|
||||
{% include site-header.html %}
|
||||
|
||||
{% for category in site.data.category.names %}
|
||||
{% for category in site.data.categories.names %}
|
||||
<div class='pages-header'>
|
||||
<h2 id='{{ category | downcase | replace: " ", "-" }}'>{{ category }}</h2>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user