Add links to the sidebar nav

This commit is contained in:
Thomas Busby
2018-05-30 23:38:06 +02:00
parent 0c660c04be
commit fb9497fe01
6 changed files with 26 additions and 11 deletions

View File

@@ -55,10 +55,26 @@ share:
fb_appid: fb_appid:
urls: urls:
- text: Blog - text: "Blog"
url: /blog url: /blog
- text: XML Feed - text: "Getting Started"
url: /feed.xml url: /#getting-started
- text: "Contribute"
url: "https://github.com/cryptoanarchywiki/cryptoanarchywiki.github.io/"
target_blank: true
- text: "Cypherpunks Mailing List"
url: /#cypherpunks-mailing-list
- text: "Sources"
url: /#sources
- text: "People & Organisations"
url: /#people-and-organisations
- text: "Events"
url: /#events
- text: "Key Concepts"
url: /#key-concepts
- text: "Notable Projects"
url: /#notable-projects
similar_resources: similar_resources:
- text: Lopp's Bitcoin Resources - text: Lopp's Bitcoin Resources

View File

@@ -1,5 +1,5 @@
{% if include.title %} {% if include.title %}
<h2>{{ include.title }}</h2> <h2 id="{{ include.title | downcase | replace: ' ', '-' | replace: '&', 'and' }}">{{ include.title }}</h2>
{% endif %} {% endif %}
{% if include.description %} {% if include.description %}
{{ include.description }} {{ include.description }}

View File

@@ -156,7 +156,7 @@ layout: compress
<strong>Navigation</strong> <strong>Navigation</strong>
<li><a href="/">Home</a></li> <li><a href="/">Home</a></li>
{% for i in site.urls %} {% for i in site.urls %}
<li><a class="about" href="{{ i.url }}">{{ i.text }}</a></li> <li><a class="about" href="{{ i.url }}"{% if i.target_blank %} target="_blank"{% endif %}>{{ i.text }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
<hr> <hr>

View File

@@ -9,9 +9,11 @@ layout: default
<hr> <hr>
<h2>Blog Posts</h2> <h2>Blog Posts <a href="/feed.xml"><i class="fa fa-rss"></i></a></h2>
I probably won't write too much here, but any major changes to the site or anything I want to write about that doesn't fit into an existing category will go here. <p>
I probably won't write too much here, but any major changes to the site, or anything I want to write about that doesn't fit into an existing category, will go here.
</p>
<div id="home"> <div id="home">
<ol class="posts"> <ol class="posts">

View File

@@ -9,7 +9,7 @@ layout: default
<hr> <hr>
<h2>Recent Blog Posts</h2> <h2>Recent Blog Posts <a href="/feed.xml"><i class="fa fa-rss"></i></a></h2>
<ul> <ul>
{% for post in site.posts limit:3 %} {% for post in site.posts limit:3 %}

View File

@@ -62,9 +62,6 @@ a:hover {
.index-header h1, .index-header p { .index-header h1, .index-header p {
font-family: monospace; font-family: monospace;
} }
div#home {
margin-top: 10px;
}
div.content { div.content {
padding-top: 10px; padding-top: 10px;
} }