diff --git a/desegnoj/.gitignore b/desegnoj/.gitignore new file mode 100644 index 0000000..3eec6c0 --- /dev/null +++ b/desegnoj/.gitignore @@ -0,0 +1,2 @@ +resources +public diff --git a/desegnoj/archetypes/default.md b/desegnoj/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/desegnoj/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/desegnoj/assets/main.scss b/desegnoj/assets/main.scss new file mode 100644 index 0000000..7a928fe --- /dev/null +++ b/desegnoj/assets/main.scss @@ -0,0 +1,47 @@ +body { + background-color: rgb(200, 190, 180); +} + +.columns { + display: flex; + // border: 1px solid red; + margin: auto; + padding: 1em; + + > * { + margin: 0 1em 0 1em; + } + + & :first-child { + margin: 0 1em 0 0; + } + & :last-child { + margin: 0 0 0 1em; + } +} + +.c-2 { + > div { + width: 50%; + } +} + +.statpool { + width: 50%; + flex-grow: 0; + flex-shrink: 1; + + .pool { + border: 1px solid black; + border-radius: 5px; + padding: 0.5em; + margin: 0.25em; + } + + .edge { + border: 1px solid black; + border-radius: 5px; + padding: 0.5em; + margin: 0.25em; + } +} diff --git a/desegnoj/config.toml b/desegnoj/config.toml new file mode 100644 index 0000000..29fef37 --- /dev/null +++ b/desegnoj/config.toml @@ -0,0 +1,9 @@ +baseURL = "http://example.org/" +languageCode = "en-us" +title = "My New Hugo Site" + +[markup] + defaultMarkdownHandler = "goldmark" + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true diff --git a/desegnoj/content/_index.md b/desegnoj/content/_index.md new file mode 100644 index 0000000..e69de29 diff --git a/desegnoj/content/priat.html b/desegnoj/content/priat.html new file mode 100644 index 0000000..da51342 --- /dev/null +++ b/desegnoj/content/priat.html @@ -0,0 +1,102 @@ +--- +title: Priat +--- + +
+
+

Priat (Tier 1)

+

A Intuitive Jack who Explores Yesterday

+ +
+
+ {{< stat name="Might" value="12" edge="0" >}} + {{< stat name="Speed" value="14" edge="0" >}} + {{< stat name="Intellect" value="12" edge="1" >}} +
+
+ +
+
+

Special Abilities

+ +
+ +
+

Skills

+ + {{< skill name="Perception" level="Trained" >}} + {{< skill name="Climbing" level="Trained" >}} + {{< skill name="Salvaging Numenera" level="Trained" >}} + {{< skill name="Identifying" level="Trained" >}} + {{< skill name="Crafting Numenera" level="Trained" >}} +
+
+
+ +

Attack and Defense

+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
WeaponDamageRangeAmmo
Battleaxe4Melee
Dagger2Melee
+

You can use light or medium weapons. Your attacks are hindered with a heavy weapon.

+
+ +
+ + + + + + + + + + + + + + + +
ArmorDefenseSpeed cost
Brigandine22
+
+
+ +

Equipment

+ + diff --git a/desegnoj/layouts/_default/baseof.html b/desegnoj/layouts/_default/baseof.html new file mode 100644 index 0000000..2c92c91 --- /dev/null +++ b/desegnoj/layouts/_default/baseof.html @@ -0,0 +1,9 @@ + + + {{ partial "head.html" . }} + {{ .Page.Title }} + + {{ block "main" . }} + {{ end }} + + diff --git a/desegnoj/layouts/_default/single.html b/desegnoj/layouts/_default/single.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/desegnoj/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/desegnoj/layouts/index.html b/desegnoj/layouts/index.html new file mode 100644 index 0000000..599dfea --- /dev/null +++ b/desegnoj/layouts/index.html @@ -0,0 +1,7 @@ + + + {{ partial "head.html" . }} + + {{ partial "main_menu.html" . }} + + diff --git a/desegnoj/layouts/partials/head.html b/desegnoj/layouts/partials/head.html new file mode 100644 index 0000000..0a83dab --- /dev/null +++ b/desegnoj/layouts/partials/head.html @@ -0,0 +1,6 @@ + + + {{ $style := resources.Get "main.scss" | resources.ToCSS }} + + + diff --git a/desegnoj/layouts/partials/main_menu.html b/desegnoj/layouts/partials/main_menu.html new file mode 100644 index 0000000..9ac9f3b --- /dev/null +++ b/desegnoj/layouts/partials/main_menu.html @@ -0,0 +1,7 @@ + + diff --git a/desegnoj/layouts/shortcodes/character.html b/desegnoj/layouts/shortcodes/character.html new file mode 100644 index 0000000..e69de29 diff --git a/desegnoj/layouts/shortcodes/skill.html b/desegnoj/layouts/shortcodes/skill.html new file mode 100644 index 0000000..94d3624 --- /dev/null +++ b/desegnoj/layouts/shortcodes/skill.html @@ -0,0 +1,4 @@ + + {{ .Get "name" }} + {{ .Get "level" }} + diff --git a/desegnoj/layouts/shortcodes/stat.html b/desegnoj/layouts/shortcodes/stat.html new file mode 100644 index 0000000..53b0228 --- /dev/null +++ b/desegnoj/layouts/shortcodes/stat.html @@ -0,0 +1,7 @@ +
+

{{ .Get "name" }}

+
+
{{ .Get "value" }} / {{ .Get "value" }}
+
{{ .Get "edge" }}
+
+
diff --git a/shell.nix b/shell.nix index d87bf67..0c179c3 100644 --- a/shell.nix +++ b/shell.nix @@ -13,6 +13,7 @@ in pkgs.mkShell { rust unstable.rust-analyzer pkgs.nodejs + pkgs.hugo ]; shellHook = ''