Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/progrhyme/hugo-theme-bootie-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkey-amb <yasutake.kiyoshi@gmail.com>2015-04-23 02:31:55 +0300
committerkey-amb <yasutake.kiyoshi@gmail.com>2015-04-23 02:31:55 +0300
commit6c43a6058fbdbf715c498ad18c1a705205f13098 (patch)
tree26336a0e6ed9df6b0877bc0c623c762b641aaca8 /layouts
parent8acfcc7ab04cd7d49e5682ae474b738a5378acff (diff)
Use variables for site title, table of contents, menus
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html1
-rw-r--r--layouts/index.html6
-rw-r--r--layouts/partials/header.html5
-rw-r--r--layouts/partials/sidebar-list.html23
-rw-r--r--layouts/partials/sidebar-single.html18
5 files changed, 20 insertions, 33 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 11fe571..b4e1151 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -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">
diff --git a/layouts/index.html b/layouts/index.html
index ad064b7..7a852a7 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -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">
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 2aacb47..1fbe0e5 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -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>
diff --git a/layouts/partials/sidebar-list.html b/layouts/partials/sidebar-list.html
index 08c76b4..7141f25 100644
--- a/layouts/partials/sidebar-list.html
+++ b/layouts/partials/sidebar-list.html
@@ -1,21 +1,13 @@
<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
diff --git a/layouts/partials/sidebar-single.html b/layouts/partials/sidebar-single.html
index 08c76b4..89c5ee9 100644
--- a/layouts/partials/sidebar-single.html
+++ b/layouts/partials/sidebar-single.html
@@ -1,20 +1,16 @@
<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>