Skip to content

Commit

Permalink
feat(lead): the first parameter has same affect as class
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 25, 2023
1 parent c010a54 commit 4cf95e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/bootstrap/lead.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{{- $class := "" }}
{{- if .IsNamedParams }}
{{- with .Get "class" }}{{ $class = . }}{{ end }}
{{- else }}
{{- with .Get 0 }}{{ $class = . }}{{ end }}
{{- end }}
<p class="lead{{ with $class }} {{ . }}{{ end }}">{{ .Inner }}</p>

0 comments on commit 4cf95e8

Please sign in to comment.