Skip to content

About

Capitalify theme for Hugolify

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

capitalify-theme

Install

Edit config/_default/module.yaml to install the capitalify-theme module.

V2

This module carries both styling layers, so it works with either design module. Declare it first, before the section modules, the core theme and the styling module: it overrides partials of the first two, and its mounts have to shadow theirs.

imports:
  - path: github.com/uncinq/capitalify-theme/v2

  # Section modules
  - path: github.com/hugolify/hugolify-theme-persons/v2

  # Core theme
  - path: github.com/hugolify/hugolify-theme/v2

  # Styling, one of the two
  - path: github.com/hugolify/hugolify-theme-design-system # CSS + design tokens
  # - path: github.com/hugolify/hugolify-theme-bootstrap   # SASS + Bootstrap 5

With hugolify-theme-design-system the theme comes from assets/tokens/; with hugolify-theme-bootstrap it comes from assets/sass/.

V1

imports:
  - path: github.com/hugolify/capitalify-theme
  - path: github.com/hugolify/hugolify-theme

Structured data

The theme adds the schema.org types of the finance and wealth professions to the generic ones of hugolify-theme, through layouts/_partials/func/GetSchemaTypesTheme.html:

  • FinancialService, a financial adviser, a wealth manager or a family office
  • AccountingService, an accountant
  • InsuranceAgency, an insurance broker

All three are local businesses. Hugolify admin offers them for the organization, under Config › Structured data, and for each place. A site that defines its own hook replaces this list, see Structured data.

Design tokens

The design-system layer is authored as DTCG token files under assets/tokens/theme/ and compiled to custom properties with Style Dictionary:

npm install
npm run build

This writes assets/css/tokens/theme/**.css plus the assets/css/tokens/theme.css barrel, both committed: Hugo reads the generated CSS, never the JSON. Run it after touching any token file, and never edit the generated CSS by hand: the next build overwrites it.

These tools only build the tokens here, a site never needs them: hugo mod npm pack reads package.hugo.json, which lists no dependency, instead of package.json.

Releasing

Tags are v-prefixed (v2.0.0): a /v2 module path is only resolvable from a v2.x.y semver tag.

npx release-it

Documentation

Licensing

Hugolify is free for personal or commercial projects (MIT license)

About

Capitalify theme for Hugolify

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages