diff --git a/config.toml b/config.toml index af63008..11a80ce 100644 --- a/config.toml +++ b/config.toml @@ -48,7 +48,7 @@ uglyURLs = false # URL structure [permalinks] - posts = "/:year/:month/:day/:filename" + posts = "posts/:year/:month/:day/:filename" categories = "/categories/:slug/" tags = "/tags/:slug/" @@ -152,10 +152,17 @@ uglyURLs = false isPlainText = true isHTML = false mediaType = "text/gemini" - name = "GEMTEXT" + name = "gemini" path = "gemini/" permalinkable = true protocol = "gemini://" + +[outputFormats.GeminiRSS] + isHTML = false + mediaType = "application/rss+xml" + name = "GeminiRSS" + protocol = "gemini://" + path = "gemini/" # Gopher [outputFormats.Gopher] @@ -178,8 +185,8 @@ uglyURLs = false # Hugo’s output control [outputs] - home = ["HTML", "gophermap", "SectionsAtom", "SectionsRSS", "SearchIndex"] - page = ["HTML", "gopher"] + home = ["HTML", "gemini", "GeminiRSS", "gophermap", "SectionsAtom", "SectionsRSS", "SearchIndex"] + page = ["HTML", "gemini", "gopher"] section = ["HTML"] taxonomy = ["HTML"] term = ["HTML"] @@ -375,7 +382,7 @@ uglyURLs = false homeLogoLink = "openbsd.fr.eu.org" homeTitle = "OpenBSD Pour Tous" homeMotto = "OpenBSD Pour Tous" - homeDescription = "Site de la communauté française autour d'OpenBSD" + homeDescription = "Site de la communauté francophone 'OpenBSD Pour Tous'" homeKeywords = "OpenBSD,fr,France" homeLinksDelimiter = "" @@ -386,7 +393,7 @@ uglyURLs = false siteLogo = "/Puffy.svg" # Note: used for JSON-LD, Open Graph - siteDescription = "OBSD4a : Site de la communauté française autour d'OpenBSD." + siteDescription = "OBSD4* : Site de la communauté francophone autour d'OpenBSD." # Note: used for HTML head meta, JSON-LD, # Open Graph, Atom, RSS diff --git a/layouts/_default/list.gophermap.txt b/layouts/_default/list.gophermap.txt index a043dcc..def3d97 100644 --- a/layouts/_default/list.gophermap.txt +++ b/layouts/_default/list.gophermap.txt @@ -1,7 +1,13 @@ -!{{ .Title }} +!{{ .Title | safeHTML }} {{ .RawContent }} {{ range .Paginator.Pages }} 0{{ .Title }} {{ with .OutputFormats.Get "gopher" -}}{{ .RelPermalink }} {{ $.Site.Params.hostname}} 70 {{ end }} {{ end }} + +--- + +Publié le : {{.Date.Format "2 January 2006"}}. + +Le contenu de ce site est diffusé sous Licence {{ $.Site.Copyright | safeHTML }}. diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi new file mode 100644 index 0000000..c56d035 --- /dev/null +++ b/layouts/_default/single.gmi @@ -0,0 +1,23 @@ +# {{ $.Title | safeHTML }} + +{{ $content := .RawContent -}} +{{ $content := $content | replaceRE "`(.+?)`" "$1" -}} +{{ $content := $content | replaceRE "`" "```" -}} +{{ $content := $content | replaceRE "\\*(.+?)\\*" "$1" -}} +{{ $content := $content | replaceRE "
" "" -}} +{{ $content }} + +--- + +Publié le : {{.Date.Format "2 January 2006"}}. + +⇒ Revenir à la page d'accueil : {{ .Site.BaseURL }} {{ with .OutputFormats.Get "html" }} +⇒ Lire l'article “{{ $.Title | safeHTML }}” sur le protocole HTTP(S) : {{.Permalink}} +{{- end }} + +Le contenu de ce site est diffusé sous Licence {{ $.Site.Copyright | safeHTML }}. + +--- + +{{ if .Next }}⇒ Article Suivant : "{{ .Next.Title | safeHTML }}" : {{ replace .Next.Permalink "/gemini" "" 1}} {{ end }} +{{ if .Prev -}}⇒ Article Précédent : "{{ .Prev.Title | safeHTML }}" : {{ replace .Prev.Permalink "/gemini" "" 1}} {{- end }} diff --git a/layouts/_default/single.gmi.txt b/layouts/_default/single.gmi.txt deleted file mode 100644 index e26726f..0000000 --- a/layouts/_default/single.gmi.txt +++ /dev/null @@ -1,13 +0,0 @@ -# {{ $.Title | safeHTML }} - -{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }} - ---- - -Publié le : {{.Date.Format "January 2, 2006"}}. - -⇒ Revenir à la page d'accueil : {{ with .OutputFormats.Get "html" }} -⇒ Voir l'article {{.Permalink}} : “{{ $.Title | safeHTML }}” sur le grand net -{{- end }} - -Le contenu de ce site est diffusé sous Licence {{ $.Copyright | safeHTML }}. diff --git a/layouts/_default/single.gopher.txt b/layouts/_default/single.gopher.txt index 68d85a5..864201f 100644 --- a/layouts/_default/single.gopher.txt +++ b/layouts/_default/single.gopher.txt @@ -1,8 +1,26 @@ -!{{ .Title }} +!{{ .Title | safeHTML }} {{ .Date.Format (.Site.Params.dateform | default "01 January 2006") }} · {{ .ReadingTime }} minute(s) de lecture. {{ if .Params.tags }} Tags : {{ range .Params.tags }}{{ . }} {{ end }} {{ end }} + +--- -{{ .RawContent }} +{{ $content := .RawContent -}} +{{ $content := $content | replaceRE "
" "" -}} +{{ $content }} + +--- + +Publié le : {{.Date.Format "2 January 2006"}}. + +0⇒ Revenir à la page d'accueil : / 70 +h⇒ Lire l'article “{{ $.Title | safeHTML }}” sur le protocole HTTP(S) : {{ .Permalink | safeURL }} 443 + +Le contenu de ce site est diffusé sous Licence {{ $.Site.Copyright | safeHTML }}. + +--- + +0{{ if .Next }}⇒ Article Suivant : "{{ .Next.Title | safeHTML }}" : {{ replace .Next.RelPermalink "https" "gopher" 1}} 70 {{ end }} +0{{ if .Prev -}}⇒ Article Précédent : "{{ .Prev.Title | safeHTML }}" : {{ replace .Prev.RelPermalink "https" "gopher" 1}} 70 {{- end }} diff --git a/layouts/index.geminirss.xml b/layouts/index.geminirss.xml new file mode 100644 index 0000000..c51ac8b --- /dev/null +++ b/layouts/index.geminirss.xml @@ -0,0 +1,45 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := slice -}} +{{- if or $.IsHome $.IsSection -}} +{{- $pages = $pctx.RegularPages -}} +{{- else -}} +{{- $pages = $pctx.Pages -}} +{{- end -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} + + + {{ .Site.Title | safeHTML }} + {{ replace .Permalink "https" "gemini" 1 }} + {{ .Site.Params.siteDescription | safeHTML }} + Hugo {{ hugo.Version }} gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ range $pages }} + {{- if .OutputFormats.Get "gemini" -}} + + {{ .Title | safeHTML }} + {{ with .OutputFormats.Get "gemini" }} + {{replace .Permalink "/gemini" "" 1}} + {{ end }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ with .OutputFormats.Get "gemini" }} + {{replace .Permalink "/gemini" "" 1}} + {{ end }} + + {{- end -}} + {{ end }} + + + diff --git a/layouts/index.gmi b/layouts/index.gmi index e61e4db..37aa74a 100644 --- a/layouts/index.gmi +++ b/layouts/index.gmi @@ -1,12 +1,12 @@ +La communauté francophone "{{ .Site.Title | safeHTML }}" vous propose la lecture des articles suivants : -## Blog posts {{ range (where .Site.RegularPages "Section" "posts") }} -{{- if .OutputFormats.Get "gemtext" }} +{{- if .OutputFormats.Get "gemini" }} ⇒ {{ replace .Permalink "/gemini" "" 1 }} {{ .Date.Format "January 2, 2006" }}: {{ .Title | safeHTML }}{{ end }}{{ end }} --- -La communauté francophone "{{ .Site.Title | safeHTML }}" est disponible normalement sur le grand web : +La communauté francophone "{{ .Site.Title | safeHTML }}" est aussi disponible normalement sur le grand web : - Site : {{ .Site.BaseURL }} - Forum : https://forum.openbsd.fr.eu.org diff --git a/layouts/index.gophermap.txt b/layouts/index.gophermap.txt index da354bf..e80f1ed 100644 --- a/layouts/index.gophermap.txt +++ b/layouts/index.gophermap.txt @@ -1,6 +1,4 @@ -! {{ .Title }} - -{{ .RawContent }} +Bienvenue sur le site gopher de la communauté francophone "{{ .Site.Title | safeHTML }}" ! ⇒ Menu : @@ -17,5 +15,5 @@ h{{ .Name }} {{ .URL | safeURL }} 443 ⇒ Articles les plus récents : {{ $nb := 7 }} {{ range first $nb .Paginator.Pages }} -0{{ .Title }} {{ with .OutputFormats.Get "gopher" }} {{ .RelPermalink }} 70 {{ end }} +0{{ .Title }} {{ with .OutputFormats.Get "gopher" }} {{ replaceRE "/gopher" "" .RelPermalink }} 70 {{ end }} {{- end }} diff --git a/layouts/posts/single.gmi b/layouts/posts/single.gmi deleted file mode 100644 index e26726f..0000000 --- a/layouts/posts/single.gmi +++ /dev/null @@ -1,13 +0,0 @@ -# {{ $.Title | safeHTML }} - -{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }} - ---- - -Publié le : {{.Date.Format "January 2, 2006"}}. - -⇒ Revenir à la page d'accueil : {{ with .OutputFormats.Get "html" }} -⇒ Voir l'article {{.Permalink}} : “{{ $.Title | safeHTML }}” sur le grand net -{{- end }} - -Le contenu de ce site est diffusé sous Licence {{ $.Copyright | safeHTML }}. diff --git a/public/404.html b/public/404.html index 85f98bb..89511db 100644 --- a/public/404.html +++ b/public/404.html @@ -14,7 +14,7 @@ 404 Page not found | OpenBSD Pour Tous 🐡 - + diff --git a/public/about/index.html b/public/about/index.html index 4af22f2..69eb3d4 100644 --- a/public/about/index.html +++ b/public/about/index.html @@ -14,7 +14,7 @@ À-propos… | OpenBSD Pour Tous 🐡 - + @@ -54,7 +54,7 @@ "@context": "https://schema.org", "@type": "WebPage", "datePublished": "2020-12-09T12:16:58+01:00", - "dateModified": "2020-12-20T18:39:37+01:00", + "dateModified": "2021-01-23T14:10:51+01:00", "url": "https://openbsd.fr.eu.org/about/", "name": "À-propos…", "description": "À-propos de la communauté française d'OpenBSD", @@ -235,7 +235,7 @@ - + @@ -247,11 +247,11 @@ -  201 +  217 -  1 min +  2 min. @@ -290,7 +290,12 @@ qui voudraient échanger des astuces à propos d'wiki collaboratif - une documentation fournissant diverses traductions dont celles du site OpenBSD, de ses différentes FAQ - celle de PF et des Ports. -
  • et d’une liste de diffusion.
  • +
  • une liste de diffusion.
  • + +

    Elle est également présente à travers :

    +

    Remerciements

    Merci à toutes les personnes qui donnent de leur temps ou un peu d’argent @@ -335,9 +340,9 @@ virtuelle louée chez - + -updatedupdated2020-12-202020-12-20 +updatedupdated2021-01-232021-01-23 diff --git a/public/atom.xml b/public/atom.xml index 8440a92..c06f85d 100644 --- a/public/atom.xml +++ b/public/atom.xml @@ -4,7 +4,7 @@ OpenBSD Pour Tous 🐡 OBSD4a : Site de la communauté française autour d'OpenBSD. - 2021-01-14T19:29:50+01:00 + 2021-01-24T13:30:11+01:00 https://openbsd.fr.eu.org/ @@ -18,8 +18,8 @@ Hugo Syspatch : carp (2021/01/13) - - https://openbsd.fr.eu.org/2021/01/13/syspatch-carp-bpf/ + + https://openbsd.fr.eu.org/posts/2021/01/13/syspatch-carp-bpf/ 2021-01-13T20:06:30+01:00 2021-01-13T20:02:39+01:00 @@ -37,7 +37,7 @@ le noyau.</p> <p>Pour toutes les architectures supportées :</p> <ul> <li>amd64, arm64, i386 par <code>syspatch</code></li> -<li>armv7, hppa, landisk, loongson, luna88k, macppc, sparc64 par <a href="https://openbsd.fr.eu.org/2021/01/13/syspatch-carp-bpf/#recompilation">recompilation</a></li> +<li>armv7, hppa, landisk, loongson, luna88k, macppc, sparc64 par <a href="https://openbsd.fr.eu.org/posts/2021/01/13/syspatch-carp-bpf/#recompilation">recompilation</a></li> </ul> <hr> <h2 id="syspatch">Syspatch</h2> @@ -50,7 +50,7 @@ le noyau.</p> <pre class="chroma"><code class="language-ksh" data-lang="ksh"><span class="c1"># syspatch</span> </code></pre></td></tr></table> </div> -</div><p>Ensuite <a href="https://openbsd.fr.eu.org/2021/01/13/syspatch-carp-bpf/#restart">redémarrez</a> la machine !</p> +</div><p>Ensuite <a href="https://openbsd.fr.eu.org/posts/2021/01/13/syspatch-carp-bpf/#restart">redémarrez</a> la machine !</p> <h2 id="recompilation">Recompilation</h2> <p>Pour toute autre architecture prise en charge par le projet OpenBSD, voici les étapes de recompilation nécessaires :</p> @@ -89,7 +89,7 @@ les étapes de recompilation nécessaires :</p> <span class="c1"># make install</span> </code></pre></td></tr></table> </div> -</div><p>Pour finir, <a href="https://openbsd.fr.eu.org/2021/01/13/syspatch-carp-bpf/#restart">redémarrez</a> la machine !</p> +</div><p>Pour finir, <a href="https://openbsd.fr.eu.org/posts/2021/01/13/syspatch-carp-bpf/#restart">redémarrez</a> la machine !</p> <h2 id="restart">Restart</h2> <div class="highlight"><div class="chroma"> <table class="lntable"><tr><td class="lntd"> @@ -153,8 +153,8 @@ les étapes de recompilation nécessaires :</p> Syspatch : NDP - IPv6 (2021/01/11) - - https://openbsd.fr.eu.org/2021/01/11/syspatch-nd6/ + + https://openbsd.fr.eu.org/posts/2021/01/11/syspatch-nd6/ 2021-01-14T15:31:34+01:00 2021-01-11T15:05:12+01:00 @@ -172,7 +172,7 @@ le noyau.</p> <p>Pour toutes les architectures supportées :</p> <ul> <li>amd64, arm64, i386 par <code>syspatch</code></li> -<li>armv7, hppa, landisk, loongson, luna88k, macppc, sparc64 par <a href="https://openbsd.fr.eu.org/2021/01/11/syspatch-nd6/#recompilation">recompilation</a></li> +<li>armv7, hppa, landisk, loongson, luna88k, macppc, sparc64 par <a href="https://openbsd.fr.eu.org/posts/2021/01/11/syspatch-nd6/#recompilation">recompilation</a></li> </ul> <hr> <h2 id="syspatch">Syspatch</h2> @@ -185,7 +185,7 @@ le noyau.</p> <pre class="chroma"><code class="language-ksh" data-lang="ksh"><span class="c1"># syspatch</span> </code></pre></td></tr></table> </div> -</div><p>Ensuite <a href="https://openbsd.fr.eu.org/2021/01/11/syspatch-nd6/#restart">redémarrez</a> la machine !</p> +</div><p>Ensuite <a href="https://openbsd.fr.eu.org/posts/2021/01/11/syspatch-nd6/#restart">redémarrez</a> la machine !</p> <h2 id="recompilation">Recompilation</h2> <p>Pour toute autre architecture prise en charge par le projet OpenBSD, voici les étapes de recompilation nécessaires :</p> @@ -239,7 +239,7 @@ les étapes de recompilation nécessaires :</p> <span class="c1"># make install</span> </code></pre></td></tr></table> </div> -</div><p>Pour finir, <a href="https://openbsd.fr.eu.org/2021/01/11/syspatch-nd6/#restart">redémarrez</a> la machine !</p> +</div><p>Pour finir, <a href="https://openbsd.fr.eu.org/posts/2021/01/11/syspatch-nd6/#restart">redémarrez</a> la machine !</p> <h2 id="restart">Restart</h2> <div class="highlight"><div class="chroma"> <table class="lntable"><tr><td class="lntd"> @@ -309,8 +309,8 @@ les étapes de recompilation nécessaires :</p> Syspatch : smptd (2020/12/23) - - https://openbsd.fr.eu.org/2020/12/24/syspatch-smptd/ + + https://openbsd.fr.eu.org/posts/2020/12/24/syspatch-smptd/ 2021-01-04T15:39:26+01:00 2020-12-24T15:05:12+01:00 @@ -327,7 +327,7 @@ ressources conduisant à un plantage</strong>.</p> <p>Pour toutes les architectures supportées :</p> <ul> <li>amd64, arm64, i386 par <code>syspatch</code></li> -<li>armv7, hppa, landisk, loongson, luna88k, macppc, sparc64 par <a href="https://openbsd.fr.eu.org/2020/12/24/syspatch-smptd/#recompilation">recompilation</a></li> +<li>armv7, hppa, landisk, loongson, luna88k, macppc, sparc64 par <a href="https://openbsd.fr.eu.org/posts/2020/12/24/syspatch-smptd/#recompilation">recompilation</a></li> </ul> <hr> <h2 id="syspatch">Syspatch</h2> @@ -340,7 +340,7 @@ ressources conduisant à un plantage</strong>.</p> <pre class="chroma"><code class="language-ksh" data-lang="ksh"><span class="c1"># syspatch</span> </code></pre></td></tr></table> </div> -</div><p>Ensuite <a href="https://openbsd.fr.eu.org/2020/12/24/syspatch-smptd/#restart">redémarrez</a> le service !</p> +</div><p>Ensuite <a href="https://openbsd.fr.eu.org/posts/2020/12/24/syspatch-smptd/#restart">redémarrez</a> le service !</p> <h2 id="recompilation">Recompilation</h2> <p>Pour toute autre architecture prise en charge par le projet OpenBSD, voici les étapes de recompilation nécessaires :</p> @@ -390,7 +390,7 @@ les étapes de recompilation nécessaires :</p> <span class="c1"># make install</span> </code></pre></td></tr></table> </div> -</div><p>Pour finir, <a href="https://openbsd.fr.eu.org/2020/12/24/syspatch-smptd/#restart">redémarrez</a> le service !</p> +</div><p>Pour finir, <a href="https://openbsd.fr.eu.org/posts/2020/12/24/syspatch-smptd/#restart">redémarrez</a> le service !</p> <h2 id="restart">Restart</h2> <div class="highlight"><div class="chroma"> <table class="lntable"><tr><td class="lntd"> @@ -454,8 +454,8 @@ les étapes de recompilation nécessaires :</p> LibreSSL : 3.3.1, 3.2.3, 3.1.5 - - https://openbsd.fr.eu.org/2020/12/09/libressl-3.3.1-3.2.3-3.1.5/ + + https://openbsd.fr.eu.org/posts/2020/12/09/libressl-3.3.1-3.2.3-3.1.5/ 2020-12-09T13:39:48+01:00 2020-12-09T13:23:17+01:00 @@ -525,8 +525,8 @@ délivre trois nouvelles versions de LibreSSL.</p> OpenNTPD 6.8p1 - - https://openbsd.fr.eu.org/2020/12/09/openntpd-6.8p1/ + + https://openbsd.fr.eu.org/posts/2020/12/09/openntpd-6.8p1/ 2020-12-09T13:39:22+01:00 2020-12-09T13:13:58+01:00 @@ -616,8 +616,8 @@ server, such as when there are network connectivity issues.</p> Syspatch : asn.1, exit (2020/12/08) - - https://openbsd.fr.eu.org/2020/12/09/syspatch-asn1-exit/ + + https://openbsd.fr.eu.org/posts/2020/12/09/syspatch-asn1-exit/ 2020-12-24T15:26:33+01:00 2020-12-09T12:51:50+01:00 diff --git a/public/categories/index.html b/public/categories/index.html index 5e08258..5c1b322 100644 --- a/public/categories/index.html +++ b/public/categories/index.html @@ -14,7 +14,7 @@ Categories | OpenBSD Pour Tous 🐡 - + @@ -403,7 +403,7 @@