mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-24 06:56:59 +00:00
Remove heading in figcaption when necessary
This commit is contained in:
@@ -182,8 +182,10 @@ figure {
|
|||||||
}
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
font-size: 14px;
|
font-size: 1.125rem;
|
||||||
margin-top: 5px;
|
line-height: 1.3;
|
||||||
|
margin: 1.33em 0;
|
||||||
|
font-weight: bold;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
|
|
||||||
&.left {
|
&.left {
|
||||||
|
|||||||
@@ -14,17 +14,23 @@
|
|||||||
{{- if .Get "link" }}</a>{{ end -}}
|
{{- if .Get "link" }}</a>{{ end -}}
|
||||||
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
|
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
|
||||||
<figcaption>
|
<figcaption>
|
||||||
{{ with (.Get "title") -}}
|
{{- if or (.Get "caption") (.Get "attr") -}}
|
||||||
|
{{- with (.Get "title") -}}
|
||||||
<h4>{{ . }}</h4>
|
<h4>{{ . }}</h4>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if or (.Get "caption") (.Get "attr") -}}<p>
|
<p>
|
||||||
{{- .Get "caption" | markdownify -}}
|
{{- .Get "caption" | markdownify -}}
|
||||||
{{- with .Get "attrlink" }}
|
{{- with .Get "attrlink" }}
|
||||||
<a href="{{ . }}">
|
<a href="{{ . }}">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- .Get "attr" | markdownify -}}
|
{{- .Get "attr" | markdownify -}}
|
||||||
{{- if .Get "attrlink" }}</a>{{ end }}</p>
|
{{- if .Get "attrlink" }}</a>{{ end }}
|
||||||
{{- end }}
|
</p>
|
||||||
|
{{- else -}}
|
||||||
|
{{- with (.Get "title") -}}
|
||||||
|
{{ . }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
</figcaption>
|
</figcaption>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</figure>
|
</figure>
|
||||||
Reference in New Issue
Block a user