diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 6 | ||||
-rw-r--r-- | layouts/partials/sidebar-content.html | 28 |
3 files changed, 21 insertions, 15 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 26fec55..a97dfa8 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -13,7 +13,7 @@ <div class="post-heading"> <h1>{{ .Title }}</h1> - <span class="post-date"><a href="{{ .Permalink }}"># {{ .Date.Format "Jan 2, 2006" }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</a></span> + <span class="post-date"># {{ .Date.Format "Jan 2, 2006" }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}</span> </div> {{ .Content }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 34377c7..e76b8ed 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -4,7 +4,7 @@ <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> - {{ .Hugo.Generator }} + {{ hugo.Generator }} <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title>{{ .Title }} - {{ .Site.Params.description }}</title> @@ -24,6 +24,6 @@ {{ "<![endif]-->" | safeHTML }} <!-- RSS --> - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + <link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> </head> -<body class="{{ .Site.Params.colorScheme }}">
\ No newline at end of file +<body class="{{ .Site.Params.colorScheme }}"> diff --git a/layouts/partials/sidebar-content.html b/layouts/partials/sidebar-content.html index a76501d..6f1343d 100644 --- a/layouts/partials/sidebar-content.html +++ b/layouts/partials/sidebar-content.html @@ -10,20 +10,26 @@ </div> {{ end }} + <ul class="sidebar-menus sidebar-icons"> + {{ range .Site.Menus.icons }} + <li><a href="{{.URL}}">{{ .Post }}</a></li> + {{end}} + </ul> + <ul class="sidebar-menus"> - {{ range .Site.Menus.main }} - <li>» <a href="{{.URL}}">{{ .Name }}</a> {{ .Post }}</li> - {{end}} - </ul> + {{ range .Site.Menus.main }} + <li>» <a href="{{.URL}}">{{ .Name }}</a>{{ .Post }}</li> + {{end}} + </ul> <div class="sidebar-recent hidden-xs"> - <p>Recent Posts:</p> - <ul> - {{ range first 5 .Site.Pages }} - <li><a href="{{.Permalink}}">{{ .Title }}</a></li> - {{ end }} - </ul> - </div> + <p>Recent Posts:</p> + <ul> + {{ range first 5 (where .Site.RegularPages "Section" "posts") }} + <li><a href="{{.Permalink}}">{{ .Title }}</a></li> + {{ end }} + </ul> + </div> {{ if .Site.Params.contact_email }} <div class="sidebar-contact"> |