divide into static and generated site parts

This commit is contained in:
Nycki 2023-10-13 13:39:10 -07:00
parent 46f38b617a
commit 3d7f197fcc
26 changed files with 46 additions and 10 deletions

1
.gitignore vendored
View file

@ -0,0 +1 @@
site

19
Makefile Normal file
View file

@ -0,0 +1,19 @@
all: static site/index-2.html
.PHONY: site static
site:
mkdir -p site
static: site
cp -r static/* site
site/index-2.html: src/index.md src/nav.html
pandoc src/index.md \
--standalone \
--section-divs \
--css style.css \
--no-highlight \
--include-before-body src/nav.html \
--from markdown+emoji \
-o site/index-2.html

View file

@ -1 +0,0 @@
/home/klay/code/mathdice

7
src/index.md Normal file
View file

@ -0,0 +1,7 @@
---
title: nycki.net
...
## Hello World
lorem ipsum dolor sit amet.

3
src/nav.html Normal file
View file

@ -0,0 +1,3 @@
<nav>
<a href="/">home</a>
</nav>

10
src/style.css Normal file
View file

@ -0,0 +1,10 @@
:root {
color-scheme: dark;
max-width: 100ch;
margin: auto;
padding: 1ch;
}
section.level2 {
border-top: 0.5ch solid;
}

View file

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

View file

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View file

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

1
static/mathdice Normal file
View file

@ -0,0 +1 @@
/home/klay/code/mathdice

View file

@ -1,14 +1,10 @@
body {
background-color: black;
max-width: 100ch;
margin: 1rem auto;
}
main {
:root {
font-family: sans-serif;
color: hotpink;
padding: 1rem;
padding: 2rem;
background-color: black;
max-width: 100ch;
margin: 0 auto;
}
h1 {