jekyll-minifier/spec/fixtures/_includes/sidebar.html

25 lines
1.0 KiB
HTML
Raw Normal View History

2023-11-19 09:42:13 +00:00
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">
<div class="sidebar" id="sidebar">
<div class="sidebar-item">
<p>{{ site.description }}</p>
</div>
<nav class="sidebar-nav">
<a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ site.baseurl | prepend: site.url }}">Home</a>
{% assign pages_list = site.pages | sort:"url" %}
{% for node in pages_list %}
{% if node.title != null %}
{% if node.layout == "page" %}
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ node.url | prepend: site.baseurl | prepend: site.url }}">{{ node.title | capitalize }}</a>
{% endif %}
{% endif %}
{% endfor %}
{% assign urls_list = site.menu | sort:"url" %}
{% for node in urls_list %}
<a class="sidebar-nav-item" href="{{ node.url }}"{% if node.nofollow == true %} rel="nofollow"{% endif %}{% if node.newwindow == true %} target="_blank"{% endif %}>{{ node.name }}</a>
{% endfor %}
</nav>
</div>