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 @@