examples: Fix blog not building

The example blog had not been updated for some time and I had to restructure it a little bit.

Fixes #6752

Changed tag and category directory structure
This commit is contained in:
Jonathan Ling 2020-01-19 08:42:27 -05:00 committed by Bjørn Erik Pedersen
parent 21ca2e9ce4
commit d61bee5e09
5 changed files with 28 additions and 26 deletions

View file

@ -0,0 +1,25 @@
{{ partial "header.html" . }}
<body>
{{ partial "navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="well well-sm">
<strong>Items in category <code>{{ .Title | lower }}</code></strong>
<ul class="list-unstyled">
{{ range .Data.Pages }}
{{ .Render "li" }}
{{ end}}
</ul>
</div>
</div>
<!-- Sidebar -->
<div class="col-md-3">
{{ partial "menu.html" . }}
</div>
</div>
{{ partial "footer.copyright.html" . }}
</div>
{{ partial "footer.html" . }}

View file

@ -1,24 +0,0 @@
{{ partial "header.html" . }}
<body>
{{ partial "navbar.html" . }}
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="well well-sm">
<strong>Items in category <code>{{ .Title | lower }}</code></strong>
<ul class="list-unstyled">
{{ range .Data.Pages }}
{{ .Render "li" }}
{{ end}}
</ul>
</div>
</div>
<!-- Sidebar -->
<div class="col-md-3">
{{ partial "menu.html" . }}
</div>
</div>
{{ partial "footer.copyright.html" . }}
</div>
{{ partial "footer.html" . }}

View file

@ -1,5 +1,6 @@
<!doctype html>
<html lang="en">
<head>
{{ partial "meta.html" . }}
@ -7,6 +8,6 @@
<link rel="canonical" href="{{ .Permalink }}">
{{ partial "header.includes.html" . }}
{{ with .OutputFormats.Get "RSS" -}}
{{ printf "<link href=%q rel=\"alternate\" type=%q title=%q />" .Permalink .MediaType .Title | safeHTML }}
{{ printf "<link href=%q rel=\"alternate\" type=%q title=%q />" .Permalink .MediaType $.Site.Title | safeHTML }}
{{- end }}
</head>
</head>