Skip to content
Permalink
Browse files

Make blog work with latest hugo code

Made changes to the blog so that it works well with latest hugo
(v0.16-DEV)
  • Loading branch information...
rushiagr committed Jan 24, 2016
1 parent ddb2bde commit 712506d460dbeb7cb80757d9d4f533f75983968d
@@ -6,7 +6,7 @@
<h1 class="title">{{ .Title }}</h1>

<ul>
{{ $base := .Site.BaseUrl }}
{{ $base := .Site.BaseURL }}
{{ $data := .Data}}

{{ $taxname := .Data.Plural }}
@@ -9,7 +9,7 @@ <h1 class="post-title">{{ .Title }}</h1>
<span class="post-date">{{ .Date.Format "Jan 2, 2006" }}</span>
{{if .Params.series}}
{{ $name := index .Params.series 0 }}
<p class="seriesname">Series: <a href="{{.Site.BaseUrl}}/series/{{$name | urlize}}">{{$name}}</a></p>
<p class="seriesname">Series: <a href="{{.Site.BaseURL}}/series/{{$name | urlize}}">{{$name}}</a></p>
{{end}}
{{ .Content }}

@@ -3,10 +3,10 @@
<p class="text-muted credit">{{ with .Site.Params.Copyright }}{{.}}{{ else }}&copy; {{.Now.Format "2006"}}. All rights reserved. {{end}}</p>
</footer>
<!-- Bootstrap core JavaScript-->
<script src="{{ .Site.BaseUrl }}/js/jquery-1.10.2.min.js"></script>
<script src="{{ .Site.BaseUrl }}/js/bootstrap.min.js"></script>
<script src="{{ .Site.BaseUrl }}/js/bootstrap.js"></script>
<script type="text/javascript" src="{{ .Site.BaseUrl }}/js/hc.js"></script>
<script src="{{ .Site.BaseURL }}/js/jquery-1.10.2.min.js"></script>
<script src="{{ .Site.BaseURL }}/js/bootstrap.min.js"></script>
<script src="{{ .Site.BaseURL }}/js/bootstrap.js"></script>
<script type="text/javascript" src="{{ .Site.BaseURL }}/js/hc.js"></script>
</body>

</html>
@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ .Description }}">
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .Site.BaseUrl }}/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ .Site.BaseUrl }}/css/hc.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}/css/hc.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">

<link href='http://fonts.googleapis.com/css?family=Raleway:400,300' rel='stylesheet' type='text/css'>
@@ -45,8 +45,8 @@
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="{{ .Site.BaseUrl }}/lumberjack">Lumberjack</a></li>
<li><a href="{{ .Site.BaseUrl }}/about">About</a></li>
<li><a href="{{ .Site.BaseURL }}/lumberjack">Lumberjack</a></li>
<li><a href="{{ .Site.BaseURL }}/about">About</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
@@ -57,10 +57,10 @@
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand"><a href="{{ .Site.BaseUrl }}/"><h1 class="brand">{{ .Site.Title }}</h1></a><h3>{{ .Site.Params.Description }}</h3></li>
<li class="sidebar-brand"><a href="{{ .Site.BaseURL }}/"><h1 class="brand">{{ .Site.Title }}</h1></a><h3>{{ .Site.Params.Description }}</h3></li>
<hr />
<li><a href="{{ .Site.BaseUrl }}/lumberjack">Lumberjack</a></li>
<li><a href="{{ .Site.BaseUrl }}/about">About</a></li>
<li><a href="{{ .Site.BaseURL }}/lumberjack">Lumberjack</a></li>
<li><a href="{{ .Site.BaseURL }}/about">About</a></li>
<hr />
<div id="social-wrapper">
{{ with .Site.Params.twitter }}<li> <a href="{{.}}"><i class="fa fa-twitter-square"></i></a></li>{{end}}
@@ -14,9 +14,9 @@
<title> {{ .Title }} {{if ne .Title .Site.Title}} &middot; {{ .Site.Title }} {{end}}</title>

<!-- CSS -->
<link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/poole.css">
<link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/syntax.css">
<link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/hyde.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/poole.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/syntax.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/hyde.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">

<!-- Icons -->
@@ -1,7 +1,7 @@
<div class="sidebar">
<div class="container sidebar-sticky">
<div class="sidebar-about">
<h1 class="brand"><a href="{{.Site.BaseUrl}}">{{ .Site.Title }}</a></h1>
<h1 class="brand"><a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a></h1>
<p class="lead">
{{ with .Site.Params.description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}}
</p>
@@ -10,15 +10,15 @@ <h1 class="brand"><a href="{{.Site.BaseUrl}}">{{ .Site.Title }}</a></h1>


<ul class="sidebar-nav">
<li><a href="{{.Site.BaseUrl}}/blog">Posts</a></li>
<li><a href="{{.Site.BaseURL}}/blog">Posts</a></li>
{{ range .Site.Menus.main }}
<li><a href="{{.Url}}">{{ .Name }} </a></li>
<li><a href="{{.URL}}">{{ .Name }} </a></li>
{{end}}
<br/>
{{with .Site.Menus.code}}
<li>Code:</li>
{{ range . }}
<li><a href="{{.Url}}">{{ .Name }} </a></li>
<li><a href="{{.URL}}">{{ .Name }} </a></li>
{{end}}
{{end}}
</ul>
@@ -19,7 +19,7 @@ <h1 class="post-title">

{{if .Params.series}}
{{ $name := index .Params.series 0 }}
<p class="seriesname">Series: <a href="{{.Site.BaseUrl}}/series/{{$name | urlize}}">{{$name}}</a></p>
<p class="seriesname">Series: <a href="{{.Site.BaseURL}}/series/{{$name | urlize}}">{{$name}}</a></p>
{{end}}


0 comments on commit 712506d

Please sign in to comment.
You can’t perform that action at this time.