-
Notifications
You must be signed in to change notification settings - Fork 5
Home
# Welcome to the BABC - BLOG wiki!
We'll be using
yml/yaml
format for all examples down below, I recommend usingyml
overtoml
as it is easier to read.You can find any YML to TOML converters if necessary.
The following is enabled by default
- minification - makes the assets size smallest as possible.
- bundling - bundles all the styles in one single asset
- fingerprint/intergity check.
params: # defaultTheme: light # defaultTheme: dark defaultTheme: auto # to switch between dark or light according to browser theme
Shows icon besides title of page to change theme
To disable it :
disableThemeToggle: true
You can refer following table for better understanding...
defaultTheme | disableThemeToggle | checks local storage? | checks system theme? | Info |
---|---|---|---|---|
auto | true | No | Yes | only system theme |
false | Yes (if not->2) | Yes (2) | switch present | |
dark | true | No | No | force dark only |
false | Yes | No | switch present | |
light | true | No | No | force light only |
false | Yes | No | switch present |
Since the link generated is a regular HTML anchor tag <a href=...>
, you can also use other URL schemas like mailto://
, e.g. URL: "mailto://mail@example.com?subject=Suggesting changes for "
Adds a Previous / Next post suggestion under a single post
params: ShowPostNavLinks: true
Adds a copy
button in code block to copy the code it contains
params: ShowCodeCopyButtons: true
To Use multiple authors for a post, in post-variables:
--- author: ["Me", "You"] ---
To use Multiple Authors Site-wide, in config.yml
:
params: author: ["Me", "You"]
to add comments, create a html file
layouts/partials/comments.html
and paste code provided by your comments provider
also in config add this
params: comments: true
read more about this hugo-comments
c - ToC Open/Close
g - Go To Top
h - Home (according to current lang)
t - Theme toggle
/ - Jumps to search page if in menu
Enabled only when env: production
Twitter Cards Support
Open-Graph support
Displays a Scroll-to-Top button in right-bottom corner
© 2023 BABC Blog Fullfilled by Bunnie-llc a division of TRC.
Papermod is managed by Adityalange