init for the hugo site

This commit is contained in:
magmaus3 2023-08-09 19:27:08 +02:00
commit 4a54106436
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251
16 changed files with 156 additions and 0 deletions

0
.hugo_build.lock Normal file
View file

6
archetypes/default.md Normal file
View file

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

View file

@ -0,0 +1,2 @@
Some commands might have documentation on the [Smashing Tech Wiki](https://antifandom.com/smashhitlab/wiki/List_of_Lua_Functions)

View file

@ -0,0 +1,10 @@
# `{{ cmd }}` {{ short_description }}
## Usage
{{ cmd }}(required, [optional]) <!-- type these in manually -->
<!--
optional arguments are written in square brackets
below you can add examples
--->

View file

@ -0,0 +1,2 @@
Some commands might have documentation on the [Smashing Tech Wiki](https://antifandom.com/smashhitlab/wiki/List_of_Lua_Functions)

View file

@ -0,0 +1,8 @@
# `mgCameraShake` used to visually shake camera
## Usage
```lua
mgCameraShake(amount)
```
`amount` should be an decimal value, for example `0.25`

3
content/_index.md Normal file
View file

@ -0,0 +1,3 @@
Welcome to the wiki!
It's unfinished, but hopefully it'll be!

3
hugo.toml Normal file
View file

@ -0,0 +1,3 @@
baseURL = 'http://example.org/'
languageCode = 'en-us'
title = 'Granny Smith Technical'

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/index.css" rel="stylesheet">
</head>
<body>
{{ block "main" . }}
content goes here
{{ end }}
</body>
</html>

View file

@ -0,0 +1,26 @@
{{ define "main" }}
<main>
<article>
<header>
<nav>
<a href="/">home</a>
<a href="..">go up</a>
</nav>
<h1>{{ .Title }}</h1>
<h2>{{ .Description }}</h2>
</header>
<!-- "{{ .Content }}" pulls from the markdown content of the corresponding _index.md -->
{{ .Content }}
</article>
<ul>
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
<li>
<a href="{{ .Permalink }}">
{{ if .Date }}{{ .Date.Format "2006-01-02" }} |{{ end }} {{ .Title }}
</a>
</li>
{{ end }}
</ul>
</main>
{{ end }}

View file

@ -0,0 +1,10 @@
{{ define "main" }}
<article>
<a href="..">go up</a>
<header>
<h1>{{ .Title }}</h1>
<h2>{{ .Description }}</h2>
</header>
{{ .Content }}
</article>
{{ end }}

View file

@ -0,0 +1,11 @@
{{ define "main" }}
<main>
<div>
<h1>{{ .Title }}</h1>
<!-- ranges through each of the content files associated with a particular taxonomy term and renders the summary.html content view -->
{{ range .Pages }}
{{ .Render "summary" }}
{{ end }}
</div>
</main>
{{ end }}

5
layouts/home.html Normal file
View file

@ -0,0 +1,5 @@
{{ define "main" }}
<main>
{{ .Content }}
</main>
{{ end }}

12
layouts/post.html Normal file
View file

@ -0,0 +1,12 @@
{{ define "main" }}
<article>
<aside>
<a href="..">Go up</a>
</aside>
<header>
<h1>{{ .Title }}</h1>
<h2>{{ .Description }}</h2>
</header>
{{ .Content }}
</article>
{{ end }}

View file

@ -0,0 +1,2 @@
<!-- raw html -->
{{.Inner}}

42
static/index.css Normal file
View file

@ -0,0 +1,42 @@
body {
background-color: #101012;
color: white;
font-family: monospace;
margin-top: 0;
}
nav {
display: flex;
border-bottom: 1px solid #1A1A1A;
box-shadow: 0px 5px 15px #121212;
}
nav a {
width: fit-content;
padding: 0.2em;
margin: 0em 1em;
border-radius: 0.1em;
transition: box-shadow 200ms cubic-bezier(0.19, 1, 0.22, 1), background-color 200ms cubic-bezier(0.19, 1, 0.22, 1);
}
nav a:hover {
box-shadow: 0px 0px 15px black;
background-color: #40404a;
}
a {
color: cyan;
text-decoration: inherit;
}
article {
max-width: 100%;
}
img {
width: 90%;
}
blockquote {
border-left: 2px solid gray;
padding-left: 1em;
}