diff options
author | David Hamp-Gonsalves <davidhampgonsalves@gmail.com> | 2017-01-10 16:31:05 +0300 |
---|---|---|
committer | David Hamp-Gonsalves <davidhampgonsalves@gmail.com> | 2017-01-10 16:31:05 +0300 |
commit | b8c78fde318f253507c3b7c854c16d1f76c693f3 (patch) | |
tree | 60cb39ee533e9c1516f244deaca6896c788e2c55 | |
parent | 729d3b5c22780aaa424ece7721e4acfa2c2718b6 (diff) |
configurable nav links, ga support
-rw-r--r-- | layouts/partials/footer.html | 1 | ||||
-rw-r--r-- | layouts/partials/header.html | 10 | ||||
-rw-r--r-- | layouts/partials/styles.html | 1 |
3 files changed, 7 insertions, 5 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f5471aa..5d8d281 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,4 @@ </div> + {{ template "_internal/google_analytics_async.html" . }} </body> </html> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 50da753..1690f79 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -18,9 +18,9 @@ <title> {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ if eq $url "/" }} - {{ .Site.Title }} + {{ .Site.Title }} {{ else }} - {{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }} + {{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }} {{ end }} </title> <link rel="canonical" href="{{ .Permalink }}"> @@ -39,8 +39,8 @@ <section id=nav> <h1><a href="/">{{ .Site.Params.author }}</a></h1> <ul> - <li><a href="https://github.com/davidhampgonsalves">GitHub</a> - <li><a href="/projects/">Projects</a> - <li><a href="http://www.ethicalbarcode.com">Ethical Barcode</a> + {{ range .Site.Menus.main }} + <li><a href="{{ .URL }}">{{ .Name }}</a></li> + {{ end }} </ul> </section> diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index e8ceadd..cb8cc8e 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -31,6 +31,7 @@ img { margin: 10px auto 10px auto; max-width: 100%; + display: block; } pre, code { |