Skip to main content

Hugo Solstice theme

This site contains information about the Hugo Solstice theme used on Eclipse Foundation sites, a styleguide describing usage and showing some sample pages for list content. Information about each of the base components, how they are used, and some visible samples for how content appears at different breakpoints can be seen on the component styleguide. The pages showing this functionality can also be accessed through the Components section in the header navigation.

The Hugo Solstice theme project is available under the Eclipse Public License, version 2, on GitHub. Currently the project is maintained by the in-house web development team, but like other projects under the Eclipse Foundation umbrella is open to community input and development.

Document Parameters

Following section describes the parameters optionally set within each of the pages within the site. These will always override parameters of the same name present in the site parameters section.

Parameter nameDescription
author

Author name of the blog. This will be used to set the author of a blog.

Accepted values:

  • Any string value
body_class

Add classes to the body element.

Accepted values:

  • Any string value
container

If set, replaces the default container class of "container" with what is set in the parameter.

Accepted values:

  • Any string value
custom_jumbotron

Optional custom_jumbotron that will be inserted after taglines, can include html tags. We recommend to not use taglines and custom_jumbotron at the same time.

Accepted values:

  • Any string value
custom_jumbotron_class

Optional custom_jumbotron_class that will be used for custom_jumbotron.

Accepted values:

  • Any string value
Description

Built in Hugo document parameter. Used in the head meta description as the primary value if set.

Accepted values:

  • Any string value
disable_css

Disables CSS on the given page if set to "true", otherwise is ignored.

Accepted values:

  • true
email

Email address of the author of the blog. This will be used to set the email of a blog. If not set, site email will be used and if this is not set, "no+reply@eclipse-foundation.org" will be used as the email.

Accepted values:

  • Any valid email address value

Example: example@domain.com

format_title

Formats the page title in headings and breadcrumbs to title case. If there is no value set, will default to true.

Accepted values:

  • false
header_wrapper_class

Used in the header.html layout file, being appended to the header-wrapper class to optionally change or add to the header classes used on the page.

Accepted values:

  • Any string value
headline

If set, will render a jumbotron in the header with the given text as the headline of the content. Also used in the title meta tag when seo_title is missing from the page parameters.

Accepted values:

  • Any string value
hide_breadcrumb

Hides the page breadcrumb if set to true, otherwise ignored.

Accepted values:

  • true
hide_call_for_action

Hides the CFA button on the page.

Accepted values:

  • true
hide_page_title

Hides the page title if set to true, otherwise ignored.

Accepted values:

  • true
hide_sidebar

Hides the main content sidebar if set to true, otherwise ignored.

Accepted values:

  • true
image

URL for an image that will be used on the page for TODO. Used in fallback scenarios for sharing thumbnail when share_img is not set for the page.

Accepted values:

  • Absolute links or fully qualified URLs.
keywords

Keywords to use in the head of the page, used in metadata tagging.

Accepted values:

  • Array of strings

Example: ["tag1", "tag2", "tag3"]

links

Optional set of links that will be included under the tagline in the jumbotron as buttons, with the text as the anchors of the buttons.

Accepted values:

  • Array of URL objects that each contain values for "text" and "href"

Example: [[href: "about/", text: "About"], [href: "news/", text: "News"]]

main_menu

Replaces the default main menu for one defined in config.toml or menus.toml. See more information here.

Accepted values:

  • Any string value
redirect_url

Set the redirect URL for client-side page forwarding. Used in the head.html layout file, and is used in the canonical URL, and in an instant refresh meta tag for page target. If set, it will also set the page to not be indexed in the future by robots.

Accepted values:

  • Absolute links, relative links, or fully qualified URLs.
seo_title

The Search Engine Optimized (SEO) title of the page. This will be used as the site title in the metadata, along with the site SEO suffix.

Accepted values:

  • Any string value
share_img

Image URL source used for thumbnails when shared via Twitter.

Accepted values:

  • Absolute links or fully qualified URLs.
show_collapsible_menu

Show collapsible menu for mobile view on this page if set to true, otherwise is ignored.

Accepted values:

  • true
show_featured_footer

Shows the featured footer section at the top of the page if set to true, otherwise is ignored.

Accepted values:

  • true

Reference: Document reference

show_featured_story

Shows the featured story section at the top of the page if set to true, otherwise is ignored.

Accepted values:

  • true

Reference: Document reference

sidebar

Target specific menu identifiers. Used when a page or sub-section uses different sidebar content than the rest of the section it's in. Each identifier must have a corresponding "menu.sidebar" entry in the site's "config" file. If this parameter is omitted, the default sidebar for the section is used.

Accepted values:

  • An array of string values
subtitle

Used in the jumbotron, set in a second level header under the headline. Ignored if headline is not set.

Accepted values:

  • Any string value
Summary

Built in Hugo document parameter. Used in the head meta description if the Description parameter is not set.

Accepted values:

  • Any string value
tagline

Optional tagline that will be inserted after the subtitle parameter in the jumbotron as the tagline under the titles for the page.

Accepted values:

  • Any string value

Site Parameters

Following section describes the parameters set within the sites config.toml file, rather than parameters set at the page level.

Parameter nameDescription
bluesky_url

