Skip to content

Commit

Permalink
Merge pull request #774 from Houndie/master
Browse files Browse the repository at this point in the history
Fix broken if and statement
  • Loading branch information
stp-ip authored May 28, 2020
2 parents 5bbd985 + 89d3516 commit a6cdf70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/helpers/fragments-renderer.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{- range sort ($page_scratch.Get "page_fragments" | default slice) "Params.weight" -}}
{{/* If a fragment contains a slot variable in it's frontmatter it should not
be rendered on the page. It would be later handled by the slot helper. */}}
{{- if (not (isset .Params "slot")) (ne .Params.slot "") -}}
{{- if and (not (isset .Params "slot")) (ne .Params.slot "") -}}
{{/* Cleanup .Name to be more useful within fragments */}}
{{- $name := cond (eq $page .) .File.BaseFileName (strings.TrimSuffix ".md" (replace .Name "/index.md" "")) -}}
{{- $bg := .Params.background | default "light" }}
Expand Down

0 comments on commit a6cdf70

Please sign in to comment.