mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 23:51:26 +00:00
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:
parent
21ca2e9ce4
commit
d61bee5e09
5 changed files with 28 additions and 26 deletions
25
examples/blog/layouts/categories/list.html
Normal file
25
examples/blog/layouts/categories/list.html
Normal 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" . }}
|
|
@ -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" . }}
|
|
@ -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>
|
Loading…
Reference in a new issue