commit 74fbf0ba79cbfed57e6e618393f1e0cccfa03652 Author: yuki Date: Tue Nov 4 01:30:53 2025 -0500 Page 1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b00575 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/public/ +/resources/_gen/ +/assets/jsconfig.json +hugo_stats.json +/.hugo_build.lock \ No newline at end of file diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/content/1/1.png b/content/1/1.png new file mode 100644 index 0000000..f712064 Binary files /dev/null and b/content/1/1.png differ diff --git a/content/1/index.md b/content/1/index.md new file mode 100644 index 0000000..8647395 --- /dev/null +++ b/content/1/index.md @@ -0,0 +1,18 @@ ++++ +date = '2025-11-04T00:00:00-05:00' +title = 'Zarmina' +type = 'story' +weight = 1 +chapitres = ['1'] ++++ +![Le vaisseau Marc-Garneau, quittant la terre](/1/1.png) + +Nous sommes en 2055. L'Agence spatiale canadienne, avec la collaboration de plusieurs pays, a mis au point un moteur permettant d'aller plus vite que la lumière, afin de pouvoir visiter et explorer des planètes à l'extérieur de notre système solaire, et ainsi en apprendre plus sur l'univers. + +Pour la première fois, on envoie une mission habitée utilisant un moteur FTL, plus spécifiquement vers le système Gliese 581, une naine brune où on a détecté plusieurs planètes habitables et propices à la vie. Le voyage ne devrait durer que quelques jours, au plus, mais est néanmoins une mission extrêmement dangereuse. + +Deux astronautes intrépides, le capitaine Neil Dravas et son second Eddy Cormier, se sont portés volontaires pour cette mission historique. + +Et c'est ainsi que le 20 août 2055, ils décollèrent du centre spatial d'Arvida, à bord du vaisseau Marc-Garneau, pour aller là ou l'humanité n'aurait jamais pensé se rendre. + +{{< link "2" >}} \ No newline at end of file diff --git a/content/apropos.md b/content/apropos.md new file mode 100644 index 0000000..2016d83 --- /dev/null +++ b/content/apropos.md @@ -0,0 +1,9 @@ ++++ +title = 'À propos' ++++ +*Zarmina* est un roman graphique créé par JP Savard, à propos d'une planète du même nom, et d'un certain peuple de premières nations. C'est un roman qui reprend les codes des aventures en mode texte, comme on y jouait sur certains forums où un utilisateur suggérait une commande et un autre dessinait le résultat, tel que popularisé par des comics tels que [Homestuck](https://homestuck.com/). + +Suivez le roman sur les réseaux sociaux: + +[Groupe Tazor](https://groupe-tazor.com)\ +[Facebook](https://www.facebook.com/zarminaxyz) \ No newline at end of file diff --git a/content/chapitres/1/_index.md b/content/chapitres/1/_index.md new file mode 100644 index 0000000..c1f326e --- /dev/null +++ b/content/chapitres/1/_index.md @@ -0,0 +1,4 @@ ++++ +title = 'Au départ' +weight = 1 ++++ \ No newline at end of file diff --git a/content/chapitres/_index.md b/content/chapitres/_index.md new file mode 100644 index 0000000..0dd7cbd --- /dev/null +++ b/content/chapitres/_index.md @@ -0,0 +1,3 @@ ++++ +title = 'Table des matières' ++++ \ No newline at end of file diff --git a/content/credits.md b/content/credits.md new file mode 100644 index 0000000..a5a356b --- /dev/null +++ b/content/credits.md @@ -0,0 +1,14 @@ ++++ +title = 'Crédits' ++++ + +Créé et écrit par\ +**JP Savard** + +Art\ +**葉月膤 (neige d'aout)** + +Programmation\ +**JP Savard** + +Cette oeuvre est sous licence [Creative Commons BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.fr). En gros, tu peux faire ce que tu veux avec, sauf que tu devras créditer les artistes, pas faire de cash directement sur mon dos sans permission, et toute dérivation et modification devrait être partagée sous les mêmes conditions. \ No newline at end of file diff --git a/content/log.md b/content/log.md new file mode 100644 index 0000000..4298130 --- /dev/null +++ b/content/log.md @@ -0,0 +1,4 @@ ++++ +title = 'Journal' +layout = 'log' ++++ \ No newline at end of file diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..e6910c9 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,15 @@ +baseURL = 'https://zarmina.space/' +languageCode = 'fr-CA' +title = 'Zarmina' +theme = 'zarmina' + +[params] + home = '1' + +[taxonomies] + chapitre = 'chapitres' + +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true \ No newline at end of file diff --git a/themes/zarmina/archetypes/default.md b/themes/zarmina/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/themes/zarmina/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/themes/zarmina/assets/css/main.css b/themes/zarmina/assets/css/main.css new file mode 100644 index 0000000..b72bf7f --- /dev/null +++ b/themes/zarmina/assets/css/main.css @@ -0,0 +1,136 @@ +@font-face { + font-family: "Videoway Mono-HiDpi"; + src: local("Videoway Mono-HiDpi"), + url("/VideowayMonoHiDpi.woff2") format("woff"), + url("/VideowayMonoHiDpi.ttf") format("ttf"); +} + +* +{ + margin: 0; + padding: 0; +} + +body +{ + --color-neil: #fcf; + --color-eddy: #cff; + + background-color: #110811; + color: #eee; + font-family: "Cascadia Code", "Noto Sans Shavian", monospace; + font-size: 14px; + font-optical-sizing: auto; + font-weight: 400; + font-style: normal; +} + +header, main, footer +{ + max-width: 650px; + text-align: center; + margin: 1em auto; +} + +header, footer +{ + font-family: "Videoway Mono-HiDpi", "Noto Sans Shavian", monospace; + font-size: 11px; +} + +header h1 +{ + font-size: 33px; + padding: 0.5em 0; + letter-spacing: 0.75em; +} + +section +{ + background-color: #333; + padding: 0.5em 1em; +} + +section > * +{ + padding: 0.5em 0; +} + +section h2 +{ + font-size: 2em; +} + +section img +{ + margin: 0 -1em; + width: calc(100% + 2em); +} + +section .log +{ + text-align: left; + border: #999 1px dotted; + padding: 1em; + white-space: pre-wrap; +} + +header nav ul +{ + display: flex; + justify-content: space-evenly; + font-size: 11px; +} + +header nav ul li +{ + display: inline; +} + +a +{ + color: #33f; +} + +.link +{ + font-size: 1.5em; + text-align: left; + margin: 0.5em; +} + +article +{ + padding: 1em 0; +} + +#log +{ + list-style: none; + text-align: left; +} + +code +{ + font-family: "Cascadia Code", "Noto Sans Shavian", monospace; + font-weight: 400; +} + +section nav +{ + text-align: left; + font-size: 0.8em; + display: flex; + justify-content: space-between; +} + +section ol, section ul +{ + text-align: left; + padding-left: 2em; +} + +section ol li a +{ + float: right; +} \ No newline at end of file diff --git a/themes/zarmina/assets/js/main.js b/themes/zarmina/assets/js/main.js new file mode 100644 index 0000000..c295b26 --- /dev/null +++ b/themes/zarmina/assets/js/main.js @@ -0,0 +1,17 @@ +function save() +{ + if(window.localStorage) + localStorage.save = location.pathname; +} + +function load() +{ + if(window.localStorage && localStorage.save) + location.pathname = localStorage.save; +} + +function erase() +{ + if(window.localStorage && localStorage.save) + delete localStorage.save; +} \ No newline at end of file diff --git a/themes/zarmina/hugo.toml b/themes/zarmina/hugo.toml new file mode 100644 index 0000000..29a35b9 --- /dev/null +++ b/themes/zarmina/hugo.toml @@ -0,0 +1,39 @@ +baseURL = 'https://zarmina.space/' +languageCode = 'fr-CA' +title = 'Zarmina' + +[menus] + [[menus.main]] + name = 'Accueil' + pageRef = '/' + weight = 10 + + [[menus.main]] + name = 'À propos' + pageRef = '/apropos' + weight = 20 + + [[menus.main]] + name = 'Journal' + pageRef = '/log' + weight = 30 + + [[menus.main]] + name = 'Chapitres' + pageRef = '/chapitres' + weight = 40 + + [[menus.main]] + name = 'Nouveautés' + url = '/#news' + weight = 50 + + [[menus.main]] + name = 'Crédits' + url = '/credits' + weight = 60 + +[module] + [module.hugoVersion] + extended = false + min = '0.146.0' diff --git a/themes/zarmina/layouts/_partials/controls.html b/themes/zarmina/layouts/_partials/controls.html new file mode 100644 index 0000000..8b92fc5 --- /dev/null +++ b/themes/zarmina/layouts/_partials/controls.html @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/themes/zarmina/layouts/_partials/footer.html b/themes/zarmina/layouts/_partials/footer.html new file mode 100644 index 0000000..0d6211e --- /dev/null +++ b/themes/zarmina/layouts/_partials/footer.html @@ -0,0 +1,2 @@ +

Copyright {{ now.Year }}. Certains droits réservés.

+

\ No newline at end of file diff --git a/themes/zarmina/layouts/_partials/head.html b/themes/zarmina/layouts/_partials/head.html new file mode 100644 index 0000000..22375a5 --- /dev/null +++ b/themes/zarmina/layouts/_partials/head.html @@ -0,0 +1,8 @@ + + + + + +{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} +{{ partialCached "head/css.html" . }} +{{ partialCached "head/js.html" . }} diff --git a/themes/zarmina/layouts/_partials/head/css.html b/themes/zarmina/layouts/_partials/head/css.html new file mode 100644 index 0000000..d76d23a --- /dev/null +++ b/themes/zarmina/layouts/_partials/head/css.html @@ -0,0 +1,9 @@ +{{- with resources.Get "css/main.css" }} + {{- if hugo.IsDevelopment }} + + {{- else }} + {{- with . | minify | fingerprint }} + + {{- end }} + {{- end }} +{{- end }} diff --git a/themes/zarmina/layouts/_partials/head/js.html b/themes/zarmina/layouts/_partials/head/js.html new file mode 100644 index 0000000..7e75c6c --- /dev/null +++ b/themes/zarmina/layouts/_partials/head/js.html @@ -0,0 +1,16 @@ +{{- with resources.Get "js/main.js" }} + {{- $opts := dict + "minify" (not hugo.IsDevelopment) + "sourceMap" (cond hugo.IsDevelopment "external" "") + "targetPath" "js/main.js" + }} + {{- with . }} + {{- if hugo.IsDevelopment }} + + {{- else }} + {{- with . | fingerprint }} + + {{- end }} + {{- end }} + {{- end }} +{{- end }} diff --git a/themes/zarmina/layouts/_partials/header.html b/themes/zarmina/layouts/_partials/header.html new file mode 100644 index 0000000..7980a00 --- /dev/null +++ b/themes/zarmina/layouts/_partials/header.html @@ -0,0 +1,2 @@ +

{{ site.Title }}

+{{ partial "menu.html" (dict "menuID" "main" "page" .) }} diff --git a/themes/zarmina/layouts/_partials/menu.html b/themes/zarmina/layouts/_partials/menu.html new file mode 100644 index 0000000..14245b5 --- /dev/null +++ b/themes/zarmina/layouts/_partials/menu.html @@ -0,0 +1,51 @@ +{{- /* +Renders a menu for the given menu ID. + +@context {page} page The current page. +@context {string} menuID The menu ID. + +@example: {{ partial "menu.html" (dict "menuID" "main" "page" .) }} +*/}} + +{{- $page := .page }} +{{- $menuID := .menuID }} + +{{- with index site.Menus $menuID }} + +{{- end }} + +{{- define "_partials/inline/menu/walk.html" }} + {{- $page := .page }} + {{- range .menuEntries }} + {{- $attrs := dict "href" .URL }} + {{- if $page.IsMenuCurrent .Menu . }} + {{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }} + {{- else if $page.HasMenuCurrent .Menu .}} + {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }} + {{- end }} + {{- $name := .Name }} + {{- with .Identifier }} + {{- with T . }} + {{- $name = . }} + {{- end }} + {{- end }} +
  • + {{ $name }} + {{- with .Children }} + + {{- end }} +
  • + {{- end }} +{{- end }} diff --git a/themes/zarmina/layouts/_partials/news.html b/themes/zarmina/layouts/_partials/news.html new file mode 100644 index 0000000..37d248b --- /dev/null +++ b/themes/zarmina/layouts/_partials/news.html @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/themes/zarmina/layouts/_partials/terms.html b/themes/zarmina/layouts/_partials/terms.html new file mode 100644 index 0000000..8a6ebec --- /dev/null +++ b/themes/zarmina/layouts/_partials/terms.html @@ -0,0 +1,23 @@ +{{- /* +For a given taxonomy, renders a list of terms assigned to the page. + +@context {page} page The current page. +@context {string} taxonomy The taxonomy. + +@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +*/}} + +{{- $page := .page }} +{{- $taxonomy := .taxonomy }} + +{{- with $page.GetTerms $taxonomy }} + {{- $label := (index . 0).Parent.LinkTitle }} +
    +
    {{ $label }}:
    + +
    +{{- end }} diff --git a/themes/zarmina/layouts/_shortcodes/abbr.html b/themes/zarmina/layouts/_shortcodes/abbr.html new file mode 100644 index 0000000..8d109e5 --- /dev/null +++ b/themes/zarmina/layouts/_shortcodes/abbr.html @@ -0,0 +1 @@ +{{ .Inner }} \ No newline at end of file diff --git a/themes/zarmina/layouts/_shortcodes/char.html b/themes/zarmina/layouts/_shortcodes/char.html new file mode 100644 index 0000000..2091c94 --- /dev/null +++ b/themes/zarmina/layouts/_shortcodes/char.html @@ -0,0 +1 @@ +{{ .Get 0 }}: {{ .Inner | .Page.RenderString }} \ No newline at end of file diff --git a/themes/zarmina/layouts/_shortcodes/link.html b/themes/zarmina/layouts/_shortcodes/link.html new file mode 100644 index 0000000..89a6483 --- /dev/null +++ b/themes/zarmina/layouts/_shortcodes/link.html @@ -0,0 +1,6 @@ +{{ with .Page.GetPage (.Get 0) }} + +{{ else }} +{{ end }} \ No newline at end of file diff --git a/themes/zarmina/layouts/_shortcodes/log.html b/themes/zarmina/layouts/_shortcodes/log.html new file mode 100644 index 0000000..02ab15a --- /dev/null +++ b/themes/zarmina/layouts/_shortcodes/log.html @@ -0,0 +1 @@ +
    {{ .Inner | .Page.RenderString }}
    \ No newline at end of file diff --git a/themes/zarmina/layouts/_shortcodes/style.html b/themes/zarmina/layouts/_shortcodes/style.html new file mode 100644 index 0000000..6f37e06 --- /dev/null +++ b/themes/zarmina/layouts/_shortcodes/style.html @@ -0,0 +1,6 @@ +{{ .Inner | .Page.RenderString }} \ No newline at end of file diff --git a/themes/zarmina/layouts/baseof.html b/themes/zarmina/layouts/baseof.html new file mode 100644 index 0000000..39dcbec --- /dev/null +++ b/themes/zarmina/layouts/baseof.html @@ -0,0 +1,17 @@ + + + + {{ partial "head.html" . }} + + +
    + {{ partial "header.html" . }} +
    +
    + {{ block "main" . }}{{ end }} +
    + + + diff --git a/themes/zarmina/layouts/home.html b/themes/zarmina/layouts/home.html new file mode 100644 index 0000000..13f568d --- /dev/null +++ b/themes/zarmina/layouts/home.html @@ -0,0 +1,13 @@ +{{ define "main" }} + {{ .Content }} + {{ with site.GetPage (site.Params.home) }} +
    +

    {{ .Title }}

    + {{ .Content }} + {{ partial "controls.html" . }} +
    + {{ end }} +
    + {{ partial "news.html" . }} +
    +{{ end }} diff --git a/themes/zarmina/layouts/log.html b/themes/zarmina/layouts/log.html new file mode 100644 index 0000000..8c7f82d --- /dev/null +++ b/themes/zarmina/layouts/log.html @@ -0,0 +1,11 @@ +{{ define "main" }} +
    +

    {{ .Title }}

    + {{ .Content }} + +
    +{{ end }} diff --git a/themes/zarmina/layouts/page.html b/themes/zarmina/layouts/page.html new file mode 100644 index 0000000..40117cc --- /dev/null +++ b/themes/zarmina/layouts/page.html @@ -0,0 +1,7 @@ +{{ define "main" }} +
    +

    {{ .Title }}

    + + {{ .Content }} +
    +{{ end }} diff --git a/themes/zarmina/layouts/section.html b/themes/zarmina/layouts/section.html new file mode 100644 index 0000000..748f2f5 --- /dev/null +++ b/themes/zarmina/layouts/section.html @@ -0,0 +1,10 @@ +{{ define "main" }} +

    {{ .Title }}

    + {{ .Content }} + {{ range .Pages }} +
    +

    {{ .LinkTitle }}

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

    {{ .Title }}

    + + {{ .Content }} + {{ partial "controls.html" . }} +
    +{{ end }} diff --git a/themes/zarmina/layouts/taxonomy.html b/themes/zarmina/layouts/taxonomy.html new file mode 100644 index 0000000..6328229 --- /dev/null +++ b/themes/zarmina/layouts/taxonomy.html @@ -0,0 +1,15 @@ +{{ define "main" }} +
    +

    {{ .Title }}

    + {{ .Content }} +
      + {{ range .Pages }} +
    1. {{ .LinkTitle }} + {{ range first 1 .Pages.ByDate }} + {{ trim .RelPermalink "/" }} + {{ end }} +
    2. + {{ end }} +
    +
    +{{ end }} diff --git a/themes/zarmina/layouts/term.html b/themes/zarmina/layouts/term.html new file mode 100644 index 0000000..6b98db2 --- /dev/null +++ b/themes/zarmina/layouts/term.html @@ -0,0 +1,11 @@ +{{ define "main" }} +
    +

    {{ .Title }}

    + {{ .Content }} + +
    +{{ end }} diff --git a/themes/zarmina/static/VideowayMonoHiDpi.ttf b/themes/zarmina/static/VideowayMonoHiDpi.ttf new file mode 100644 index 0000000..cfe427f Binary files /dev/null and b/themes/zarmina/static/VideowayMonoHiDpi.ttf differ diff --git a/themes/zarmina/static/VideowayMonoHiDpi.woff2 b/themes/zarmina/static/VideowayMonoHiDpi.woff2 new file mode 100644 index 0000000..f8243c6 Binary files /dev/null and b/themes/zarmina/static/VideowayMonoHiDpi.woff2 differ diff --git a/themes/zarmina/static/favicon.ico b/themes/zarmina/static/favicon.ico new file mode 100644 index 0000000..67f8b77 Binary files /dev/null and b/themes/zarmina/static/favicon.ico differ