Skip to content

Commit

Permalink
fix: do not justify if its type is poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Jan 16, 2020
1 parent 09f4e53 commit 0bd42e7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions layouts/partials/components/data-attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
<!-- Align -->
{{- .Scratch.Delete "align" -}}
{{- with .Params.align | default "default" -}}
{{- if eq . "justify" -}}
{{- $.Scratch.Set "align" "justify" -}}
{{- end -}}
{{- if and $.Site.Params.enableJustify (eq . "default") -}}
{{- $.Scratch.Set "align" "justify" -}}
{{- if ne $.Type "poetry" -}}
{{- if or (eq . "justify") (and $.Site.Params.enableJustify (eq . "default")) -}}
{{- $.Scratch.Set "align" "justify" -}}
{{- end -}}
{{- end -}}
{{- if eq . "center" -}}
{{- $.Scratch.Set "align" "center" -}}
Expand Down

0 comments on commit 0bd42e7

Please sign in to comment.