mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
✨ Feat: add HTML&MD render for single subtitle
This commit is contained in:
@@ -27,10 +27,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.single-subtitle {
|
.single-subtitle {
|
||||||
margin: 0.5rem 0;
|
margin-block: 0 0.5rem;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: 100%;
|
line-height: 1.15;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-meta {
|
.post-meta {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<h1 class="single-title animate__animated animate__pulse animate__faster">{{- cond (.Param "capitalizeTitles") (title .Title) .Title -}}</h1>
|
<h1 class="single-title animate__animated animate__pulse animate__faster">{{- cond (.Param "capitalizeTitles") (title .Title) .Title -}}</h1>
|
||||||
|
|
||||||
{{- /* Subtitle */ -}}
|
{{- /* Subtitle */ -}}
|
||||||
{{- with $params.subtitle -}}<p class="single-subtitle animate__animated animate__fadeIn">{{ . }}</p>{{- end -}}
|
{{- with $params.subtitle -}}<p class="single-subtitle animate__animated animate__fadeIn">{{ . | $.RenderString }}</p>{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{- /* Content */ -}}
|
{{- /* Content */ -}}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
{{- /* Title */ -}}
|
{{- /* Title */ -}}
|
||||||
<h1 class="single-title animate__animated animate__pulse animate__faster">{{- cond (.Param "capitalizeTitles") (title .Title) .Title -}}</h1>
|
<h1 class="single-title animate__animated animate__pulse animate__faster">{{- cond (.Param "capitalizeTitles") (title .Title) .Title -}}</h1>
|
||||||
{{- /* Subtitle */ -}}
|
{{- /* Subtitle */ -}}
|
||||||
{{- with $params.subtitle -}}<p class="single-subtitle animate__animated animate__fadeIn">{{ . }}</p>{{- end -}}
|
{{- with $params.subtitle -}}<p class="single-subtitle animate__animated animate__fadeIn">{{ . | $.RenderString }}</p>{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{- /* Friend links */ -}}
|
{{- /* Friend links */ -}}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- .Scratch.Set "version" "v0.3.13-9c440df3" -}}
|
{{- .Scratch.Set "version" "v0.3.13-b66fd370" -}}
|
||||||
{{- .Scratch.Set "this" dict -}}
|
{{- .Scratch.Set "this" dict -}}
|
||||||
|
|
||||||
{{- partial "init/detection-env.html" . -}}
|
{{- partial "init/detection-env.html" . -}}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
{{- /* Subtitle */ -}}
|
{{- /* Subtitle */ -}}
|
||||||
{{- with $params.subtitle -}}<p class="single-subtitle animate__animated animate__fadeIn">{{ . }}</p>{{- end -}}
|
{{- with $params.subtitle -}}<p class="single-subtitle animate__animated animate__fadeIn">{{ . | $.RenderString }}</p>{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{- /* Meta */ -}}
|
{{- /* Meta */ -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user