initial commit, add Publish, add minimal theme, add content
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
{% comment %}
|
||||
Dynamically generate list of links to all category pages
|
||||
{% endcomment %}
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-expanded="false">Categories</a>
|
||||
<ul class="dropdown-menu">
|
||||
{% assign pages_list = site.pages|sort:"sidebar_sort_order" %}
|
||||
{% for node in pages_list %}
|
||||
{% if node.title != null %}
|
||||
{% if node.layout == "category" %}
|
||||
<li><a class="dropdown-item {% if page.url == node.url %} active{% endif %}" href="{{ node.url | relative_url }}">{{ node.title }}</a></li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
<nav class="navbar navbar-dark bg-dark navbar-expand-md ">
|
||||
<div class="container-fluid">
|
||||
{% if site.sidebar_home_link %}
|
||||
<a class="nav-link navbar-brand {% if page.url == '/' %} active{% endif %}" href="{{ "/" | relative_url }}"><img src="/favicon.png" width="30" height="30" alt=""> </a>
|
||||
{% endif %}
|
||||
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation-toggle" aria-controls="navigation-toggle" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navigation-toggle">
|
||||
<div class="navbar-nav">
|
||||
{% include nav/tags.html %}
|
||||
|
||||
{% comment %}
|
||||
The code below dynamically generates a sidebar nav of pages with
|
||||
`sidebar_link: true` in the front-matter. See readme for usage.
|
||||
{% endcomment %}
|
||||
|
||||
{% include nav/pages.html %}
|
||||
{% include nav/categories.html %}
|
||||
|
||||
{% if tags_page %}
|
||||
<a class="nav-link{% if page.url == '/tags' %} active{% endif %}" title="Tags" aria-label="Tags" href="{{ tags_page.url | relative_url }}">Tags</a>
|
||||
{% endif %}
|
||||
<a class="nav-link" title="Subscribe" aria-label="Subscribe" href="{{ site.feed.path | default: 'feed.xml' | relative_url }}">RSS</a>
|
||||
{% if site.author.flair %}
|
||||
<span>{{ site.author.flair }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -0,0 +1,8 @@
|
||||
{% assign pages_list = site.pages|sort:"sidebar_sort_order" %}
|
||||
{% for node in pages_list %}
|
||||
{% if node.title != null %}
|
||||
{% if node.sidebar_link %}
|
||||
<a class="nav-link{% if page.url == node.url %} active{% endif %}" href="{{ node.url | relative_url }}">{{ node.title }}</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,9 @@
|
||||
{% comment %}
|
||||
Check if we have tag or search pages page active before linking to it.
|
||||
{% endcomment %}
|
||||
{% assign tags_page = false %}
|
||||
{% for node in site.pages %}
|
||||
{% if node.layout == "tags" %}
|
||||
{% assign tags_page = node %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user