-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes based on: - poole/hyde/pull/97 - poole/hyde/pull/137
- Loading branch information
Showing
8 changed files
with
62 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,33 @@ | ||
<div class="sidebar"> | ||
{% assign homeurl = site.baseurl | append: "/" %} | ||
|
||
<aside class="sidebar"> | ||
<div class="container sidebar-sticky"> | ||
<div class="sidebar-about"> | ||
<h1> | ||
<a href="{{ site.baseurl }}/"> | ||
{{ site.title }} | ||
</a> | ||
<a href="{{ homeurl }}" title="Home">{{ site.title }}</a> | ||
</h1> | ||
<p class="lead">{{ site.description }}</p> | ||
</div> | ||
|
||
<nav class="sidebar-nav"> | ||
<a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ site.baseurl }}/">Home</a> | ||
<a class="sidebar-nav-item{% if page.url == homeurl %} active{% endif %}" href="{{ homeurl }}">Home</a> | ||
|
||
{% comment %} | ||
The code below dynamically generates a sidebar nav of pages with | ||
`layout: page` in the front-matter. See readme for usage. | ||
The code below dynamically generates a sidebar nav of pages with `layout: page` in the front-matter. | ||
{% endcomment %} | ||
|
||
{% assign pages_list = site.pages %} | ||
{% for node in pages_list %} | ||
{% if node.title != null %} | ||
{% if node.layout == "page" %} | ||
{% unless node.url contains "page" %} {% comment %} Paginated Blog pages should not be included in the sidebar. {% endcomment %} | ||
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{site.baseurl}}{{ node.url }}">{{ node.title }}</a> | ||
{% endunless %} | ||
{% endif %} | ||
{% for node in site.pages %} | ||
{% if node.title != null and node.layout == "page" %} | ||
{% unless node.url contains "page" %} {% comment %} Paginated Blog pages should not be included in the sidebar. {% endcomment %} | ||
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{site.baseurl}}{{ node.url }}">{{ node.title }}</a> | ||
{% endunless %} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
</nav> | ||
|
||
<p>© {{ site.time | date: '%Y' }}. All rights reserved.</p> | ||
<small> | ||
© <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>. All rights reserved. | ||
</small> | ||
</div> | ||
</div> | ||
</aside> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-us"> | ||
<html lang="en"> | ||
|
||
{% include head.html %} | ||
|
||
<body> | ||
|
||
{% include sidebar.html %} | ||
|
||
<div class="content container"> | ||
<main class="content container"> | ||
{{ content }} | ||
</div> | ||
</main> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters