メインコンテンツへスキップ
  1. 資料/

Front Matter

4 分· ·
front matter config docs
Documentation - この記事は連載の一部です
パート 7: この記事

In addition to the default Hugo front matter parameters, Blowfish adds a number of additional options to customise the presentation of individual articles. All the available theme front matter parameters are listed below.

Front matter parameter default values are inherited from the theme’s base configuration, so you only need to specify these parameters in your front matter when you want to override the default.

NameDefaultDescription
titleNot setThe name of the article.
descriptionNot setThe text description for the article. It is used in the HTML metadata.
externalUrlNot setIf this article is published on a third-party website, the URL to this article. Providing a URL will prevent a content page being generated and any references to this article will link directly to the third-party website.
editURLarticle.editURLWhen showEdit is active, the URL for the edit link.
editAppendPatharticle.editAppendPathWhen showEdit is active, whether or not the path to the current article should be appended to the URL set at editURL.
groupByYearlist.groupByYearWhether or not articles are grouped by year on list pages.
menuNot setWhen a value is provided, a link to this article will appear in the named menus. Valid values are main or footer.
robotsNot setString that indicates how robots should handle this article. If set, it will be output in the page head. Refer to Google’s docs for valid values.
sharingLinksarticle.sharingLinksWhich sharing links to display at the end of this article. When not provided, or set to false no links will be displayed.
showAuthorarticle.showAuthorWhether or not the author box for the default author is displayed in the article footer.
showAuthorBottomarticle.showAuthorBottomAuthor boxes are displayed at the bottom of each page instead of the top.
authorsNot setArray of values for authors, if set it overrides showAuthor settings for page or site. Used on the multiple authors feature, check this page for more details on how to configure that feature.
showAuthorsBadgesarticle.showAuthorsBadgesWhether the authors taxonomies are are displayed in the article or list header. This requires the setup of multiple authors and the authors taxonomy. Check this page for more details on how to configure that feature.
featureimageNot setExternal URL for feature image
featureimagecaptionNot setCaption for feature image. Only displayed in heroStyle big
showHeroarticle.showHeroWhether the thumbnail image will be shown as a hero image within the article page.
heroStylearticle.heroStyleStyle to display the hero image, valid options are: basic, big, background, thumbAndBackground.
showBreadcrumbsarticle.showBreadcrumbs or list.showBreadcrumbsWhether the breadcrumbs are displayed in the article or list header.
showDatearticle.showDateWhether or not the article date is displayed. The date is set using the date parameter.
showDateUpdatedarticle.showDateUpdatedWhether or not the date the article was updated is displayed. The date is set using the lastmod parameter.
showEditarticle.showEditWhether or not the link to edit the article content should be displayed.
showHeadingAnchorsarticle.showHeadingAnchorsWhether or not heading anchor links are displayed alongside headings within this article.
showPaginationarticle.showPaginationWhether or not the next/previous article links are displayed in the article footer.
invertPaginationarticle.invertPaginationWhether or not to flip the direction of the next/previous article links.
showReadingTimearticle.showReadingTimeWhether or not the article reading time is displayed.
showTaxonomiesarticle.showTaxonomiesWhether or not the taxonomies that relate to this article are displayed.
showTableOfContentsarticle.showTableOfContentsWhether or not the table of contents is displayed on this article.
showWordCountarticle.showWordCountWhether or not the article word count is displayed.
showCommentsarticle.showCommentsWhether or not the comments partial is included after the article footer.
showSummarylist.showSummaryWhether or not the article summary should be displayed on list pages.
showViewsarticle.showViewsWhether or not the article views should be displayed in lists and detailed view. This requires a firebase integration. Check this page for a guide on how to integrate Firebase into Blowfish
showLikesarticle.showLikesWhether or not the article likes should be displayed in lists and detailed view. This requires a firebase integration. Check this page for a guide on how to integrate Firebase into Blowfish
seriesOpenedarticle.seriesOpenedWhether or not the series module will be displayed open by default or not.
seriesNot setArray of series the article belongs to, we recommend using only one series per article.
series_orderNot setNumber of the article within the series.
summaryAuto generated using summaryLength (see site configuration)When showSummary is enabled, this is the Markdown string to be used as the summary for this article.
xmltrue unless excluded by sitemap.excludedKindsWhether or not this article is included in the generated /sitemap.xml file.
layoutBackgroundBlurtrueMakes the background image in the background heroStyle blur with the scroll
layoutBackgroundHeaderSpacetrueAdd space between the header and the body.
Documentation - この記事は連載の一部です
パート 7: この記事

関連記事

Configuration
19 分
config docs
Multiple Authors
4 分
authors config docs
Thumbnails
2 分
thumbnail config docs
Advanced Customisation
9 分
高度なタグ css docs
Getting Started
7 分
installation docs
Homepage Layout
4 分
homepage layouts docs