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 Aug 28, 2024
1 parent 6ec37a9 commit 3beea3d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* 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;
}

/* For individual bullet points 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/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 3beea3d

Please sign in to comment.