Hi there! Internet Explorer is no longer supported.

Please use a modern web browser such as Firefox, Chromium or Edge. Thank you!

Variables | Front Matter

List of Front Matter variables used by Trigo Theme

a cover alternative title
a cover caption

Variables used with the Trigo theme

Site Variables under Params

nametypeexampleDescription
envstring“production”To set env to production
titlestring“My Blog”To set title
descriptionstring“This is a blog of mine”To set site description
authorstring |list“Me” | [“Me”,“You”]To show multiple Authors
imagesstring“myimage.webp”Link or path of image for opengraph
keywordslist[blog, page]Add keywords for Home page
DateFormatstringJanuary 2, 2006The format of date strings in the website. Details
languageAltTitlestringEnglishAlternate title in Multilingual Mode
showReadingTimebooleantrue | falseTo show read time in post meta
showShareButtonsbooleantrue | falseTo show/hide share buttons under post
showCopyCodeButtonbooleantrue | falseTo show/hide Code Copy button
defaultChromastringlight | dark | autoTo set default theme
showPaginationbooleantrue | falseShow Previous and Next Posts below a Post
analytics.google.SiteVerificationTagstringXYZabcSite Verification Tag for Google Analytics
schema--Details
label--Details
assets--Details
editPost--Details

Site Variables

nametypeexampleDescription
copyrightstring**[example.site](https://example.site)**This is HUGO’s site variable, which can also render markdown content

label

nametypeexampleDescription
label.textstring“Home”To display different label text other than title
label.iconstring“/apple-touch-icon.webp”To display a logo image in label
label.iconHeightinteger35To set size of label logo image

cover

nametypeexampleDescription
cover.linkFullImagesbooleantrue | falseTo open full size cover images on click on cover
cover.responsiveImagesbooleantrue | falseTo enable/disable generation of responsive cover images

schema

nametypeexampleDescription
schema.publisherTypestring“Organization”https://schema.org/publisher
schema.sameAslist[URL1, URL2]Set https://schema.org/sameAs

Page Variables

NameTypeExampleDescription
descriptionstring“description text”Show Post Description under Title
disableSharebooleantrue | falseTo hide/show share icons under a page
showReadingTimebooleantrue | falseTo show read time in post meta
showPaginationbooleantrue | falseShow Previous and Next Posts below a Post
authorstring |list“Me” | [“Me”,“You”]To show multiple Authors
cover.imagestring“featured.jpg”To add a cover image
cover.captionstring“caption for image”To add caption to cover image
cover.altstring“this is cover image”Alternate text to show if image doesn’t load/show up
weightinteger5To set page order or to pin a post to Top of list