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
|
||||
|
||||
The easiest way to install the theme is to clone this repository into your site's `themes` directory:
|
||||
|
||||
```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:
|
||||
|
||||
```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
|
||||
|
||||
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.
|
||||
|
||||
|
@ -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:
|
||||
|
||||
```shell
|
||||
cd themes/risotto
|
||||
cd themes/tlwiki
|
||||
git pull
|
||||
```
|
||||
|
||||
|
@ -39,3 +39,8 @@ Or, if you added it as a git submodule:
|
|||
git submodule update --remote
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
See: [./LICENSE](./LICENSE)
|
||||
|
||||
TL;DR: MIT. go nuts.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
baseURL = "https://risotto.joeroe.io"
|
||||
theme = "risotto"
|
||||
title = "risotto demo"
|
||||
author = "Joe Roe"
|
||||
copyright = "© 2021 Joe Roe"
|
||||
baseURL = "https://wiki.thurstylark.com/"
|
||||
theme = "tlwiki"
|
||||
title = "tlwiki demo"
|
||||
author = "Thurstylark"
|
||||
copyright = "© 2021 Thurstylark"
|
||||
paginate = 3
|
||||
languageCode = "en"
|
||||
DefaultContentLanguage = "en"
|
||||
|
@ -22,8 +22,8 @@ mode = "dark-mode"
|
|||
|
||||
# Sidebar: about/bio
|
||||
[params.about]
|
||||
title = "risotto"
|
||||
description = "A [hugo](https://gohugo.io) theme inspired by terminal ricing."
|
||||
title = "tlwiki"
|
||||
description = "A [hugo](https://gohugo.io) theme for Thurstylark's Wiki."
|
||||
logo = "images/rice.svg"
|
||||
|
||||
# Sidebar: social links
|
||||
|
@ -31,11 +31,6 @@ logo = "images/rice.svg"
|
|||
# * FontAwesome 5 <https://fontawesome.com/> ('fas fa-' or 'fab-fa' for brands)
|
||||
# * Academicons <https://jpswalsh.github.io/academicons> ('ai ai-')
|
||||
|
||||
[[params.socialLinks]]
|
||||
icon = "fab fa-github"
|
||||
title = "GitHub"
|
||||
url = "https://github.com/joeroe/risotto"
|
||||
|
||||
[[params.socialLinks]]
|
||||
icon = "fas fa-envelope"
|
||||
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" }}
|
||||
<h1 id="{{ .Title | urlize }}">{{ .Title | markdownify }}</h2>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
{{ .Render "li" }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ partial "title_and_desc.html" . }}
|
||||
{{ partial "postlist.html" . }}
|
||||
{{ end }}
|
||||
|
|
|
@ -8,12 +8,3 @@
|
|||
<footer class="content__footer"></footer>
|
||||
{{ 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" }}
|
||||
{{ .Content }}
|
||||
{{ partial "title_and_desc.html" . }}
|
||||
{{ partial "postlist.html" . }}
|
||||
{{ 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="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"
|
||||
licenselink = "https://github.com/joeroe/risotto/blob/master/LICENSE"
|
||||
description = "A minimalist, responsive theme inspired by terminal ricing aesthetics."
|
||||
licenselink = "https://git.thurstylark.com/thurstylark/tlwiki-hugo-theme/src/branch/main/LICENSE"
|
||||
description = "The style and layout for Thurstylark's Wiki"
|
||||
|
||||
homepage = "https://github.com/joeroe/risotto"
|
||||
demosite = "https://risotto.joeroe.io"
|
||||
homepage = "https://git.thurstylark.com/thurstylark/tlwiki-hugo-theme"
|
||||
demosite = "https://wiki.thurstylark.com/"
|
||||
|
||||
tags = ["responsive", "minimal", "dark mode"]
|
||||
features = []
|
||||
min_version = "0.41.0"
|
||||
|
||||
[author]
|
||||
name = "Joe Roe"
|
||||
homepage = "https://joeroe.io"
|
||||
|
||||
name = "Thurstylark"
|
||||
homepage = "https://wiki.thurstylark.com/"
|
||||
|
|
Loading…
Reference in New Issue