diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index 7e216a4..7e96c87 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -35,6 +35,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + - name: Install NPM dependencies + run: cd scripts && npm ci + - name: Run Download script + run: cd scripts && npm run download - name: Setup Ruby uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0 with: diff --git a/Gemfile b/Gemfile index 9131596..c4dc205 100644 --- a/Gemfile +++ b/Gemfile @@ -7,3 +7,4 @@ gem 'kramdown' gem 'rouge' gem 'jekyll-toc' gem "webrick", "~> 1.8" +gem 'jekyll-optional-front-matter' diff --git a/_config.yml b/_config.yml index 78764c5..e58e7a1 100644 --- a/_config.yml +++ b/_config.yml @@ -11,8 +11,8 @@ description: > # this means to ignore newlines until "baseurl:" Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description. -baseurl: "/Documentation" # the subpath of your site, e.g. /blog -url: "https://openscd.github.io" # the base hostname & protocol for your site +#baseurl: "/Documentation" # the subpath of your site, e.g. /blog +#url: "https://openscd.github.io" # the base hostname & protocol for your site collections_dir: collections # Markdown settings @@ -27,7 +27,7 @@ toc: ordered_list: false no_toc_section_class: no_toc_section list_id: toc - list_class: section-nav + list_class: nav--toc sublist_class: '' item_class: toc-entry item_prefix: toc- @@ -37,6 +37,12 @@ defaults: path: "assets/images" values: image: true + - scope: + path: "" + values: + layout: "default" + cover: "home" + # Sass settings sass: @@ -62,3 +68,4 @@ plugins: - jekyll-feed - jekyll-sitemap - jekyll-toc + - jekyll-optional-front-matter diff --git a/_includes/head.html b/_includes/head.html index 0b7f0cb..ed5cfc6 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,7 +2,6 @@ - {% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %} diff --git a/_includes/header.html b/_includes/header.html index 3c0e30e..fe81877 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -26,8 +26,8 @@

  • - - Sub Item 3 + + Glossary
  • diff --git a/_layouts/guide.html b/_layouts/guide.html index 2a4931b..f8393a9 100644 --- a/_layouts/guide.html +++ b/_layouts/guide.html @@ -2,24 +2,39 @@ {% include head.html %} + + {% include header.html %} -
    +