Commit 6c43a605 authored by key-amb's avatar key-amb
Browse files

Use variables for site title, table of contents, menus

parent 8acfcc7a
......@@ -4,6 +4,7 @@
<div class="col-sm-8 doc-main">
<main role="main">
<article itemscope itemtype="http://schema.org/BlogPosting">
<a id="title"></a>
<h1 class="entry-title" itemprop="headline">{{ .Title }}</h1>
<span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
<section itemprop="entry-text">
......
......@@ -4,10 +4,8 @@
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<h1>Theme example</h1>
<p>This is a template showcasing the optional theme stylesheet
included in Bootstrap. Use it as a starting point to create something
more unique by building on or modifying it.</p>
<h1>{{ .Site.Title }}</h1>
<p>{{ if isset .Site.Params "description" }}{{ .Site.Params.description }}{{ else }}You can customize this text by params "description" in your <code>config.toml</code>.{{ end }}</p>
</div>
<div class="col-md-8 doc-main">
......
......@@ -25,11 +25,11 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Bootstrap theme</a>
<a class="navbar-brand" href="/">{{ .Site.Title }}</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="/">Home</a></li>
<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">
......@@ -50,7 +50,6 @@
</nav>
<div class="container">
<!--<header role="banner">
<!--<div class="header-logo">
<a href="/"><img src="{{ .Site.Params.logo }}" width="60" height="60"></a>
......
<div class="col-sm-3 col-sm-offset-1 doc-sidebar">
<div class="sidebar-module">
<h4>Archives</h4>
<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>
<li><a href="#">November 2013</a></li>
<li><a href="#">October 2013</a></li>
<li><a href="#">September 2013</a></li>
<li><a href="#">August 2013</a></li>
<li><a href="#">July 2013</a></li>
<li><a href="#">June 2013</a></li>
<li><a href="#">May 2013</a></li>
<li><a href="#">April 2013</a></li>
</ol>
<h4>Menu</h4>
<ul class="list-unstyled">
{{ range .Site.Menus.main }}
<li><a href="{{ .Url }}">{{ .Name }}</a></li>
{{ end }}
</ul>
</div>
<!--
<div class="sidebar-module">
<h4>Elsewhere</h4>
<ol class="list-unstyled">
......@@ -24,4 +16,5 @@
<li><a href="#">Facebook</a></li>
</ol>
</div>
-->
</div><!-- /.doc-sidebar -->
\ No newline at end of file
<div class="col-sm-3 col-sm-offset-1 doc-sidebar">
<div class="sidebar-module">
<h4>Archives</h4>
<ol class="list-unstyled">
<h4>Table of Contents</h4>
<ul>
<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>
<li><a href="#">November 2013</a></li>
<li><a href="#">October 2013</a></li>
<li><a href="#">September 2013</a></li>
<li><a href="#">August 2013</a></li>
<li><a href="#">July 2013</a></li>
<li><a href="#">June 2013</a></li>
<li><a href="#">May 2013</a></li>
<li><a href="#">April 2013</a></li>
</ol>
</ol>-->
</div>
<div class="sidebar-module">
<h4>Elsewhere</h4>
......
......@@ -118,6 +118,9 @@ h6, .h6 {
.sidebar-module-inset ol:last-child {
margin-bottom: 0;
}
.sidebar-module ul {
list-style-type: none;
}
/* Pagination */
......
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