commit 9f2b6444191aeff30ab5fb0ea86591869fecc572 Author: Yuki Joou Date: Mon May 29 23:37:18 2023 +0200 Initial commit: Added current work! diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4b387a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.hugo_build.lock +public/ diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..ba6464c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,13 @@ +{ + "tabWidth": 4, + "useTabs": true, + "proseWrap": "always", + "overrides": [ + { + "files": ["*.html"], + "options": { + "parser": "go-template" + } + } + ] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..650608b --- /dev/null +++ b/README.md @@ -0,0 +1,74 @@ +# the kemonomimi blog + +This is the source for the kemonomimi blog. This repo contains both the Hugo +site, and the contents on the site. + +## Local setup + +You'll need to install [gohugo](https://gohugo.io) from your distro's repos. + +Once you have that, start a test server with + +```console + $ hugo serve --bind 0.0.0.0 -D +``` + +To build the website, just run + +```console + $ hugo +``` + +and you'll find the output in `public/` + +## Adding content + +To create a blog post run: + +```console + $ hugo new blog-name/post-name.md +``` + +Then, edit `content/blog-name/post-name.md` in your favourite editor! + +## Creating a new blog + +Create a folder for the blog + +```console + $ mkdir content/blog-name +``` + +Create an index for the blog + +```console + $ cat > content/blog-name/_index.md << EOF + --- + title: "Your blog's name" + authors: [ "name here" ] + --- + + This is a blog introduction. + EOF +``` + +The home page currently doesn't auto-populate blogs, so you'll have to edit +`content/_index.md` to add your name to the index, and +`layouts/_default/baseof.html` to add a link in the common header bar + +You can now add blog posts and they'll automatically populate your blog's page. + +## Editing the template(s) + +All the files related to the template are found in `layouts/_default`. + +* `layouts/_default/baseof.html` is the common base used for all pages +* `layouts/_default/list.html` is the layout used for the blogs' home pages, + that contain the blog post list +* `layouts/_default/single.html` is the layout used for blog posts + +There is also `layouts/index.html` that controls the layout of the home page + +All those templates are filled with content from the `content/` folder! + +The common CSS file can be found at `static/style.css` diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..3cfddc3 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,7 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +authors: [] +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..2c76e6b --- /dev/null +++ b/config.toml @@ -0,0 +1,3 @@ +baseURL = 'https://blog.kemonomimi.gay/' +languageCode = 'en-us' +title = 'blog.kemonomimi.gay' diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..5e08fc6 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,29 @@ +--- +title: "Home" +url: /posts/abc.html +--- + +Welcome to our silly little blog! We make posts about some of our special +interests, and other things we like! +We're still working on making this place work, so please don't mind the few +issues you'll encounter, and enjoy the content :D! + +We're working on bringing more features, like RSS support, so that you can +follow us from your favourite news reader! +Stay tuned for more, and in the meantime, don't forget to bookmark our site :) + +# The people here + +- [Yuki](./yukijoou/) \(she/her\) is a French foreign languages student who + likes computers and tech, as well as natural languages, linguistics, and + philosophy. + She blogs about those topics, and likes to go on rants about society and + thought experiments. *Reader discretion is advised, as some content may be + related to terrible real world events, and treat of touchy subjects \(all + content is appropriately CW'ed\).* + +# Sources + +The content and the blog setup \(based on [Hugo](https://gohugo.io/)\) is +available at [kemonomimi/blog](https://git.kemonomimi.gay/kemonomimi/blog). +Feel free to take a look and steal some of it for your own blog `^_^` diff --git a/content/yukijoou/_index.md b/content/yukijoou/_index.md new file mode 100644 index 0000000..347b957 --- /dev/null +++ b/content/yukijoou/_index.md @@ -0,0 +1,49 @@ +--- +title: "Yuki's blog" +authors: [ "Yuki" ] +--- + +Hello, I'm Yuki! Welcome to my blog \:\) +I'm an autistic trans girl and like to go on tirades about subjects that I'm +passionate about. This blog is an outlet for me to share things about topics I +like! + +# What this blog is about + +*I'm still working on writing content, so this place is still kind of empty, but +I hope you still enjoy the little things I've made* `^_^` + +My two main special interests are computers and languages. I study foreign +languages at a university level, and spend most of my free time on my computer. +I'm by no means what one would call "qualified" to talk about either of these +topics, but due to the long time I've spent in communities related to those, +and the time I've spent making things with computers or learning languages, +I've gained a large amount of possibly incorrect knowledge that I'll be sharing, +much to the dismay of the experts in the rooms + +*On that note, if you wish to correct anything I may have gotten wrong, feel +free to get in touch with the links below* `^_^` + +On top of what I've mentioned, I've been getting a growing interest for +philosophy and thinking about the world. As such, I will likely start blogging +about that at some point. +As those topics may be sensitive for some, due to being closely related to the +current state of the world, I will set up a content warning system, so that you +don't have to read things that make you sad. + +Overall, I want this place to be enjoyable for all, and in case you have any +issue with the content on here, feel free to let me know by contacting me +through my website! + +# Other online content + +As you may already know I mostly run the website +[kemonomimi.gay](https://kemonomimi.gay) -- I'm the so-called "Webmistress". +As such, you can find my website at +[yukijoou.kemonomimi.gay](https://yukijoou.kemonomimi.gay)! There, you can find +up-to-date links to my other social media and means of contacting me. + +--- + +I hope you enjoy the content here, and that you find some of it interesting! On +that note, I shall go write some articles now \:D diff --git a/content/yukijoou/welcome-to-the-blog.md b/content/yukijoou/welcome-to-the-blog.md new file mode 100644 index 0000000..dfb68d2 --- /dev/null +++ b/content/yukijoou/welcome-to-the-blog.md @@ -0,0 +1,38 @@ +--- +title: "Welcome to my blog" +authors: [ "Yuki" ] +description: "Why would you even have a blog in 2023!?" +date: 2023-05-29T22:00:00+02:00 +--- + +I've been feeling like writing things for a long time, so I guess it's finally +time I start a blog! For the past few days, me \& my friends have been setting +up this website thing at [kemonomimi.gay](https://kemonomimi.gay), and I thought +this would be a good time to start a blog service too! + +And after like two days of setting up [Hugo](https://gohugo.io/), I'm finally +done, and this silly idea can be released to the world! +There is still much work to be done, and features to add \(I really want RSS +support!\), but I consider it good enough to be released to the world. + +Of course, I don't expect to hit a thousand readers or anything like that -- I +honestly couldn't care less about the number of people seeing this -- but I +think it's at the very least a fun experiment! + +I'm honestly really looking forward to writing more things, and having a place +to point people to to explain my opinion on things, or to help them understand +some topics. And who knows, maybe I'll become a *fediverse sensation* like +[maia arson crimew](https://crimew.gay/maia) some day..! + +I honestly don't have much more to say for this first article -- to be honest, +it's more of a test for the blog system than anything. But this will stay up +for history's sake, as the first post on the blog. As a wise man once said[^1], + +> [...] one day, we'll look back at where we started, and be amazed by how far +> we've come. + +Anyways, I hope to write again soon about more interesting topics! + + +[^1]: Technoblade, +[the hypixel skyblock experience](https://youtu.be/pPmo21gkETU), 2019-06-15 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..7566e91 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,36 @@ + + + + + + + {{ block "title" . }} + {{ .Site.Title }} + {{ end }} + + {{ $css := "style.css" | relURL }} + + {{ block "header" . }} + {{ end }} + + +
+

the kemonomimi blog

+

+ nya~! we are gay and proud of it! +

+ +
+ +
+ {{ block "main" . }} + {{ end }} +
+ + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..1a2ce34 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,35 @@ +{{ define "main" }} +
+

{{ .Title }}

+ +
+ {{ .Content }} +
+ +

+ {{ range $.Param "authors" }} + {{ . }} + {{ end }} +

+
+ +
+ +

Posts

+ +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..7e31f35 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,28 @@ +{{ define "main" }} +
+

+ {{ .Title }} +

+ +

+ {{ .Description }} +

+ +

+ {{ $dateTime := .PublishDate.Format "2006-01-02" }} + +

+ +
+ {{ .Content }} +
+ +

+ {{ range $.Param "authors" }} + {{ . }} + {{ end }} +

+
+{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..9428b62 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,8 @@ +{{ define "main" }} +
+

{{ .Title }}

+
+ {{ .Content }} +
+
+{{ end }} diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..c841bd7 --- /dev/null +++ b/static/style.css @@ -0,0 +1,106 @@ +* { + --background-color: #222222; + --foreground-color: #eaeaea; + --header-background-color: #444455; + --content-background-color: #554455; + --link-color: #aaaaff; + --blockquote-bar: #cccccc; +} + +body { + display: flex; + flex-direction: column; + align-items: center; + + background-color: var(--background-color); + color: var(--foreground-color); +} + +header { + max-width: 30rem; + padding: 2rem; + margin-bottom: 2rem; + text-align: center; + border-radius: 5px; + + background-color: var(--header-background-color); +} + +header h1 { + font-weight: normal; + text-decoration: solid underline; +} + +header p.subtitle { + text-align: center; + margin-bottom: 0; +} + +main { + border-radius: 5px; + max-width: 50rem; + padding: 2rem; + + background-color: var(--content-background-color); +} + +main > article > h1 { + text-align: center; + font-size: 24pt; + margin-top: 0; +} + +p { + text-align: justify; +} + +p.subtitle { + margin-top: 0; + margin-bottom: 32px; + font-style: italic; +} + +p.authors { + text-align: right; +} + +p.authors::before { + content: "—"; +} + +a { + color: var(--link-color); +} + +ul#menubar { + width: 100%; + margin: 0; + padding: 0; + margin-top: 1rem; + + display: flex; + justify-content: space-evenly; + flex-wrap: wrap; +} + +ul#menubar li { + list-style: none; +} + +blockquote { + border-left: 3px solid var(--blockquote-bar); + padding-left: 1rem; + margin-left: 1.5rem; +} + +blockquote p::before { + content: "\201C"; +} + +blockquote p::after { + content: "\201D"; +} + +p.publication-time { + text-align: right; +}