Skip to content

Commit

Permalink
Move to New Theme
Browse files Browse the repository at this point in the history
  • Loading branch information
russfeld committed Jul 7, 2022
1 parent d45129c commit e788ccc
Show file tree
Hide file tree
Showing 77 changed files with 1,791 additions and 677 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
uses: Ilshidur/action-discord@master

- uses: actions/checkout@v3
with:
submodules: recursive

- name: Update theme
run: git submodule update --init --recursive
Expand Down
6 changes: 6 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
baseURL = "https://ksucs-hugo.russfeld.me"
languageCode = "en-us"
title = "K-State CS Hugo Framework"
# This displays last edited information at bottom of page
enableGitInfo = true

# Change the default theme to be use when building the site with Hugo
theme = ["hugo-theme-relearn", "plausible-hugo"]
Expand Down Expand Up @@ -82,6 +84,10 @@ theme = ["hugo-theme-relearn", "plausible-hugo"]
# If a single page can contain content in multiple languages, add those here
additionalContentLanguage = [ "en" ]

# [x] russfeld
# Custom parameters
commitURL = "https://github.com/russfeld/ksucs-hugo/commit/"

[markup]
[markup.highlight]
# if set to `guessSyntax = true`, there will be no unstyled code even if no language
Expand Down
1 change: 0 additions & 1 deletion content/0-basic-content/0-0-subchapter/01-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Simple Page"
pre: "0.1. "
weight: 10
date: 2018-08-24T10:53:26-05:00
---

This is a simple Hugo page. It supports all Markdown formatting.
1 change: 0 additions & 1 deletion content/0-basic-content/0-0-subchapter/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
+++
title = "Section"
date = 2018-08-24T10:53:05-05:00
weight = 5
chapter = true
pre = "<b>0. </b>"
Expand Down
1 change: 0 additions & 1 deletion content/0-basic-content/01-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Simple Page"
pre: "1. "
weight: 10
date: 2018-08-24T10:53:26-05:00
---

This is a simple Hugo page. It supports all Markdown formatting.
7 changes: 3 additions & 4 deletions content/0-basic-content/02-reveal-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Reveal.js Example"
pre: "2. "
weight: 20
date: 2018-08-24T10:53:26-05:00
---

### Resources
Expand All @@ -11,11 +10,11 @@ date: 2018-08-24T10:53:26-05:00

### Info

