1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-17 09:47:05 +01:00

layouts/_default/baseof.html: Don't create whitespace

Cleans up some template logic so that extra, unnecessary whitespace
isn't created during site generation.
This commit is contained in:
Alan Orth 2017-04-04 12:21:52 +03:00
parent 77671af35d
commit e7749e9bde
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -35,7 +35,7 @@
<div class="container">
<nav class="nav blog-nav">
<a class="nav-link {{ if .IsHome }}active{{ end }}" href="{{ .Site.BaseURL | absLangURL }}">{{ i18n "home" }}</a>
{{ $currentURL := .URL | absLangURL }}
{{- $currentURL := .URL | absLangURL -}}
{{ if .Site.Params.custom_navbar }}
{{ range .Site.Menus.navbar }}
{{ $menuURL := .URL | absLangURL }}