Skip to content

Commit

Permalink
feat: improve page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
f-hollow committed Sep 3, 2024
1 parent bf06130 commit f93360c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
21 changes: 21 additions & 0 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 1 addition & 1 deletion config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defaultContentLanguage = "en"

enableRobotsTXT = true
paginate = 100
summaryLength = 30
summaryLength = 15

buildDrafts = false
buildFuture = false
Expand Down
2 changes: 1 addition & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}

<link type="text/css" rel="stylesheet" href="{{ $bundleCSS.RelPermalink }}"
integrity="{{ $bundleCSS.Data.Integrity }}" />
{{ $jsAppearance := resources.Get "js/appearance.js" }}
Expand Down

0 comments on commit f93360c

Please sign in to comment.