Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix blog not building #6772

Merged
merged 1 commit into from
Jan 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect the "correcter" fix in the above would be tu use $.Title.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I will make the change. Do you want me to do a second rebase after committing or can I amend the commit and force push to my branch?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix, squash, and force push.

{{- end }}
</head>
</head>