This theme includes a special template for developing presentations using [Reveal.js](https://github.com/hakimel/reveal.js/).
This theme includes a special template for developing presentations using [Reveal.js](https://revealjs.com/).

To do this, there are a few steps:

1. Create a markdown file with the `.md` file extension
1. Create an html file with the `.html` file extension
2. Use the following frontmatter:

```yaml
Expand All @@ -25,7 +24,7 @@ hidden: true
---
```

In that markdown file, write the contents of the Reveal.js presentation. Each slide should be contained in a `<section>` tag.
In that file, write the contents of the Reveal.js presentation. Each slide should be contained in a `<section>` tag.

The contents of each slide is simply HTML, and pretty much any standard HTML tag can be used. Custom CSS can also be added via the `style` attribute on individual elements.

Expand Down
1 change: 0 additions & 1 deletion content/0-basic-content/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
+++
title = "Basic Content"
date = 2018-08-24T10:53:05-05:00
weight = 5
chapter = true
pre = "<b>0. </b>"
Expand Down
1 change: 0 additions & 1 deletion content/1-structures/01-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Simple Page"
pre: "1. "
weight: 10
date: 2018-08-24T10:53:26-05:00
---

This is a simple Hugo page. It supports all Markdown formatting.
1 change: 0 additions & 1 deletion content/1-structures/02-leaf-bundle/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Leaf Page"
pre: "2. "
weight: 20
date: 2018-08-24T10:53:26-05:00
---

This is a [leaf bundle](https://gohugo.io/content-management/page-bundles/). It is a folder with a file named `index.md` without an underscore. Other files under this folder are accessible to the page, but other HTML/Markdown pages will not be rendered in the output.
1 change: 0 additions & 1 deletion content/1-structures/02-leaf-bundle/no-render.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Not Rendered"
pre: "2. "
weight: 20
date: 2018-08-24T10:53:26-05:00
---

This page is not included in the output since it is part of a leaf bundle.
1 change: 0 additions & 1 deletion content/1-structures/03-branch-bundle/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Branch Bundle"
pre: "3. "
weight: 30
date: 2018-08-24T10:53:26-05:00
---

This is a [branch bundle](https://gohugo.io/content-management/page-bundles/). It is a folder with a file named `_index.md` including the underscore. Other files under this folder are rendered like any other content folder.
1 change: 0 additions & 1 deletion content/1-structures/03-branch-bundle/render.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Rendered"
pre: "3.1 "
weight: 20
date: 2018-08-24T10:53:26-05:00
---

This page is included in the output since it is a branch bundle.
1 change: 0 additions & 1 deletion content/1-structures/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
+++
title = "Advanced Structures"
date = 2018-08-24T10:53:05-05:00
weight = 15
chapter = true
pre = "<b>1. </b>"
Expand Down
3 changes: 1 addition & 2 deletions content/2-patterns/01-previous-versions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
title: "Previous Versions"
pre: "1. "
weight: 10
date: 2018-08-24T10:53:26-05:00
---

This is a pattern for managing previous versions of a page. It uses a [branch bundle](https://gohugo.io/content-management/page-bundles/) combined with a hidden folder and the [children](https://learn.netlify.app/en/shortcodes/children/) shortcode.
This is a pattern for managing previous versions of a page. It uses a [branch bundle](https://gohugo.io/content-management/page-bundles/) combined with a hidden folder and the [children](https://mcshelby.github.io/hugo-theme-relearn/shortcodes/children/) shortcode.

This page would be the current version of the page.

Expand Down
2 changes: 1 addition & 1 deletion content/2-patterns/01-previous-versions/old/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title = "Previous Versions"
hidden = true
+++

This is a hidden branch bundle due to the `hidden = true` in the frontmatter. It hides these pages from the front menu, but they are otherwise accessible. Below, we use the [children](https://learn.netlify.app/en/shortcodes/children/) shortcode to list all of the contents of this branch bundle.
This is a hidden branch bundle due to the `hidden = true` in the frontmatter. It hides these pages from the front menu, but they are otherwise accessible. Below, we use the [children](https://mcshelby.github.io/hugo-theme-relearn/shortcodes/children/) shortcode to list all of the contents of this branch bundle.

Previous Versions of this page:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Old Version 1"
pre: "1. "
weight: 10
date: 2018-08-24T10:53:26-05:00
---

This is an older version of the page.
1 change: 0 additions & 1 deletion content/2-patterns/02-video-content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Video Content"
pre: "2. "
weight: 20
date: 2018-08-24T10:53:26-05:00
---

This is a pattern for managing video content related to a page. It uses a [branch bundle](https://gohugo.io/content-management/page-bundles/) combined with a hidden folder.
Expand Down
1 change: 0 additions & 1 deletion content/2-patterns/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
+++
title = "Structural Patterns"
date = 2018-08-24T10:53:05-05:00
weight = 20
chapter = true
pre = "<b>2. </b>"
Expand Down
9 changes: 7 additions & 2 deletions content/3-markdown/01-frontmatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
title: "Frontmatter"
pre: "1. "
weight: 10
date: 2018-08-24T10:53:26-05:00
---

{{% notice note %}}

This content details additions to the the original version in the [Hugo Theme Learn Documentation](https://learn.netlify.app/en/cont/pages/#front-matter-configuration).
This content details additions to the the original version in the [Hugo Relearn Theme Documentation](https://mcshelby.github.io/hugo-theme-relearn/cont/pages/#frontmatter-configuration).

{{% /notice %}}

## Front Matter configuration

<!-- TODO Deprecated?
The following items are unique to this theme.
```toml
Expand All @@ -24,6 +25,10 @@ section = false
The **section** item tells Hugo to use a slightly different CSS layout on the rendered page (similar to a **chapter** but with different text formatting).
-->

Instead of using `LastModifierDisplayName` and `LastModifierEmail`, this site is instead configured to use [Hugo Git Info Variables](https://gohugo.io/variables/git/) to pull that content from the git repository storing this website.

### Reveal.js Slides

For Reveal.js slides, the frontmatter is as follows:
Expand Down

0 comments on commit e788ccc

Please sign in to comment.