ELIXIR-Belgium / elixir-toolkit-theme

Flexible Jekyll theme using bootstrap 5 as CSS framework.
https://elixir-belgium.github.io/elixir-toolkit-theme/
MIT License
20 stars 16 forks source link

Add support for custom headings #212

Closed bedroesb closed 12 months ago

bedroesb commented 12 months ago

We introduce new variables in the config file that allows the user to edit the headings that are currently automatically generated based on the content and metadata of a page.

The defaults and variables are listed here:

theme_variables: 
  headings:
    related-pages: Related pages
    more-information-tiles: More information
    resource-table-all: Tools and resources on this page
    affiliation-tiles-page: Affiliations
    contributor-minitiles-page: Contributors

:rotating_light: BREAKING :rotating_light:

The variables to specify the min of headings that need to appear for the table of contents to show up and what type it has to pick up is changed from headers -> headings to be consistent and more correct.

theme_variables: 
  toc:
    min_headings: 2
    headings: 'h2'