diff options
-rw-r--r-- | examples/blog/layouts/categories/list.html | 25 | ||||
-rw-r--r-- | examples/blog/layouts/indexes/category.html | 24 | ||||
-rw-r--r-- | examples/blog/layouts/partials/header.html | 5 | ||||
-rw-r--r-- | examples/blog/layouts/post/list.html (renamed from examples/blog/layouts/indexes/post.html) | 0 | ||||
-rw-r--r-- | examples/blog/layouts/tags/list.html (renamed from examples/blog/layouts/indexes/tag.html) | 0 |
5 files changed, 28 insertions, 26 deletions
diff --git a/examples/blog/layouts/categories/list.html b/examples/blog/layouts/categories/list.html new file mode 100644 index 000000000..0390d77c2 --- /dev/null +++ b/examples/blog/layouts/categories/list.html @@ -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" . }}
\ No newline at end of file diff --git a/examples/blog/layouts/indexes/category.html b/examples/blog/layouts/indexes/category.html deleted file mode 100644 index 653d81964..000000000 --- a/examples/blog/layouts/indexes/category.html +++ /dev/null @@ -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" . }} diff --git a/examples/blog/layouts/partials/header.html b/examples/blog/layouts/partials/header.html index 5863e59ec..94de4c123 100644 --- a/examples/blog/layouts/partials/header.html +++ b/examples/blog/layouts/partials/header.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>
\ No newline at end of file diff --git a/examples/blog/layouts/indexes/post.html b/examples/blog/layouts/post/list.html index b3a835ccd..b3a835ccd 100644 --- a/examples/blog/layouts/indexes/post.html +++ b/examples/blog/layouts/post/list.html diff --git a/examples/blog/layouts/indexes/tag.html b/examples/blog/layouts/tags/list.html index f59b76715..f59b76715 100644 --- a/examples/blog/layouts/indexes/tag.html +++ b/examples/blog/layouts/tags/list.html |