Skip to content

About

Architectify theme for Hugolify

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

architectify-theme

Install

Edit config/_default/module.yaml to install the architectify-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: its mounts have to shadow theirs.

imports:
  - path: github.com/uncinq/architectify-theme/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/uncinq/architectify-theme
  - path: github.com/hugolify/hugolify-theme

Structured data

schema.org has no type for an architect, so the theme adds none to the generic ones of hugolify-theme. A firm takes LocalBusiness, in Hugolify admin under Config › Structured data:

# data/schema.yml
organization:
  type: LocalBusiness

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

Architectify theme for Hugolify

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages