We can store content from external projects yay

This commit is contained in:
Kenwood 2024-08-08 12:10:54 -04:00
parent 9557d90560
commit b4f53691ca
8 changed files with 41 additions and 70 deletions

View File

@ -1,7 +1,7 @@
+++ +++
title = 'My First Post' title = 'My First Post'
date = 2024-08-08T10:57:12-04:00 date = 2024-08-08T10:57:12-04:00
draft = true draft = false
tags = ["hugo", "webcomics"] tags = ["hugo", "webcomics"]
+++ +++

@ -1 +1 @@
Subproject commit fe92e4a02e164c9df40644510cf54c22e612e1a0 Subproject commit 0e875c2073c652039f612fe922f6bfff404d2e3a

View File

@ -1,21 +1,9 @@
MIT License Copyright 2024 Kitsune Hosting
Copyright (c) [year] [fullname] Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Permission is hereby granted, free of charge, to any person obtaining a copy 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,7 +1,11 @@
# Theme Name # kitsune-theme
## Features The theme I use on my site!
## Installation Lots of inspiration taken from [here](https://retrolog.io/blog/creating-a-hugo-theme-from-scratch/) this was my
jumping off spot. Thanks!
## Configuration Theres some stuff in some places, I'm mostly documenting this for myself.
git submodules in `static/css` and `static/js`. I hate to rely on external internet connections so I'm really gonna
focus on making everything downloaded from my site delivered directly.

View File

@ -1,23 +0,0 @@
baseURL = 'https://example.org/'
languageCode = 'en-US'
title = 'My New Hugo Site'
[[menus.main]]
name = 'Home'
pageRef = '/'
weight = 10
[[menus.main]]
name = 'Posts'
pageRef = '/posts'
weight = 20
[[menus.main]]
name = 'Tags'
pageRef = '/tags'
weight = 30
[module]
[module.hugoVersion]
extended = false
min = "0.116.0"

View File

@ -0,0 +1,10 @@
{{/* This never really worked but its cool to be able to make shortcodes like this for use in MD */}}
{{ $image := .Page.Resources.GetMatch (printf "*%s" (.Get 0)) }}
{{ if $image }}
<img src="{{ $image.RelPermalink }}" alt="{{ $image.Title }}">
{{ else }}
<!-- Would be cool to make an error-box for stuff like this in css -->
<p>Serverside shortcode Error, couldn't load {{ .Get 0 }}</p>
{{ end }}

View File

@ -0,0 +1,7 @@
{{/* This custom shortcode lets me list all the resources available. Pretty cool yeah? */}}
<ul>
{{ range .Page.Resources }}
<li>{{ .RelPermalink }} - {{ .ResourceType }} - {{ .Name }}</li>
{{ end }}
</ul>

View File

@ -1,31 +1,16 @@
name = 'Theme name' name = 'kitsune-theme'
license = 'MIT' license = 'BSD'
licenselink = 'https://github.com/owner/repo/LICENSE' licenselink = 'https://git.kitsunehosting.net/Kenwood/kitsune-hosting/src/branch/main/themes/kitsune-theme/LICENSE'
description = 'Theme description' description = 'The theme i use!'
# The home page of the theme, where the source can be found # The home page of the theme, where the source can be found
homepage = 'https://github.com/owner/repo' homepage = 'https://git.kitsunehosting.net/Kenwood/kitsune-hosting'
# If you have a running demo of the theme
demosite = 'https://owner.github.io/repo'
# Taxonomy terms # Taxonomy terms
tags = ['blog', 'company'] tags = ['custom', 'kitsune']
features = ['some', 'awesome', 'features'] features = ['vintage']
# If the theme has multiple authors
authors = [
{name = 'Name of author', homepage = 'Website of author'},
{name = 'Name of author', homepage = 'Website of author'}
]
# If the theme has a single author
[author] [author]
name = 'Your name' name = 'Snowsune'
homepage = 'Your website' homepage = 'https://kitsunehosting.net'
# If porting an existing theme
[original]
author = 'Name of original author'
homepage = 'Website of original author'
repo = 'https://github.com/owner/repo'