URL to the Bluesky page for the site. If there is no value set, will default to Eclispe Foundation page.

Deprecated in v0.1.7

Accepted values:

  • Absolute link to Bluesky profile
call_for_action_icon

Icon class for the navbar CTA button. The icons used in Solstice are from Font Awesome, and any icon name should be prepended by 'fa-'.

Accepted values:

  • Icon class from Font Awesome, prepended by 'fa-'

Example: fa-github

call_for_action_text

The text for the CTA button in the navbar

Accepted values:

  • Any string value
call_for_action_url

The anchor URL for the CTA button in the navbar.

Accepted values:

  • Absolute link or fully qualified URL. For best results with internal URLs, end URLs without extensions with a slash. e.g. /downloads -> /downloads/
custom_jumbotron_class

Optional custom_jumbotron_class that will be used for custom_jumbotron.

Accepted values:

  • Any string value
description

Description of the overall site, used in a pages meta description if no page level description is set.

Accepted values:

  • Any string value
facebook_url

URL to the Facebook page for the site. If there is no value set, will default to Eclispe Foundation page.

Deprecated in v0.1.7

Accepted values:

  • Absolute link to Facebook profile
favicon

URL to the favicon image for the site.

Accepted values:

  • Absolute link or fully qualified URL to an image
fb_app_id

The Facebook application ID string for the sites ad network account.

Accepted values:

  • Any string value
gcse

The Google site search collection ID string.

Accepted values:

  • Any string value
google_tag_manager

If set, the Google tag manager is activated in the footer.

Accepted values:

  • true
header_wrapper_class

Used in the header.html layout file, being appended to the header-wrapper class to optionally change or add to the header classes used on the page. Only used if not set at the page level.

Accepted values:

  • Any string value
hide_breadcrumb

Hides the breadcrumb on all pages if set to true, otherwise ignored.

Accepted values:

  • true
hide_call_for_action

Hides the CFA button site-wide.

hide_cfa_same_page

Attempt to hide CFA on the page it links to

Accepted values:

  • true
js

URL to the main javascript to be used on the site. This does not affect any scripts added in custom sctions of the site. Defaults to main.min.js

Accepted values:

  • Absolute link or fully qualified URL to a JS file
jumbotron_btn_class

Used in the jumbotron.html layout file. Allow you to change the default value of btn btn-primary. Can be set at the site or page level.

Accepted values:

  • Any string value
jumbotron_class

Used in the jumbotron.html layout file. Allow you to change the default value of col-md-20 col-md-offset-2 col-sm-18 col-sm-offset-3. Can be set at the site or page level.

Accepted values:

  • Any string value
jumbotron_tagline_class

Used in the jumbotron.html layout file. Allow you to change the default value of col-sm-18 col-sm-offset-3. Can be set at the site or page level.

Accepted values:

  • Any string value
keywords

Keywords to use in the head of the page, used in metadata tagging. Used if the keywords param is not set at the page level.

Accepted values:

  • Array of strings

Example: ["tag1", "tag2", "tag3"]

linkedin_url

URL to the linkedin page for the site. If there is no value set, will default to Eclispe Foundation page.

Deprecated in v0.1.7

Accepted values:

  • Absolute link to linkedin profile
logo

URL to the logo image for the site. If there is no other image set in page or site parameters, this image is used as the sharing image for social media links.

Accepted values:

  • Absolute link or fully qualified URL to an image
main_content_class

Used in the main_prefix.html layout file. Allow you to change the default value of col-md-18 padding-bottom-30 is overriten. Can be set at the site or page level.

Accepted values:

  • Any string value
main_sidebar_class

Used in the main_suffix.html layout file. Allow you to change the default value of col-md-6 padding-bottom-30. Can be set at the site or page level.

Accepted values:

  • Any string value
seo_title_suffix

If set, this value is appended to the page title in the head of the page for the meta title.

Accepted values:

  • Any string value
share_img

URL to the image used for sharing links for the site. If there is no other image set in page or site parameters, this image is used as the sharing image for social media links.

Accepted values:

  • Absolute link or fully qualified URL to an image
show_collapsible_menu

Show collapsible menu for mobile view on all pages if set to true, otherwise is ignored.

Accepted values:

  • true
show_events

Boolean value, when set to true events will be enabled on the site.

Accepted values:

  • true
socials

Accepted values:

  • Array of objects with the following properties: name (string), icon (string, Font Awesome 6 icon classes), url (string)

Example:

[[Params.socials]]
  name = "Bluesky"
  icon = "fa-brands fa-bluesky"
  url = "https://bsky.app/profile/eclipsefdn.bsky.social"

styles

URL to the stylesheet to be used on the site. This does not affect any stylesheets added in custom sctions of the site. Defaults to quicksilver.min.css

Accepted values:

  • Absolute link or fully qualified URL to a CSS file
twitter_url

URL to the Twitter page for the site. If there is no value set, will default to Eclispe Foundation page.

Deprecated in v0.1.7

Accepted values:

  • Absolute link to Twitter profile
youtube_url

URL to the YouTube page for the site. If there is no value set, will default to Eclispe Foundation page.

Deprecated in v0.1.7

Accepted values:

  • Absolute link to YouTube profile

Back to the top