Compare commits
8 Commits
07f1b3ecfd
...
main
Author | SHA1 | Date |
---|---|---|
David Thurstenson | ca98192cfb | |
David Thurstenson | cbb2777114 | |
David Thurstenson | 2ed69e67b8 | |
David Thurstenson | 9ea510e106 | |
David Thurstenson | aed270edf2 | |
David Thurstenson | 85c51aea14 | |
David Thurstenson | 9ea466d5fb | |
David Thurstenson | c140f855d7 |
|
@ -1,36 +0,0 @@
|
||||||
name: github pages
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
||||||
path: risotto
|
|
||||||
|
|
||||||
- name: Setup Hugo
|
|
||||||
uses: peaceiris/actions-hugo@v2
|
|
||||||
with:
|
|
||||||
hugo-version: '0.85.0'
|
|
||||||
# extended: true
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
working-directory: ./risotto/exampleSite
|
|
||||||
run: hugo --minify --themesDir="../.." -t risotto
|
|
||||||
|
|
||||||
- name: Deploy
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
publish_dir: ./risotto/exampleSite/public
|
|
||||||
cname: risotto.joeroe.io
|
|
19
README.md
19
README.md
|
@ -1,26 +1,26 @@
|
||||||
# risotto
|
# Thurstylark Wiki Hugo Theme
|
||||||
|
|
||||||
risotto is a minimalist, responsive [hugo](https://gohugo.io) theme inspired by terminal ricing aesthetics.
|
The style and layout for [Thurstylark's Wiki](https://wiki.thurstylark.com/).
|
||||||
|
|
||||||
![Screenshot of the risotto theme](https://raw.githubusercontent.com/joeroe/risotto/master/images/screenshot.png)
|
A fork of [risotto](https://github.com/joeroe/risotto).
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
The easiest way to install the theme is to clone this repository into your site's `themes` directory:
|
The easiest way to install the theme is to clone this repository into your site's `themes` directory:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
git clone https://github.com/joeroe/risotto themes/risotto
|
git clone https://git.thurstylark.com/thurstylark/tlwiki-hugo-theme.git themes/tlwiki
|
||||||
```
|
```
|
||||||
|
|
||||||
If your site is already a git repository, you can add the theme as a submodule instead:
|
If your site is already a git repository, you can add the theme as a submodule instead:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
git submodule add https://github.com/joeroe/risotto.git themes/risotto
|
git submodule add https://git.thurstylark.com/thurstylark/tlwiki-hugo-theme.git themes/tlwiki
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configure
|
## Configure
|
||||||
|
|
||||||
To use the theme, add `theme = risotto` to your site's `config.toml` or `config.yaml`.
|
To use the theme, add `theme = tlwiki` to your site's `config.toml` or `config.yaml`.
|
||||||
|
|
||||||
See `exampleSite/config.toml` for the theme-specific parameters you need to add to your site's `config.toml` or `config.yaml` to configure the theme.
|
See `exampleSite/config.toml` for the theme-specific parameters you need to add to your site's `config.toml` or `config.yaml` to configure the theme.
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ See `exampleSite/config.toml` for the theme-specific parameters you need to add
|
||||||
If you installed the theme using `git clone`, pull the repository to get the latest version:
|
If you installed the theme using `git clone`, pull the repository to get the latest version:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd themes/risotto
|
cd themes/tlwiki
|
||||||
git pull
|
git pull
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -39,3 +39,8 @@ Or, if you added it as a git submodule:
|
||||||
git submodule update --remote
|
git submodule update --remote
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
See: [./LICENSE](./LICENSE)
|
||||||
|
|
||||||
|
TL;DR: MIT. go nuts.
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
baseURL = "https://risotto.joeroe.io"
|
baseURL = "https://wiki.thurstylark.com/"
|
||||||
theme = "risotto"
|
theme = "tlwiki"
|
||||||
title = "risotto demo"
|
title = "tlwiki demo"
|
||||||
author = "Joe Roe"
|
author = "Thurstylark"
|
||||||
copyright = "© 2021 Joe Roe"
|
copyright = "© 2021 Thurstylark"
|
||||||
paginate = 3
|
paginate = 3
|
||||||
languageCode = "en"
|
languageCode = "en"
|
||||||
DefaultContentLanguage = "en"
|
DefaultContentLanguage = "en"
|
||||||
|
@ -22,8 +22,8 @@ mode = "dark-mode"
|
||||||
|
|
||||||
# Sidebar: about/bio
|
# Sidebar: about/bio
|
||||||
[params.about]
|
[params.about]
|
||||||
title = "risotto"
|
title = "tlwiki"
|
||||||
description = "A [hugo](https://gohugo.io) theme inspired by terminal ricing."
|
description = "A [hugo](https://gohugo.io) theme for Thurstylark's Wiki."
|
||||||
logo = "images/rice.svg"
|
logo = "images/rice.svg"
|
||||||
|
|
||||||
# Sidebar: social links
|
# Sidebar: social links
|
||||||
|
@ -31,11 +31,6 @@ logo = "images/rice.svg"
|
||||||
# * FontAwesome 5 <https://fontawesome.com/> ('fas fa-' or 'fab-fa' for brands)
|
# * FontAwesome 5 <https://fontawesome.com/> ('fas fa-' or 'fab-fa' for brands)
|
||||||
# * Academicons <https://jpswalsh.github.io/academicons> ('ai ai-')
|
# * Academicons <https://jpswalsh.github.io/academicons> ('ai ai-')
|
||||||
|
|
||||||
[[params.socialLinks]]
|
|
||||||
icon = "fab fa-github"
|
|
||||||
title = "GitHub"
|
|
||||||
url = "https://github.com/joeroe/risotto"
|
|
||||||
|
|
||||||
[[params.socialLinks]]
|
[[params.socialLinks]]
|
||||||
icon = "fas fa-envelope"
|
icon = "fas fa-envelope"
|
||||||
title = "Email"
|
title = "Email"
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 181 KiB |
BIN
images/tn.png
BIN
images/tn.png
Binary file not shown.
Before Width: | Height: | Size: 154 KiB |
|
@ -1,12 +1,4 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h1 id="{{ .Title | urlize }}">{{ .Title | markdownify }}</h2>
|
{{ partial "title_and_desc.html" . }}
|
||||||
|
{{ partial "postlist.html" . }}
|
||||||
{{ .Content }}
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
{{ range .Pages }}
|
|
||||||
{{ .Render "li" }}
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -8,12 +8,3 @@
|
||||||
<footer class="content__footer"></footer>
|
<footer class="content__footer"></footer>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{define "aside" }}
|
|
||||||
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
|
|
||||||
{{ if or (.Params.author) (.Params.date) }}
|
|
||||||
<p>
|
|
||||||
{{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }}
|
|
||||||
{{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
|
|
||||||
</p>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ .Content }}
|
{{ partial "title_and_desc.html" . }}
|
||||||
|
{{ partial "postlist.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{{define "aside" }}
|
||||||
|
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
|
||||||
|
<p>
|
||||||
|
{{ if .Lastmod }}Last Modified: {{ .Lastmod.Format "2006-01-02" }}{{ end }}
|
||||||
|
</p>
|
||||||
|
{{ end }}
|
|
@ -1,2 +1 @@
|
||||||
<p class="copyright">{{ .Site.Copyright }}</p>
|
<p class="copyright">{{ .Site.Copyright }}</p>
|
||||||
<p class="advertisement">Powered by <a href="https://gohugo.io/">hugo</a> and <a href="https://github.com/joeroe/risotto">risotto</a>.</p>
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
{{ range .Pages }}
|
||||||
|
{{ with .Params.hide }}
|
||||||
|
{{ else }}
|
||||||
|
<article class="post">
|
||||||
|
<header class="post__header">
|
||||||
|
<h2><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<section class="post__summary">
|
||||||
|
{{ .Description }}
|
||||||
|
</section>
|
||||||
|
</article>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,4 @@
|
||||||
|
<header class="content__header">
|
||||||
|
<h1>{{ .Title | markdownify }}</h1>
|
||||||
|
{{ .Content }}
|
||||||
|
</header>
|
|
@ -0,0 +1,4 @@
|
||||||
|
<header class="content__header">
|
||||||
|
<h1>{{ .Title | markdownify }}</h1>
|
||||||
|
{{ .Description }}
|
||||||
|
</header>
|
|
@ -1,22 +0,0 @@
|
||||||
{{ define "main" }}
|
|
||||||
<header class="content__header">
|
|
||||||
<h1>{{ .Title | markdownify }}</h1>
|
|
||||||
{{ .Content }}
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{{ range .Pages }}
|
|
||||||
<article class="post">
|
|
||||||
<header class="post__header">
|
|
||||||
<h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
|
|
||||||
<p class="post__meta">
|
|
||||||
{{ .Params.author }},
|
|
||||||
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
|
|
||||||
</p>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<section class="post__summary">
|
|
||||||
{{ .Summary }}
|
|
||||||
</section>
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
15
theme.toml
15
theme.toml
|
@ -1,16 +1,15 @@
|
||||||
name = "risotto"
|
name = "tlwiki"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
licenselink = "https://github.com/joeroe/risotto/blob/master/LICENSE"
|
licenselink = "https://git.thurstylark.com/thurstylark/tlwiki-hugo-theme/src/branch/main/LICENSE"
|
||||||
description = "A minimalist, responsive theme inspired by terminal ricing aesthetics."
|
description = "The style and layout for Thurstylark's Wiki"
|
||||||
|
|
||||||
homepage = "https://github.com/joeroe/risotto"
|
homepage = "https://git.thurstylark.com/thurstylark/tlwiki-hugo-theme"
|
||||||
demosite = "https://risotto.joeroe.io"
|
demosite = "https://wiki.thurstylark.com/"
|
||||||
|
|
||||||
tags = ["responsive", "minimal", "dark mode"]
|
tags = ["responsive", "minimal", "dark mode"]
|
||||||
features = []
|
features = []
|
||||||
min_version = "0.41.0"
|
min_version = "0.41.0"
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = "Joe Roe"
|
name = "Thurstylark"
|
||||||
homepage = "https://joeroe.io"
|
homepage = "https://wiki.thurstylark.com/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue