Skip to content

Commit c36309e

Browse files
committed
hugo: render site navigation using sections
Signed-off-by: David Karlsson <[email protected]>
1 parent 135870f commit c36309e

File tree

11 files changed

+82
-2599
lines changed

11 files changed

+82
-2599
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ The website is built using [Hugo](https://gohugo.io/). The content is primarily
2424
Markdown files in the `/content` directory of this repository (with a few
2525
exceptions, see [Content not edited here](#content-not-edited-here)).
2626

27-
The structure of the sidebar navigation on the site is defined in
28-
[`/data/toc.yaml`](./data/toc.yaml). To rename or change the location of a page
29-
in the left-hand navigation, edit the `toc.yaml` file.
27+
The structure of the sidebar navigation on the site is defined by the site's
28+
section hierarchy in the `contents` directory. The titles of the pages are
29+
defined in the front matter of the Markdown files. You can use `title` and
30+
`linkTitle` to define the title of the page. `title` is used for the page
31+
title, and `linkTitle` is used for the sidebar title. If `linkTitle` is not
32+
defined, the `title` is used for both.
3033

3134
You must fork this repository to create a pull request to propose changes. For more details, see [Local setup](#local-setup).
3235

assets/css/global.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@
3131
@apply dark:hue-rotate-180 dark:invert dark:filter;
3232
}
3333

34-
.sidebar-hover {
35-
@apply hover:bg-gray-light-200 hover:dark:bg-gray-dark-200;
36-
}
37-
38-
.sidebar-underline {
39-
@apply underline decoration-blue-light decoration-4 underline-offset-4 dark:decoration-blue-dark;
40-
}
41-
4234
.bg-pattern-blue {
4335
background-color: theme(colors.white / 50%);
4436
background-image: url('/assets/images/bg-pattern-blue.webp');

assets/js/src/sidebar.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)