From 4cf95e811623869640a92b3927670d4720d2fa84 Mon Sep 17 00:00:00 2001 From: razonyang Date: Sun, 25 Jun 2023 16:56:07 +0800 Subject: [PATCH] feat(lead): the first parameter has same affect as class --- layouts/partials/bootstrap/lead.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/bootstrap/lead.html b/layouts/partials/bootstrap/lead.html index 0003e4a..c3c6fd7 100644 --- a/layouts/partials/bootstrap/lead.html +++ b/layouts/partials/bootstrap/lead.html @@ -1,5 +1,7 @@ {{- $class := "" }} {{- if .IsNamedParams }} {{- with .Get "class" }}{{ $class = . }}{{ end }} +{{- else }} + {{- with .Get 0 }}{{ $class = . }}{{ end }} {{- end }}

{{ .Inner }}