Skip to main content
Background Image

Front Matter

Table of Contents

In addition to the default front matter in Hugo, Blowfish adds a large number of parameter options to customize how individual pages are displayed. All available front matter parameters are listed below.

The default values for front matter parameters are inherited from the basic configuration, so you only need to specify these parameters on the current page when you want to override the default values.

NameDefault ValueDescription
titleNoneArticle title.
descriptionNoneArticle description, which will be added to the HTML <meta> metadata.
externalUrlNoneIf the article is published on a third-party website, provide the URL pointing to the corresponding article. Providing a URL will prevent generating a content page, and any reference to this article will redirect directly to the third-party website URL.
editURLarticle.editURLWhen the showEdit parameter is activated, this parameter is used to set the URL for editing the article.
editAppendPatharticle.editAppendPathWhen the showEdit parameter is activated, this parameter specifies whether to append the current article path to the URL set by editURL.
groupByYearlist.groupByYearWhether to group articles by year on list pages.
menuNoneWhen this value is set, a link to this content will appear in the menu. Valid values are main or footer.
robotsNoneHow search engine crawlers should handle this article. If this value is set, it will be output in the page header. For more information, see Google documentation.
sharingLinksarticle.sharingLinksSpecifies which sharing links to display at the end of the article. If not set or set to false, no sharing links will be displayed.
showAuthorarticle.showAuthorWhether to display the author box in the footer.
showAuthorBottomarticle.showAuthorBottomDisplay the author box at the bottom of each page instead of the top.
authorsNoneArray for displaying multiple authors. If set, it will override the showAuthor setting. This uses the multi-author feature. See this page for more information.
showAuthorsBadgesarticle.showAuthorsBadgesWhether to display authors author categories on article and list pages. For this to work, you need to enable multiple authors and authors categories. See this page for more information.
featureimageNoneFeature image link based on external URL.
featureimagecaptionNoneFeature image caption, only displayed in the big style of hero layout.
showHeroarticle.showHeroWhether to display the featured image as a hero image within the article page.
heroStylearticle.heroStyleHero image style. Valid values are: basic, big, background, thumbAndBackground.
showBreadcrumbsarticle.showBreadcrumbs or list.showBreadcrumbsWhether to display breadcrumb navigation on article or list pages.
showDatearticle.showDateWhether to display the article date. The specific date is set using the date parameter.
showDateUpdatedarticle.showDateUpdatedWhether to display the article update date. The specific date is set using the lastmod parameter.
showEditarticle.showEditWhether to display a link to edit the article content.
showHeadingAnchorsarticle.showHeadingAnchorsWhether to display anchor links next to article headings.
showPaginationarticle.showPaginationWhether to display next/previous links in the article footer.
invertPaginationarticle.invertPaginationWhether to invert the direction of next/previous links.
showReadingTimearticle.showReadingTimeWhether to display the estimated reading time for the article.
showTaxonomiesarticle.showTaxonomiesWhether to display categories/tags associated with the article.
showTableOfContentsarticle.showTableOfContentsWhether to display the article table of contents.
showWordCountarticle.showWordCountWhether to display article word count. If your language belongs to CJK languages, you need to enable the hasCJKLanguage parameter in config.toml.
showCommentsarticle.showCommentsWhether to display the comments section in the article footer.
showSummarylist.showSummaryWhether to display summaries on article or list pages.
showViewsarticle.showViewsWhether to display view counts on article and list pages. This requires Firebase integration. See this page to learn how to integrate Firebase in Blowfish.
showLikesarticle.showLikesWhether to display like counts on article and list pages. This requires Firebase integration. See this page to learn how to integrate Firebase in Blowfish.

Usage Examples
#

Basic Article Configuration
#

---
title: "My First Post"
description: "This is my first blog post using Blowfish theme"
date: 2024-01-01
draft: false
tags: ["blog", "hugo", "blowfish"]
showTableOfContents: true
showReadingTime: true
showWordCount: true
---

Hero Image Configuration
#

---
title: "Featured Article"
showHero: true
heroStyle: "big"
featureimage: "https://example.com/hero-image.jpg"
featureimagecaption: "Beautiful landscape photo"
---

Multi-Author Configuration
#

---
title: "Collaborative Post"
authors: ["john-doe", "jane-smith"]
showAuthorsBadges: true
showAuthorBottom: true
---

External Article Configuration
#

---
title: "Article on Medium"
externalUrl: "https://medium.com/@author/article-title"
description: "This article was originally published on Medium"
---

Best Practices
#

  1. Use descriptive titles and descriptions for better SEO
  2. Set appropriate tags and categories to organize content
  3. Configure hero images for featured articles
  4. Enable table of contents for long articles
  5. Use external URLs for cross-posted content
  6. Test different hero styles to find what works best for your content

For more information about configuring your site, see the Configuration documentation.

No articles published here yet.