init for the hugo site
This commit is contained in:
commit
4a54106436
16 changed files with 156 additions and 0 deletions
0
.hugo_build.lock
Normal file
0
.hugo_build.lock
Normal file
6
archetypes/default.md
Normal file
6
archetypes/default.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
---
|
||||
|
2
content/LuaFunctions/_index.md
Normal file
2
content/LuaFunctions/_index.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
Some commands might have documentation on the [Smashing Tech Wiki](https://antifandom.com/smashhitlab/wiki/List_of_Lua_Functions)
|
||||
|
10
content/LuaFunctions/_template.md
Normal file
10
content/LuaFunctions/_template.md
Normal 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
|
||||
--->
|
2
content/LuaFunctions/index.md
Normal file
2
content/LuaFunctions/index.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
Some commands might have documentation on the [Smashing Tech Wiki](https://antifandom.com/smashhitlab/wiki/List_of_Lua_Functions)
|
||||
|
8
content/LuaFunctions/mgCameraShake.md
Normal file
8
content/LuaFunctions/mgCameraShake.md
Normal 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
3
content/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Welcome to the wiki!
|
||||
|
||||
It's unfinished, but hopefully it'll be!
|
3
hugo.toml
Normal file
3
hugo.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
baseURL = 'http://example.org/'
|
||||
languageCode = 'en-us'
|
||||
title = 'Granny Smith Technical'
|
14
layouts/_default/baseof.html
Normal file
14
layouts/_default/baseof.html
Normal 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>
|
26
layouts/_default/list.html
Normal file
26
layouts/_default/list.html
Normal 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 }}
|
10
layouts/_default/single.html
Normal file
10
layouts/_default/single.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ define "main" }}
|
||||
<article>
|
||||
<a href="..">go up</a>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h2>{{ .Description }}</h2>
|
||||
</header>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
11
layouts/_default/taxonomy.html
Normal file
11
layouts/_default/taxonomy.html
Normal 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
5
layouts/home.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
{{ .Content }}
|
||||
</main>
|
||||
{{ end }}
|
12
layouts/post.html
Normal file
12
layouts/post.html
Normal 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 }}
|
2
layouts/shortcodes/rawhtml.html
Normal file
2
layouts/shortcodes/rawhtml.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<!-- raw html -->
|
||||
{{.Inner}}
|
42
static/index.css
Normal file
42
static/index.css
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue