新增文章

This commit is contained in:
ember 2025-04-17 02:43:09 +08:00
parent 304d07cc81
commit f3bc298997
7 changed files with 380 additions and 4 deletions

View File

@ -57,4 +57,10 @@
[data-scheme="dark"] .qr-code .qr-light {
display: none;
}
}
pre.mermaid {
background-color: #272822 !important;
color: #f8f8f2 !important;
}

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,8 @@ tags: [
"md-editor-v3",
"Markdown",
"Vue",
"前端"
"前端",
"NEU小站"
]
lastmod: 2025-04-16T23:56:00+08:00

View File

@ -0,0 +1,4 @@
<pre class="mermaid">
{{ .Inner | htmlEscape | safeHTML }}
</pre>
{{ .Page.Store.Set "hasMermaid" true }}

View File

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" dir="{{ default `ltr` .Language.LanguageDirection }}">
<head>
{{- partial "head/head.html" . -}}
{{- block "head" . -}}{{ end }}
</head>
<body class="{{ block `body-class` . }}{{ end }}">
{{- partial "head/colorScheme" . -}}
{{/* The container is wider when there's any activated widget */}}
{{- $hasWidget := false -}}
{{- range .Site.Params.widgets -}}
{{- if gt (len .) 0 -}}
{{- $hasWidget = true -}}
{{- end -}}
{{- end -}}
<div class="container main-container flex on-phone--column {{ if $hasWidget }}extended{{ else }}compact{{ end }}">
{{- block "left-sidebar" . -}}
{{ partial "sidebar/left.html" . }}
{{- end -}}
{{- block "right-sidebar" . -}}{{ end }}
<main class="main full-width">
{{- block "main" . }}{{- end }}
</main>
</div>
{{ partial "footer/include.html" . }}
{{ if .Store.Get "hasMermaid" }}
<script type="module">
import mermaid from 'https://cdn.ember.ac.cn/js/mermaid/mermaid.esm.min.mjs';
mermaid.initialize({
startOnLoad: true,
theme: 'dark'
});
</script>
{{ end }}
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"Target":"/scss/style.min.40e8155bfa2ddbd9e7a0338c33847e7ec9ee952ac6ee30bee252df13a7ac714d.css","MediaType":"text/css","Data":{"Integrity":"sha256-QOgVW/ot29nnoDOMM4R+fsnulSrG7jC+4lLfE6escU0="}}
{"Target":"/scss/style.min.a1cd0aa92bcdacc5606ab6113ea9b3fc8d223f6bb51ee5b385c5ea79581d28c0.css","MediaType":"text/css","Data":{"Integrity":"sha256-oc0KqSvNrMVgarYRPqmz/I0iP2u1HuWzhcXqeVgdKMA="}}