Commit 60dbbaf1 authored by key-amb's avatar key-amb
Browse files

make header categories as dropdown menu; modify sidebar; fix links of footer

parent e006418f
......@@ -13,10 +13,10 @@
</div> <!-- /.container -->
<footer class="doc-footer">
<p>Blog template built for <a href="http://getbootstrap.com/">Bootstrap</a> by <a href="https://twitter.com/mdo">@mdo</a>.</p>
<p>
<a href="#">Back to top</a>
<p class="doc-footer-em">
<a href="#">Back to Top</a>
</p>
<p><strong><a href="https://github.com/key-amb/hugo-theme-bootie-docs">Bootie Docs</a></strong> - theme for <a href="http://gohugo.io/">Hugo</a> by <a href="https://github.com/key-amb/">key-amb</a>.</p>
</footer>
{{ with .Site.Params.analytics }}<script>
......
......@@ -30,10 +30,14 @@
<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>
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<li><a href="/categories/{{ $name | urlize }}">{{ title $name }}</a></li>
{{ end }}
</ul>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Categories<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<li><a href="/categories/{{ $name | urlize }}">{{ title $name }}</a></li>
{{ end }}
</ul>
</li> </ul>
</div><!--/.nav-collapse -->
</div>
</nav>
......
<div class="col-sm-3 col-sm-offset-1 doc-sidebar">
<div class="sidebar-module">
<h4>Menu</h4>
<h4>Categories</h4>
<ul class="list-unstyled">
{{ range .Site.Menus.main }}
<li><a href="{{ .Url }}">{{ .Name }}</a></li>
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<li><a class="tag-item" href="/categories/{{ $name | urlize }}">{{ $name }}</a></li>
{{ end }}
</ul>
</div>
......
<div class="col-sm-3 col-sm-offset-1 doc-sidebar">
<div class="sidebar-module">
<h4>Table of Contents</h4>
<ul>
<li><a href="#title">{{ .Title }}</a></li>
</ul>
{{ .TableOfContents }}
<div class="sidebar-toc">
<h4>Table of Contents</h4>
<ul>
<li><strong><a href="#title">{{ .Title }}</a></strong></li>
</ul>
{{ .TableOfContents }}
</div>
</div>
<div class="sidebar-module">
<h4>Tags</h4>
......
......@@ -41,39 +41,6 @@ h6, .h6 {
box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
}
/* Nav links */
.blog-nav-item {
position: relative;
display: inline-block;
padding: 10px;
font-weight: 500;
color: #cdddeb;
}
.blog-nav-item:hover,
.blog-nav-item:focus {
color: #fff;
text-decoration: none;
}
/* Active state gets a caret at the bottom */
.blog-nav .active {
color: #fff;
}
.blog-nav .active:after {
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 0;
margin-left: -5px;
vertical-align: middle;
content: " ";
border-right: 5px solid transparent;
border-bottom: 5px solid;
border-left: 5px solid transparent;
}
/*
* Blog name and description
*/
......@@ -93,7 +60,6 @@ h6, .h6 {
color: #999;
}
/*
* Main column and sidebar layout
*/
......@@ -118,8 +84,11 @@ h6, .h6 {
.sidebar-module-inset ol:last-child {
margin-bottom: 0;
}
.sidebar-module ul li {
.sidebar-toc ul li {
list-style-type: none;
list-style-position: outside;
margin-left: -1.5em;
padding: 0;
}
.tag-box {
......@@ -180,3 +149,7 @@ h6, .h6 {
.doc-footer p:last-child {
margin-bottom: 0;
}
.doc-footer-em {
font-size: 16px;
}
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