Skip to content

Commit

Permalink
Update #116 to consolidate config with a single param -
Browse files Browse the repository at this point in the history
Signed-off-by: 1bl4z3r <[email protected]>
  • Loading branch information
1bl4z3r committed Feb 24, 2025
1 parent 57bbdc8 commit 0354d44
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ p.img-404 {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 12px 0;
padding: 8px 0;
}
}

Expand Down
4 changes: 1 addition & 3 deletions hugo.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ expiryDate = ["expiryDate"]
# categorySymbol = "⊲"
# pinned = "Pinned Posts"
# pinnedSVGname = "pin"
# descriptionInPosts = true
# tagsInPosts = true
# categoriesInPosts = false
# listLayout = ["description","tags","categories","legacy"]
# initialPublish = "Initally Posted on: "
# human = ["single","posts"]
# noIndex = false
Expand Down
6 changes: 3 additions & 3 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>{{- .Site.Params.pinned -}}</h2>
{{- if and .Page.Params.description .Site.Params.descriptionInPosts -}}
<span class="post-description">{{ .Page.Params.description }}</span>
{{- end -}}
{{- if or .Site.Params.tagsInPosts .Site.Params.categoriesInPosts -}}<div class="post-taxonomy">
{{- if or (in .Site.Params.listLayout "tags") (in .Site.Params.listLayout "categories") -}}<div class="post-taxonomy">
{{- if and .Page.Params.tags .Site.Params.tagsInPosts -}}
<span class="post-tags">
{{- range .Page.Params.tags -}}
Expand Down Expand Up @@ -89,10 +89,10 @@ <h2>{{- .Site.Params.pinned -}}</h2>
{{- end -}}
<span class="post-day">{{ .Date.Format .Site.Params.dateformShort }}</span>
</a>
{{- if and .Page.Params.description .Site.Params.descriptionInPosts -}}
{{- if and .Page.Params.description (in .Site.Params.listLayout "description") -}}
<span class="post-description">{{ .Page.Params.description }}</span>
{{- end -}}
{{- if or .Site.Params.tagsInPosts .Site.Params.categoriesInPosts -}}<div class="post-taxonomy">
{{- if or (in .Site.Params.listLayout "tags") (in .Site.Params.listLayout "categories") -}}<div class="post-taxonomy">
{{- if and .Page.Params.tags .Site.Params.tagsInPosts -}}
<span class="post-tags">
{{- range .Page.Params.tags -}}
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<main class="site-main section-inner thin {{- if ne false .Site.Params.usesAnimation }} animated fadeIn faster{{- end -}}">
<h1>{{ .Title }}</h1>
{{- if .Content }}<div class="content">{{ .Content }}</div>{{ end -}}
{{- if (and (or (in .Page.RelPermalink "tags") (in .Page.RelPermalink "categories")) .Site.Params.legacyList) -}}
{{- if (and (or (in .Page.RelPermalink "tags") (in .Page.RelPermalink "categories")) (in .Site.Params.listLayout "legacy")) -}}
{{- range .Data.Pages.GroupByDate "2006" }}
<div class="posts-group">
<div class="post-year" id="{{ .Key }}">
Expand All @@ -27,7 +27,7 @@ <h1>{{ .Title }}</h1>
</ul>
</div>
{{- end }}
{{- else if (and (or (in .Page.RelPermalink "tags") (in .Page.RelPermalink "categories")) (not .Site.Params.legacyList)) -}}
{{- else if (and (or (in .Page.RelPermalink "tags") (in .Page.RelPermalink "categories")) (not (in .Site.Params.listLayout "legacy"))) -}}
{{- range .Data.Terms.ByCount }}
<div class="posts-group">
<ul class="posts-list">
Expand Down

0 comments on commit 0354d44

Please sign in to comment.