diff --git a/config.toml b/config.toml index 7f52978..ed6c261 100644 --- a/config.toml +++ b/config.toml @@ -19,6 +19,7 @@ disableKinds = ["taxonomyTerm"] HomeDesc = "**[博客](/blog/) 和 [飞行手册](/flight-rules/)中还有很多文章✨**" AuthorName = "王不对" Favicon = "/favicon.jpg" + fontsLink = "https://fonts.googleapis.com/css?family=Noto+Serif+SC:400,500,700&display=swap&subset=chinese-simplified" [params.CDN] #enable = false diff --git a/themes/hugo-w2ng/assets/css/styles.css b/themes/hugo-w2ng/assets/css/styles.css index 25e1f9d..fbd376f 100644 --- a/themes/hugo-w2ng/assets/css/styles.css +++ b/themes/hugo-w2ng/assets/css/styles.css @@ -7,14 +7,18 @@ /* Tailwind's utility classes - generated based on config file */ @import "node_modules/tailwindcss/utilities"; +.markdown { + @apply text-lg; +} + .markdown h1 { - @apply text-3xl my-12; + @apply text-4xl my-12; } .markdown h2 { - @apply text-2xl my-8; + @apply text-3xl my-8; } .markdown h3 { - @apply text-lg my-4; + @apply text-xl my-4; } .markdown h4 { @apply my-2; @@ -50,19 +54,19 @@ @apply overflow-x-auto p-4 border border-solid border-gray-400 shadow-lg; } .markdown code { - @apply bg-gray-200 font-mono text-sm; + @apply bg-gray-200 font-mono text-lg; } .markdown pre code { @apply bg-transparent; } .markdown ul { - @apply text-base pl-8 list-disc; + @apply pl-8 list-disc; } .markdown ol { - @apply text-base pl-8 list-decimal; + @apply pl-8 list-decimal; } .markdown kbd { - @apply text-xs inline-block bg-gray-100 rounded border p-1 align-middle font-normal font-mono shadow; + @apply text-sm inline-block bg-gray-100 rounded border p-1 align-middle font-normal font-mono shadow; } .markdown hr { @apply block my-6 mx-auto max-w-md h-px border-t border-black; diff --git a/themes/hugo-w2ng/assets/css/tailwind.config.js b/themes/hugo-w2ng/assets/css/tailwind.config.js index 833e9bc..6926d33 100644 --- a/themes/hugo-w2ng/assets/css/tailwind.config.js +++ b/themes/hugo-w2ng/assets/css/tailwind.config.js @@ -1,7 +1,7 @@ module.exports = { theme: { fontFamily: { - 'sans': ['Optima', 'Candara', '"Lucida Sans"', 'Calibri', 'Arial', 'source-han-serif-sc', '"Source Han Serif SC"', + 'sans': ['Optima', 'Candara', '"Lucida Sans"', 'Calibri', 'Arial','Noto Serif SC', 'source-han-serif-sc', '"Source Han Serif SC"', '"Source Han Serif CN"', '"Source Han Serif TC"', '"Source Han Serif TW"', '"Source Han Serif"', '"Songti SC"', '"Microsoft YaHei"', "sans-serif"], 'mono': ['Menlo', 'Monaco', 'Consolas', '"Liberation Mono"', '"Courier New"', 'SFMono-Regular', 'monospace'], }, diff --git a/themes/hugo-w2ng/layouts/_default/single.html b/themes/hugo-w2ng/layouts/_default/single.html index cef9dab..434f722 100644 --- a/themes/hugo-w2ng/layouts/_default/single.html +++ b/themes/hugo-w2ng/layouts/_default/single.html @@ -2,9 +2,9 @@
{{- partial "taxonomy.html" . -}} -

{{ .Title }}

+

{{ .Title }}

{{ if not .Params.disableMeta }} -

+

{{ with $.Site.Params.AuthorName }}