Below is a list of configurable parameters in the Lightbi theme, along with descriptions to help you customize your site effectively. You can be adjust the below parameters in your hugo.toml
file.
Main Parameters
homepageLayout
- Type: String (
"profile"
or"blog"
) - Description: To configure the theme for either profile or blog mode. Set
homepageLayout = "profile"
for profile mode andhomepageLayout = "blog"
for blog mode.
- Type: String (
previewCardImagePlacement
- Type: String (
"top"
or"middle"
or"bottom"
or"none"
) - Description: Determines where the preview image appears on post cards in lists or summaries.
"top"
places the image above the text, “middle”: Centers the image within the text area,"bottom"
places below the text, and"none"
hides the preview image entirely.
- Type: String (
Profile Mode Parameters
profileShortbio
.- Type: String
- Description: A short description or introduction about yourself. Displayed prominently on the home screen when homepageLayout is set to
"profile"
.
profilePhoto
.- Type: String
- Description: Path to your profile image used on the homepage in profile mode. Image should be placed in the
assets/img
folder (e.g., assets/img/profile/home-profile-pic.jpg).
Other Parameters
readingTime
- Type: Boolean (
true
orfalse
) - Description: When set to
true
, displays an estimated reading time for each post. This helps readers gauge how long it will take to read the content.
- Type: Boolean (
wordCount
- Type: Boolean
- Description: Enables or disables the word count display for each post. Useful for readers interested in post length.
hideAuthor
- Type: Boolean
- Description: Controls the visibility of the author information on each post. Set to
false
to display the author section ortrue
to hide it.
tagSubtitle
- Type: String
- Description: Here you can enter the heading for your tag page.
hidePostImage
- Type: Boolean
- Description: Controls the visibility of the featured image on individual post pages. Set to
true
to hide post images orfalse
to show them.
useHLJS
- Type: Boolean
- Description: Enables Highlight.js, a JavaScript library for syntax highlighting in code blocks. Set to
true
to use Highlight.js for syntax highlighting.
socialShare
- Type: Boolean
- Description: Adds social sharing buttons to posts, allowing readers to share content on various social media platforms.
showRelatedPosts
- Type: Boolean
- Description: When enabled, displays related posts at the bottom of each post to encourage further reading.
gcse
- Type: Boolean
- Description: Enables Google Custom Search Engine integration for site search functionality. Requires a configured search engine ID.
Lastmod
- Type: Boolean
- Description: Controls whether the “Last Modified” date is shown on posts, which can be helpful for showing recent updates.
rss
- Type: Boolean
- Description: Enables RSS feed generation for the site, making it easy for users to subscribe to your content.
pagerSize
- Type: Integer
- Description: Sets the number of posts displayed per page on list or archive pages.
description
- Type: String
- Description: A short description of your website that may appear in the metadata or be used for SEO.
lunrSearch
- Type: Boolean
- Description: Enables Lunr.js search, a client-side search engine, allowing users to search content directly on the site.
These parameters allow for easy customization and control over how your Hugo theme behaves and displays content.
What are your thoughts on this post?
I’d love to hear from you! Click this link to email me, I reply to every message!
Also use the share button below if you liked this post. It makes me smile, when I see it.