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

github.com/eddiewebb/hugo-resume.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEddie Webb <ollitech@gmail.com>2021-08-13 17:14:00 +0300
committerEddie Webb <ollitech@gmail.com>2021-08-13 17:14:00 +0300
commit27c90420210aed57d9fe8da1ab639c2330db18af (patch)
tree3a0a95bf0499ee396b5bfcbe0088a9615ed585b3
parent9a770927d572be0ad686ae4490de9b42143a637b (diff)
fix exclusion of markdown in page lsitings
-rw-r--r--layouts/_default/section.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index c453105..3d04314 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -13,7 +13,9 @@
<h2 id="{{ urlize .Title }}"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p>{{ .Content }}</p>
{{ range .Pages }}
- {{ partial (printf "%s%s" .Type "Summary") . }}
+ {{ if ne .Type "markdown" }}
+ {{ partial (printf "%s%s" .Type "Summary") . }}
+ {{ end }}
{{ end }}
{{ end }}
</div>