diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 00000000..b5d41127 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,21 @@ +/* This makes text in code blocks smaller than body text */ +.highlight, code { + font-size: 0.85rem; +} + +/* This makes text in TOC smaller than body text */ +#TableOfContents li { + font-size: 0.85rem; +} + +/* This reduces font in article summaries */ +.py-1 { + font-size: 0.85rem; + font-weight: 400; +} + +/* For bullet points to stand out in a list, the line heights inside and + between bullet points should differ. This reduces the inside height */ + li { + line-height: 1.65; +} diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 3069eca6..751cc7f9 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -10,7 +10,7 @@ defaultContentLanguage = "en" enableRobotsTXT = true paginate = 100 -summaryLength = 30 +summaryLength = 15 buildDrafts = false buildFuture = false diff --git a/config/_default/params.toml b/config/_default/params.toml index fff74c95..c8fcf6a1 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -88,7 +88,7 @@ smartTOCHideUnfocusedChildren = false layoutBackgroundBlur = true # only used when heroStyle equals background layoutBackgroundHeaderSpace = false showBreadcrumbs = false - showSummary = false + showSummary = true showViews = true showLikes = true showTableOfContents = true diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e407398f..5d40ae05 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -67,7 +67,7 @@

lg:top-[140px]{{ else }}lg:top-10{{ end }}"> {{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in - .TableOfContents " {{ end }} diff --git a/layouts/partials/back-to-parent.html b/layouts/partials/back-to-parent.html deleted file mode 100644 index 8c933c33..00000000 --- a/layouts/partials/back-to-parent.html +++ /dev/null @@ -1,6 +0,0 @@ -
-{{ with .Parent }} - Back to {{ .Title }} -{{ end }} -
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index cd61e0a6..fcd6fb03 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -47,6 +47,8 @@ {{ end }} {{ $bundleCSS := $assets.Get "css" | resources.Concat "css/main.bundle.css" | resources.Minify | resources.Fingerprint "sha512" }} + {{ $cssCustom := resources.Get "css/custom.css" }} + {{ $jsAppearance := resources.Get "js/appearance.js" }}