Commit e006418f authored by key-amb's avatar key-amb
Browse files

Add tags for sidebar; categories for main menu

parent 6c43a605
+++
+++
\ No newline at end of file
......@@ -30,20 +30,9 @@
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li {{ if eq $isHomePage true }}class="active"{{ end }}><a href="/">Home</a></li>
<li><a href="/about">About</a></li>
<li><a href="#contact">Contact</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Tags<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="/tags/go">Go</a></li>
<li><a href="/tags/development">Development</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<li><a href="/categories/{{ $name | urlize }}">{{ title $name }}</a></li>
{{ end }}
</ul>
</div><!--/.nav-collapse -->
</div>
......
......@@ -7,14 +7,12 @@
{{ end }}
</ul>
</div>
<!--
<div class="sidebar-module">
<h4>Elsewhere</h4>
<ol class="list-unstyled">
<li><a href="#">GitHub</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
</ol>
<h4>Tags</h4>
<div class="tag-box">
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
<a class="tag-item" href="/tags/{{ $name | urlize }}">{{ $name }}</a>
{{ end }}
</div>
</div>
-->
</div><!-- /.doc-sidebar -->
\ No newline at end of file
......@@ -5,19 +5,13 @@
<li><a href="#title">{{ .Title }}</a></li>
</ul>
{{ .TableOfContents }}
<!--<ol class="list-unstyled">
<li><a href="#">March 2014</a></li>
<li><a href="#">February 2014</a></li>
<li><a href="#">January 2014</a></li>
<li><a href="#">December 2013</a></li>
</ol>-->
</div>
<div class="sidebar-module">
<h4>Elsewhere</h4>
<ol class="list-unstyled">
<li><a href="#">GitHub</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
</ol>
<h4>Tags</h4>
<div class="tag-box">
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
<a class="tag-item" href="/tags/{{ $name | urlize }}">{{ $name }}</a>
{{ end }}
</div>
</div>
</div><!-- /.doc-sidebar -->
\ No newline at end of file
......@@ -118,10 +118,23 @@ h6, .h6 {
.sidebar-module-inset ol:last-child {
margin-bottom: 0;
}
.sidebar-module ul {
.sidebar-module ul li {
list-style-type: none;
}
.tag-box {
padding: 10px 15px;
background-color: #f5f5f5;
border-radius: 8px;
}
.tag-item {
margin: 5px;
padding: 2px 5px;
border-radius: 4px;
line-height: 2;
background-color: #ffffff;
}
/* Pagination */
.pager {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment