Skip to content

Commit

Permalink
Fix blog not building
Browse files Browse the repository at this point in the history
The example blog had not been updated for some time and I had to restructure it a little bit.

Fixes gohugoio#6752

Changed tag and category directory structure
  • Loading branch information
colonelpopcorn committed Jan 18, 2020
1 parent 21ca2e9 commit d403a35
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 26 deletions.
25 changes: 25 additions & 0 deletions examples/blog/layouts/categories/list.html
Original file line number Diff line number Diff line change
@@ -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" . }}
24 changes: 0 additions & 24 deletions examples/blog/layouts/indexes/category.html

This file was deleted.

5 changes: 3 additions & 2 deletions examples/blog/layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<!doctype html>
<html lang="en">

<head>
{{ partial "meta.html" . }}

<title>{{ .Title }} - {{ .Site.BaseURL }}</title>
<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>
File renamed without changes.
File renamed without changes.

0 comments on commit d403a35

Please sign in to comment.