WIP: coming out post

This commit is contained in:
violette 2024-01-22 16:02:25 -05:00
commit 38bbacb637
41 changed files with 774 additions and 0 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "themes/ananke"]
path = themes/ananke
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git

5
archetypes/default.md Normal file
View file

@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++

82
content/posts/first.md Normal file
View file

@ -0,0 +1,82 @@
+++
title = 'Comming out'
date = 2024-01-11T17:48:10-05:00
tags = ["Trans", "Family", "Personnal"]
draft = true
+++
Salut! Ca fait longtemps que je me cache dans mon coin sans jamais donner trop
de nouvelle. Il y a une raison pour ca. Je suis transgenre ; ce qui signifie que
je ne me vois, ni me m'ai jamais vraiment vu comme un homme.
## But
Cette page a pour but d'expliquer les changements que je veux effectuer, et
pourquoi je ressents le besoin de les faires. C'est assez maladroit, dans le
sens ou j'essaie de justifier mon ressenti, mon identité.
## Considérations familliales
Je sais que c'est quelque chose de compliquer à accepter pour certains. Croyez
moi, je suis aussi passée par là. Cependant, c'est une partie de moi que je ne
peux plus ignorer. Ca fait maintenant plusieurs années que je considère une
transition, et c'est aujourd'hui que je vous la partage.
## Where does that come from ?
Quand je regardais dans le miroir, je voyais juste le masque que tout le monde
appelait "Maxime", mais je ne me suis jamais vraiment reconnu dans cette image.
## Qui suis-je
Je suis toujours la meme personne. Je joue toujours de la guitare, je développe
toujours des trucs que personne comprend dans mon coin. Juste, j'utilise un
nouveau nom, des nouveaux pronoms, et j'évolue dans un corps qui me plait.
### Medical
Pour tout ce qui concerne le plan médical, je prends des hormones, ce qui a
amplement été discuté et approuvé par un psychiatre agréé, ainsi qu'un
endochrinologue. C'est quelque chose qui a été beaucoup réflechi et qui n'est
pas pris à la légère.
Pour moi, ca représente un besoin vital.
Pour tout le reste, c'est mon chemin, et ça reste des décisions très
personnelles que j'ai pas envie de partager :)
## Considérations politique et religieuse
Personnelement, je ne comprends pas que ce que je vie doit absolument etre
politisé. Je veux juste vivre ma vie tranquilement dans mon coin, avoir accès
aux memes ressources et emplois que tout le monde. Une transition n'a
fondamentalement rien de politique.
Pour l'aspect religieux, si Dieu est amour, et qu'il est aussi omniscient,
alors je n'ai pas besoin de me cacher. De plus, certains Saints avaient des
manières de s'exprimer que l'on pourrait rapprocher aujourd'hui de manières
transgenre :
+ [*Saint Théodor{e,a}*](https://nominis.cef.fr/contenus/saint/8188/Sainte-Th%C3%A9odora.html)
a vécu comme une femme, puis a repenti ses péchers aux seins d'un monastère.
seul sa mort à rendu son secret publique.
+ [*Public Universal Friend*](https://fr.wikipedia.org/wiki/Public_Universal_Friend)
est un prètre agenre des années 1770 aux états unis.
+ [*Matrona of Perge*](https://en.wikipedia.org/wiki/Matrona_of_Perge), qui
après s'habiller en homme pour correspondre à la lettre de Saint Paul aux
Corinthiens, fonde un couvent. Toutes les soeurs y continueront d'adopter des
vetements masculins.
+ Saint Hilarion / Hilaria. Les sources sont moins fiables. Certains textes
le voit comme un homme, d'autres comme une femme.
Il y a d'autres saints LGBT que l'on fete dans le calendrier, comme par exemple
Saint aelfred de Rievaulx.
## TL;DR
Je m'appelle Violette. Je suis une femme. J'aimerais le plus possible que vous
utilisiez ces nouvelles dénominations, mais l'erreur est humaine, ne vous en
faites pas :)
Si vous voulez me poser plus de question, j'ai une adresse mail à
[Violette@bigblase.xyz](mailto:violette@bigblase.xyz).
J'espère que vous m'accepterez.
Bonne journée !
## ressources
+ [un document complet](https://genderdysphoria.fyi/fr/)
+ [Association transgenre francophone](https://fransgenre.fr)
+ [Association transgenre de Sherbrooke](https://transestrie.org)

4
hugo.toml Normal file
View file

@ -0,0 +1,4 @@
baseURL = 'https://bigblase.xyz'
languageCode = 'en-us'
title = "Violette's cozy corner"
theme = "violette"

View file

@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en-us" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>
Categories | Vi's Corner
</title>
<link rel="stylesheet" href="/css/main.min.4da30eef3a3f6cb54d1c9c2a4fe4070d59b406493e26864d235aefe130c6f908.css" integrity="sha256-TaMO7zo/bLVNHJwqT&#43;QHDVm0Bkk&#43;JoZNI1rv4TDG&#43;Qg=" crossorigin="anonymous">
<script src="/js/main.23cd0c7d837263b9eaeb96ee2d9ccfa2969daa3fa00fa1c1fe8701a9b87251a1.js" integrity="sha256-I80MfYNyY7nq65buLZzPopadqj&#43;gD6HB/ocBqbhyUaE=" crossorigin="anonymous"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
</head>
<body>
<header>
<h1>Violette&#39;s cozy corner</h1>
<nav>
<ul class="nav">
<li class="nav-left">
<a href="/">Home</a>
</li>
<li class="nav-left">
<a href="/posts/">Posts</a>
</li>
<li class="nav-left">
<a href="/tags/">Tags</a>
</li>
</ul>
</nav>
</header>
<main>
<h1>Categories</h1>
</main>
<footer>
<p id="footer">Take care, drink your water ! <img src="/neocat.ico"></p>
</footer>
</body>
</html>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Categories on Violette&#39;s cozy corner</title>
<link>https://bigblase.xyz/categories/</link>
<description>Recent content in Categories on Violette&#39;s cozy corner</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<atom:link href="https://bigblase.xyz/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>

View file

@ -0,0 +1 @@
body{color:#fff;background-color:#111;font-family:sans-serif;line-height:1.5;margin:1rem}header{border-bottom:1px solid #222;margin-bottom:1rem}h1{width:100%;text-align:center;color:#c282e0;transition:300ms color}h1:hover{color:#5082cf;transition-duration:500ms}footer{border-top:1px solid #222;margin-top:1rem;width:100%;position:sticky;background-color:#111}p,#footer{text-align:center}.nav{display:flex;list-style-type:none}li{margin:5pt}a{color:#c282e0;text-decoration:none}

55
public/index.html Normal file
View file

@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en-us" dir="ltr">
<head>
<meta name="generator" content="Hugo 0.121.2">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>
Vi's corner
</title>
<link rel="stylesheet" href="/css/main.min.4da30eef3a3f6cb54d1c9c2a4fe4070d59b406493e26864d235aefe130c6f908.css" integrity="sha256-TaMO7zo/bLVNHJwqT&#43;QHDVm0Bkk&#43;JoZNI1rv4TDG&#43;Qg=" crossorigin="anonymous">
<script src="/js/main.23cd0c7d837263b9eaeb96ee2d9ccfa2969daa3fa00fa1c1fe8701a9b87251a1.js" integrity="sha256-I80MfYNyY7nq65buLZzPopadqj&#43;gD6HB/ocBqbhyUaE=" crossorigin="anonymous"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
</head>
<body>
<header>
<h1>Violette&#39;s cozy corner</h1>
<nav>
<ul class="nav">
<li class="nav-left">
<a aria-current="page" class="active" href="/">Home</a>
</li>
<li class="nav-left">
<a href="/posts/">Posts</a>
</li>
<li class="nav-left">
<a href="/tags/">Tags</a>
</li>
</ul>
</nav>
</header>
<main>
</main>
<footer>
<p id="footer">Take care, drink your water ! <img src="/neocat.ico"></p>
</footer>
</body>
</html>

19
public/index.xml Normal file
View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Violette&#39;s cozy corner</title>
<link>https://bigblase.xyz/</link>
<description>Recent content on Violette&#39;s cozy corner</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Thu, 11 Jan 2024 17:48:10 -0500</lastBuildDate>
<atom:link href="https://bigblase.xyz/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>First</title>
<link>https://bigblase.xyz/posts/first/</link>
<pubDate>Thu, 11 Jan 2024 17:48:10 -0500</pubDate>
<guid>https://bigblase.xyz/posts/first/</guid>
<description>So yeah this is a post hey hey</description>
</item>
</channel>
</rss>

View file

@ -0,0 +1 @@
(()=>{console.log("This site was generated by Hugo.");})();

View file

@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en-us" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>
First | Vi's Corner
</title>
<link rel="stylesheet" href="/css/main.min.4da30eef3a3f6cb54d1c9c2a4fe4070d59b406493e26864d235aefe130c6f908.css" integrity="sha256-TaMO7zo/bLVNHJwqT&#43;QHDVm0Bkk&#43;JoZNI1rv4TDG&#43;Qg=" crossorigin="anonymous">
<script src="/js/main.23cd0c7d837263b9eaeb96ee2d9ccfa2969daa3fa00fa1c1fe8701a9b87251a1.js" integrity="sha256-I80MfYNyY7nq65buLZzPopadqj&#43;gD6HB/ocBqbhyUaE=" crossorigin="anonymous"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
</head>
<body>
<header>
<h1>Violette&#39;s cozy corner</h1>
<nav>
<ul class="nav">
<li class="nav-left">
<a href="/">Home</a>
</li>
<li class="nav-left">
<a aria-current="true" class="ancestor" href="/posts/">Posts</a>
</li>
<li class="nav-left">
<a href="/tags/">Tags</a>
</li>
</ul>
</nav>
</header>
<main>
<h1>First</h1>
<time datetime="2024-01-11T17:48:10-05:00">January 11, 2024</time>
<h2 id="so-yeah-this-is-a-post">So yeah this is a post</h2>
<p>hey hey</p>
</main>
<footer>
<p id="footer">Take care, drink your water ! <img src="/neocat.ico"></p>
</footer>
</body>
</html>

59
public/posts/index.html Normal file
View file

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en-us" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>
Posts | Vi's Corner
</title>
<link rel="stylesheet" href="/css/main.min.4da30eef3a3f6cb54d1c9c2a4fe4070d59b406493e26864d235aefe130c6f908.css" integrity="sha256-TaMO7zo/bLVNHJwqT&#43;QHDVm0Bkk&#43;JoZNI1rv4TDG&#43;Qg=" crossorigin="anonymous">
<script src="/js/main.23cd0c7d837263b9eaeb96ee2d9ccfa2969daa3fa00fa1c1fe8701a9b87251a1.js" integrity="sha256-I80MfYNyY7nq65buLZzPopadqj&#43;gD6HB/ocBqbhyUaE=" crossorigin="anonymous"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
</head>
<body>
<header>
<h1>Violette&#39;s cozy corner</h1>
<nav>
<ul class="nav">
<li class="nav-left">
<a href="/">Home</a>
</li>
<li class="nav-left">
<a aria-current="page" class="active" href="/posts/">Posts</a>
</li>
<li class="nav-left">
<a href="/tags/">Tags</a>
</li>
</ul>
</nav>
</header>
<main>
<h1>Posts</h1>
<h2><a href="/posts/first/">First</a></h2>
So yeah this is a post hey hey
</main>
<footer>
<p id="footer">Take care, drink your water ! <img src="/neocat.ico"></p>
</footer>
</body>
</html>

19
public/posts/index.xml Normal file
View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Posts on Violette&#39;s cozy corner</title>
<link>https://bigblase.xyz/posts/</link>
<description>Recent content in Posts on Violette&#39;s cozy corner</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Thu, 11 Jan 2024 17:48:10 -0500</lastBuildDate>
<atom:link href="https://bigblase.xyz/posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>First</title>
<link>https://bigblase.xyz/posts/first/</link>
<pubDate>Thu, 11 Jan 2024 17:48:10 -0500</pubDate>
<guid>https://bigblase.xyz/posts/first/</guid>
<description>So yeah this is a post hey hey</description>
</item>
</channel>
</rss>

18
public/sitemap.xml Normal file
View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://bigblase.xyz/posts/first/</loc>
<lastmod>2024-01-11T17:48:10-05:00</lastmod>
</url><url>
<loc>https://bigblase.xyz/posts/</loc>
<lastmod>2024-01-11T17:48:10-05:00</lastmod>
</url><url>
<loc>https://bigblase.xyz/</loc>
<lastmod>2024-01-11T17:48:10-05:00</lastmod>
</url><url>
<loc>https://bigblase.xyz/categories/</loc>
</url><url>
<loc>https://bigblase.xyz/tags/</loc>
</url>
</urlset>

56
public/tags/index.html Normal file
View file

@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en-us" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>
Tags | Vi's Corner
</title>
<link rel="stylesheet" href="/css/main.min.4da30eef3a3f6cb54d1c9c2a4fe4070d59b406493e26864d235aefe130c6f908.css" integrity="sha256-TaMO7zo/bLVNHJwqT&#43;QHDVm0Bkk&#43;JoZNI1rv4TDG&#43;Qg=" crossorigin="anonymous">
<script src="/js/main.23cd0c7d837263b9eaeb96ee2d9ccfa2969daa3fa00fa1c1fe8701a9b87251a1.js" integrity="sha256-I80MfYNyY7nq65buLZzPopadqj&#43;gD6HB/ocBqbhyUaE=" crossorigin="anonymous"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
</head>
<body>
<header>
<h1>Violette&#39;s cozy corner</h1>
<nav>
<ul class="nav">
<li class="nav-left">
<a href="/">Home</a>
</li>
<li class="nav-left">
<a href="/posts/">Posts</a>
</li>
<li class="nav-left">
<a aria-current="page" class="active" href="/tags/">Tags</a>
</li>
</ul>
</nav>
</header>
<main>
<h1>Tags</h1>
</main>
<footer>
<p id="footer">Take care, drink your water ! <img src="/neocat.ico"></p>
</footer>
</body>
</html>

11
public/tags/index.xml Normal file
View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Tags on Violette&#39;s cozy corner</title>
<link>https://bigblase.xyz/tags/</link>
<description>Recent content in Tags on Violette&#39;s cozy corner</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<atom:link href="https://bigblase.xyz/tags/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"Target":"ananke/css/main.min.css","MediaType":"text/css","Data":{}}

BIN
static/neocat_hug_heart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

1
themes/ananke Submodule

@ -0,0 +1 @@
Subproject commit 91df000ca82769a7578df81fa142d1a18e446bc0

21
themes/violette/LICENSE Normal file
View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -0,0 +1,7 @@
# Theme Name
## Features
## Installation
## Configuration

View file

@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++

View file

@ -0,0 +1,57 @@
body {
color: #fff;
background-color: #111;
font-family: sans-serif;
line-height: 1.5;
margin: 1rem;
}
header {
border-bottom: 1px solid #222;
margin-bottom: 1rem;
}
h1 {
width: 100%;
text-align: center;
color: #c282e0;
transition: 300ms color;
}
h1:hover {
color: #5082cf;
transition-duration: 500ms;
}
footer {
border-top: 1px solid #222;
margin-top: 1rem;
width: 100%;
display: flex;
position: sticky;
background-color: #111;
}
.footer {
align-items: center;
width: 100%;
display: flex;
justify-content: center;
gap: 10px;
}
.nav {
display: flex;
list-style-type: none;
}
li {
margin: 5pt;
}
a {
color: #c282e0;
text-decoration: none;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -0,0 +1 @@
console.log('This site was generated by Hugo.');

23
themes/violette/hugo.toml Normal file
View file

@ -0,0 +1,23 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
[[menus.main]]
name = 'Home'
pageRef = '/'
weight = 10
[[menus.main]]
name = 'Posts'
pageRef = '/posts'
weight = 20
[[menus.main]]
name = 'Tags'
pageRef = '/tags'
weight = 30
[module]
[module.hugoVersion]
extended = false
min = "0.116.0"

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
<head>
{{ partial "head.html" . }}
{{ block "favicon" . }}
{{ partialCached "favicon.html" . }}
{{ end }}
</head>
<body>
<header>
{{ partial "header.html" . }}
</header>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
{{ partial "footer.html" . }}
</footer>
</body>
</html>

View file

@ -0,0 +1,7 @@
{{ define "main" }}
{{ .Content }}
{{ range site.RegularPages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ end }}
{{ end }}

View file

@ -0,0 +1,8 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ end }}
{{ end }}

View file

@ -0,0 +1,10 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}

View file

@ -0,0 +1,3 @@
{{ define "main" }}
{{ .Content }}
{{ end }}

View file

@ -0,0 +1 @@
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>

View file

@ -0,0 +1,4 @@
<div class="footer">
<p>Take care, drink your water ! </p>
<img src="/neocat_hug_heart.png" width="32">
</div>

View file

@ -0,0 +1,12 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>
{{ if .IsHome }}
Vi's corner
{{ else }}
{{ printf "%s | " .Title }}Vi's Corner
{{ end }}
</title>
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}

View file

@ -0,0 +1,9 @@
{{- with resources.Get "css/main.css" }}
{{- if eq hugo.Environment "development" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{- else }}
{{- with . | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end }}
{{- end }}
{{- end }}

View file

@ -0,0 +1,12 @@
{{- with resources.Get "js/main.js" }}
{{- if eq hugo.Environment "development" }}
{{- with . | js.Build }}
<script src="{{ .RelPermalink }}"></script>
{{- end }}
{{- else }}
{{- $opts := dict "minify" true }}
{{- with . | js.Build $opts | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
{{- end }}
{{- end }}
{{- end }}

View file

@ -0,0 +1,2 @@
<h1>{{ site.Title }}</h1>
{{ partial "menu.html" (dict "menuID" "main" "page" .) }}

View file

@ -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 }}
<nav>
<ul class="nav">
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
</ul>
</nav>
{{- 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 }}
<li class="nav-left">
<a
{{- range $k, $v := $attrs }}
{{- with $v }}
{{- printf " %s=%q" $k $v | safeHTMLAttr }}
{{- end }}
{{- end -}}
>{{ $name }}</a>
{{- with .Children }}
<ul>
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
</ul>
{{- end }}
</li>
{{- end }}
{{- end }}

View file

@ -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 taxonony.
@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
*/}}
{{- $page := .page }}
{{- $taxonomy := .taxonomy }}
{{- with $page.GetTerms $taxonomy }}
{{- $label := (index . 0).Parent.LinkTitle }}
<div>
<div>{{ $label }}:</div>
<ul>
{{- range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
</div>
{{- end }}

View file

@ -0,0 +1,31 @@
name = 'Theme name'
license = 'MIT'
licenselink = 'https://github.com/owner/repo/LICENSE'
description = 'Theme description'
# The home page of the theme, where the source can be found
homepage = 'https://github.com/owner/repo'
# If you have a running demo of the theme
demosite = 'https://owner.github.io/repo'
# Taxonomy terms
tags = ['blog', 'company']
features = ['some', 'awesome', 'features']
# If the theme has multiple authors
authors = [
{name = 'Name of author', homepage = 'Website of author'},
{name = 'Name of author', homepage = 'Website of author'}
]
# If the theme has a single author
[author]
name = 'Your name'
homepage = 'Your website'
# If porting an existing theme
[original]
author = 'Name of original author'
homepage = 'Website of original author'
repo = 'https://github.com/owner/repo'