Skip to content

Commit

Permalink
Changes to page.id for navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosk committed Mar 25, 2024
1 parent 7de07ab commit 3b3b095
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{%- assign page_paths = site.header_pages | default: default_paths -%}
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
{%- assign module_parts = page.url | split: "/" -%}
{%- assign module_name = module_parts[3] | default: "index" -%}
{%- assign module_name = page.id | default: page.title -%}
{%- assign navigation = site.data.navigation['modules'] -%}
{%- assign module = navigation[module_name] -%}
<div class="site-title">
Expand Down
2 changes: 2 additions & 0 deletions modules/collaboration/tmate.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
id: tmate
title: Party in the terminal
authors:
- Daniel Bosk <dbosk@kth.se>
---
Expand Down
2 changes: 2 additions & 0 deletions modules/editor/editor.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
id: editor
title: Editors
authors:
- Daniel Bosk <dbosk@kth.se>
---
Expand Down
2 changes: 2 additions & 0 deletions modules/git/git.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
id: git
title: Git
authors:
- Daniel Bosk <dbosk@kth.se>
- Ric Glassey <glassey@kth.se>
Expand Down
8 changes: 8 additions & 0 deletions modules/git_commits/commits.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
id: commits
title: Good commit messages
authors:
- Amanda Berg
- Daniel Bosk
---

# Good commit messages

This module tries to teach the core of good commit messages when working with
Expand Down
2 changes: 2 additions & 0 deletions modules/latex/latex.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
id: latex
title: Writing reports with LaTeX
authors:
- Daniel Bosk <dbosk@kth.se>
---
Expand Down
2 changes: 2 additions & 0 deletions modules/overview/overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
id: overview
title: Course overview
authors:
- Daniel Bosk <dbosk@kth.se>
---
Expand Down
2 changes: 2 additions & 0 deletions modules/ssh/guide.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
id: guide
title: Guide to accessing the terminal
authors:
- Daniel Bosk <dbosk@kth.se>
---
Expand Down
2 changes: 2 additions & 0 deletions modules/terminal/interfaces.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
id: interfaces
title: Briefly on interfaces
authors:
- Daniel Bosk <dbosk@kth.se>
---
Expand Down
2 changes: 2 additions & 0 deletions modules/terminal/terminal.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
id: terminal
title: The terminal
authors:
- Daniel Bosk <dbosk@kth.se>
---
Expand Down

0 comments on commit 3b3b095

Please sign in to comment.