Skip to content

Commit

Permalink
fix: allow .Params.indent to override global settings
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed May 18, 2020
1 parent df739fa commit 188fc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/utils/data-attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<!-- Paragraph Indent -->
{{- $indent := false -}}
{{- if and .Site.Params.enableParagraphIndent (ne .Type "poetry") -}}
{{- if or .Params.indent (eq .Site.Params.paragraphStyle "indent") -}}
{{- if .Params.indent | default (eq .Site.Params.paragraphStyle "indent") -}}
{{- $indent = true -}}
{{- end -}}
{{- end -}}
Expand Down

0 comments on commit 188fc17

Please sign in to comment.