🎨 🐛 Fixed the friends link code block & others imports.

This commit is contained in:
elkan1788
2025-01-25 17:43:52 +08:00
parent f215616230
commit 6d65d92943
14 changed files with 53 additions and 88 deletions

View File

@@ -60,6 +60,5 @@
theme.active();
})(window);
</script>
{{ partial "head/config.html" . }}
{{ partialCached "head/script/analytics.html" . }}

View File

@@ -83,15 +83,4 @@
{{ $pageCfg = merge $pageCfg (dict "math" $math) }}
{{ end }}
<script class="next-config" data-name="page" type="application/json">{{ $pageCfg }}</script>
{{/** Special CSS Style for page **/}}
{{ if .IsPage }}
<style type="text/css">
.post-footer, .flinks-list-footer hr:after {
content: "{{ .Site.Params.postFooter.endLineTip }}";
}
</style>
{{ end }}
<script class="next-config" data-name="page" type="application/json">{{ $pageCfg }}</script>

View File

@@ -1,3 +0,0 @@
.post-footer, .flinks-list-footer hr:after {
content: "{{ .Site.Params.postFooter.endLineTip }}";
}

View File

@@ -1,13 +0,0 @@
{{/* Defind loading plugin entend style which only need in pages */}}
{{ if .IsPage }}
{{/** Short code params **/}}
{{ $scParam := .Store.Get "scParams" }}
{{ if $scParam.mermaid }}
.post-block .post-body .mermaid {
background: var(--highlight-foreground);
}
{{ end }}
{{ end }}

View File

@@ -20,8 +20,22 @@
<!-- Extend Style -->
<style type="text/css">
{{ partialCached "head/style/global.html" . }}
{{ partial "head/style/plugins.html" . }}
.post-footer hr:after {
content: "{{ .Site.Params.postFooter.endLineTip }}";
}
.flinks-list-footer hr:after {
content: "{{ .Site.Params.postFooter.endLineTip }}";
}
{{ $scParam := .Store.Get "scParams" }}
{{ if $scParam.mermaid }}
.post-block .post-body .mermaid {
background: var(--highlight-foreground);
margin-bottom: 20px;
text-align: center;
}
{{ end }}
</style>
<!-- Custom Style file -->