新增文章
This commit is contained in:
parent
304d07cc81
commit
f3bc298997
@ -57,4 +57,10 @@
|
||||
|
||||
[data-scheme="dark"] .qr-code .qr-light {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
pre.mermaid {
|
||||
background-color: #272822 !important;
|
||||
color: #f8f8f2 !important;
|
||||
}
|
||||
|
||||
|
327
content/post/奇技淫巧/markdown渲染框架.md
Normal file
327
content/post/奇技淫巧/markdown渲染框架.md
Normal file
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,8 @@ tags: [
|
||||
"md-editor-v3",
|
||||
"Markdown",
|
||||
"Vue",
|
||||
"前端"
|
||||
"前端",
|
||||
"NEU小站"
|
||||
]
|
||||
lastmod: 2025-04-16T23:56:00+08:00
|
||||
|
||||
|
4
layouts/_default/_markup/render-codeblock-mermaid.html
Normal file
4
layouts/_default/_markup/render-codeblock-mermaid.html
Normal file
@ -0,0 +1,4 @@
|
||||
<pre class="mermaid">
|
||||
{{ .Inner | htmlEscape | safeHTML }}
|
||||
</pre>
|
||||
{{ .Page.Store.Set "hasMermaid" true }}
|
38
layouts/_default/baseof.html
Normal file
38
layouts/_default/baseof.html
Normal 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
@ -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="}}
|
Loading…
x
Reference in New Issue
Block a user