Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

divnix/styx-theme-showcase

 
 

Repository files navigation

Showcase theme

This is a theme for the Styx static site generator meant to show most of its functionalities with a basic design.

This theme is mostly using site.nix and only provide a very thin configuration interface.

Preview

Preview

Features

Navbar

The contents of data.navbar are automatically used to populate the navbar.

data.navbar should be a list of pages or sets with the href and title attribute:

  data.navbar = [
    pages.about
    (head pages.postsArchive)
    (pages.feed // { navbarTitle = "RSS"; })
    { title = "Styx"; url = "https://divnix.github.io/styx-site/"; }
  ];

Breadcrumbs

If a page attribute set has a breadcrumb attribute, it will be used to generate breadcrumbs for this page.

pages.about = {
  ...
  breadcrumbs = [ (lib.head index) ];
};

breadcrumbs must be a list of pages.

Note: It is possible to set a breadcrumb title different to the page title by adding a breadcrumbTitle attribute to the page.

pages.index = {
  ...
  breadcrumbTitle = templates.icon.font-awesome "home";
};

About

Showcase theme for styx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 86.9%
  • CSS 13.1%