Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/appernetic/hugo-nederburg-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Latham <albert.m.latham@gmail.com>2018-07-18 18:55:35 +0300
committerAlbert Latham <albert.m.latham@gmail.com>2018-07-18 18:55:35 +0300
commit66929366efeb18d3a9c633785fd0e814c9cc330e (patch)
treefe859c3b666ee388047dc0adfcc23213b69e9957
parentd766ebc52d01e8683220285a6c40c8cef434a547 (diff)
post images in category view now point to post directories
-rw-r--r--layouts/partials/category.html25
1 files changed, 11 insertions, 14 deletions
diff --git a/layouts/partials/category.html b/layouts/partials/category.html
index fe737f2..40c994e 100644
--- a/layouts/partials/category.html
+++ b/layouts/partials/category.html
@@ -1,6 +1,6 @@
<div class="archive-header">
<h1>
- Category: {{ .Title }}
+ Category: {{ .Title }}
{{ if .Site.Params.social.rss }}
<a href="{{ .RSSLink }}" data-animate-hover="pulse" class="in-page-rss" target="_blank">
<i class="fa fa-rss" title="rss"></i>
@@ -13,22 +13,19 @@
<h1 class="screen-reader-text">Posts</h1>
<div id="loop-container" class="loop-container">
{{ range $index, $element := (where .Data.Pages "Section" "post") }}
- {{ if and (isset .Params "image") .Params.image }}
- {{ if eq (mod $index 2) 0 }}
- <div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured odd excerpt">
- {{ else }}
- <div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured even excerpt">
- {{ end }}
+ {{ if and (isset .Params "image") .Params.image }}
+ {{ if eq (mod $index 2) 0 }}
+ <div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured odd excerpt">
{{ else }}
-
+ <div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured even excerpt">
+ {{ end }}
+ {{ else }}
<div class="post type-post status-publish format-standard hentry category-standard category-travel excerpt zoom full-without-featured odd excerpt">
+ {{ end }}
- {{ end }}
-
- {{ if and (isset .Params "image") .Params.image }}
- <a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' data-background="{{ .Params.image | absURL }}"></div></a>
-
- {{ end }}
+ {{ if and (isset .Params "image") .Params.image }}
+ <a class="featured-image-link" href="{{ .Permalink }}"><div class='featured-image lazy lazy-bg-image' data-background="{{ .Permalink }}{{ .Params.image }}"></div></a>
+ {{ end }}
<div class="excerpt-container">
<div class="excerpt-meta">