From b4f53691ca9c2a048a12f1069b54e6b77a37b400 Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Thu, 8 Aug 2024 12:10:54 -0400 Subject: [PATCH] We can store content from external projects yay --- content/posts/my-first-post.md | 2 +- content/projects/HugoHost | 2 +- themes/kitsune-theme/LICENSE | 22 +++---------- themes/kitsune-theme/README.md | 12 ++++--- themes/kitsune-theme/hugo.toml | 23 ------------- .../layouts/shortcodes/image.html | 10 ++++++ .../layouts/shortcodes/listresources.html | 7 ++++ themes/kitsune-theme/theme.toml | 33 +++++-------------- 8 files changed, 41 insertions(+), 70 deletions(-) delete mode 100644 themes/kitsune-theme/hugo.toml create mode 100644 themes/kitsune-theme/layouts/shortcodes/image.html create mode 100644 themes/kitsune-theme/layouts/shortcodes/listresources.html diff --git a/content/posts/my-first-post.md b/content/posts/my-first-post.md index 0f57c1c..c07cef3 100644 --- a/content/posts/my-first-post.md +++ b/content/posts/my-first-post.md @@ -1,7 +1,7 @@ +++ title = 'My First Post' date = 2024-08-08T10:57:12-04:00 -draft = true +draft = false tags = ["hugo", "webcomics"] +++ diff --git a/content/projects/HugoHost b/content/projects/HugoHost index fe92e4a..0e875c2 160000 --- a/content/projects/HugoHost +++ b/content/projects/HugoHost @@ -1 +1 @@ -Subproject commit fe92e4a02e164c9df40644510cf54c22e612e1a0 +Subproject commit 0e875c2073c652039f612fe922f6bfff404d2e3a diff --git a/themes/kitsune-theme/LICENSE b/themes/kitsune-theme/LICENSE index 8aa2645..77f59ef 100644 --- a/themes/kitsune-theme/LICENSE +++ b/themes/kitsune-theme/LICENSE @@ -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 -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: +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +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. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -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. +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. \ No newline at end of file diff --git a/themes/kitsune-theme/README.md b/themes/kitsune-theme/README.md index 7cec74e..e2ed032 100644 --- a/themes/kitsune-theme/README.md +++ b/themes/kitsune-theme/README.md @@ -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. diff --git a/themes/kitsune-theme/hugo.toml b/themes/kitsune-theme/hugo.toml deleted file mode 100644 index 6c35bc4..0000000 --- a/themes/kitsune-theme/hugo.toml +++ /dev/null @@ -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" diff --git a/themes/kitsune-theme/layouts/shortcodes/image.html b/themes/kitsune-theme/layouts/shortcodes/image.html new file mode 100644 index 0000000..40a5ae3 --- /dev/null +++ b/themes/kitsune-theme/layouts/shortcodes/image.html @@ -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 }} +{{ $image.Title }} +{{ else }} + + +

Serverside shortcode Error, couldn't load {{ .Get 0 }}

+{{ end }} \ No newline at end of file diff --git a/themes/kitsune-theme/layouts/shortcodes/listresources.html b/themes/kitsune-theme/layouts/shortcodes/listresources.html new file mode 100644 index 0000000..98daeb2 --- /dev/null +++ b/themes/kitsune-theme/layouts/shortcodes/listresources.html @@ -0,0 +1,7 @@ +{{/* This custom shortcode lets me list all the resources available. Pretty cool yeah? */}} + + \ No newline at end of file diff --git a/themes/kitsune-theme/theme.toml b/themes/kitsune-theme/theme.toml index 3ba3164..e291afa 100644 --- a/themes/kitsune-theme/theme.toml +++ b/themes/kitsune-theme/theme.toml @@ -1,31 +1,16 @@ -name = 'Theme name' -license = 'MIT' -licenselink = 'https://github.com/owner/repo/LICENSE' -description = 'Theme description' +name = 'kitsune-theme' +license = 'BSD' +licenselink = 'https://git.kitsunehosting.net/Kenwood/kitsune-hosting/src/branch/main/themes/kitsune-theme/LICENSE' +description = 'The theme i use!' # 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 -tags = ['blog', 'company'] -features = ['some', 'awesome', 'features'] +tags = ['custom', 'kitsune'] +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] - name = 'Your name' - homepage = 'Your website' - -# If porting an existing theme -[original] - author = 'Name of original author' - homepage = 'Website of original author' - repo = 'https://github.com/owner/repo' +name = 'Snowsune' +homepage = 'https://kitsunehosting.net'