Customize section init

This commit is contained in:
Jeremy Thomas
2018-07-14 00:42:07 +01:00
parent 5a478857a8
commit f637ee0009
17 changed files with 460 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
{% assign category_links = category[1] %}
{% assign category_link = site.data.links.by_id[category_id] %}
{% if category_link.name != 'Customize' %}
<div class="bd-category {% if category_id == current_category %}is-active{% endif %}">
<header class="bd-category-header">
<a class="bd-category-toggle">
@@ -13,6 +14,11 @@
</a>
<a class="bd-category-name {% if category_id == current_link_id %}is-active{% endif %}" href="{{ site.url }}{{ category_link.path }}">
<strong>{{ category_link.name }}</strong>
{% if category_link.name == 'Customize' %}
<span class="tag is-success">
New!
</span>
{% endif %}
</a>
</header>
@@ -27,6 +33,7 @@
{% endfor %}
</ul>
</div>
{% endif %}
{% endfor %}
</nav>

View File

@@ -0,0 +1,9 @@
<div class="columns">
<div class="column is-4-tablet is-3-desktop">
{% include elements/anchor.html name=include.title %}
</div>
<div class="column is-offset-1 is-7-tablet is-8-desktop">
{{ include.content }}
</div>
</div>