~ashie/blog

d8832b1167078495712cb53cfd560dd1d8a13f5e — Ash 14 days ago 44dc6de
chore(config): use .Params instead of .Author because of .Author deprecation
M hugo.toml => hugo.toml +15 -10
@@ 11,15 11,20 @@ removePathAccents = true
uglyURLs = true
timeZone = "Europe/Prague"

[author]
  name = "Ash"
  email = "contact@ash.fail"
  matrix = "@ash:m.ash.fail"
  discord = "ash.fail"
  git = "git.ash.fail"
  sourcehut = "git.sr.ht/~ashie"
  codeberg = "codeberg.org/ashie"
  xmpp = "ashie@xmpp.is"
[params]
  [params.author]
    name = "Ash"
    email = "contact@ash.fail"

    discord = "ash.fail"
    matrix = "@ash:m.ash.fail"
    signal_name = "ash.530"
    signal_url = "https://signal.me/#eu/akoidrNtAXcMTrF6dSY9b6Ji8sJR6k7Zg2LvwWCK_Ji_hGQRIpVM9pOjaXUCdOMM"
    xmpp = "ashie@xmpp.is"

    git = "git.ash.fail"
    sourcehut = "git.sr.ht/~ashie"
    codeberg = "codeberg.org/ashie"

[imaging]
  quality = 100


@@ 36,4 41,4 @@ timeZone = "Europe/Prague"
  blog = "/blog/:year:month:day-:filename"

[security.exec]
  allow = ["sass"]
  allow = ["git", "sass"]

M layouts/_default/rss.xml => layouts/_default/rss.xml +3 -3
@@ 15,9 15,9 @@
    {{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
    <copyright>{{ .Site.Copyright }}</copyright>
    <managingEditor>
        {{ .Site.Author.email }} ({{ .Site.Author.name }})
        {{ .Site.Params.author.email }} ({{ .Site.Params.author.name }})
    </managingEditor>
    <webMaster>{{ .Site.Author.email }} ({{ .Site.Author.name }})</webMaster>
    <webMaster>{{ .Site.Params.author.email }} ({{ .Site.Params.author.name }})</webMaster>
    <lastBuildDate>
        {{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
    </lastBuildDate>


@@ 36,7 36,7 @@
            <title>{{ .Title }}</title>
            <link>{{ .Permalink }}</link>
            <description>{{ .Content | html }}</description>
            <author>{{ .Site.Author.email }} ({{ .Site.Author.name }})</author>
            <author>{{ .Site.Params.author.email }} ({{ .Site.Params.author.name }})</author>
            <guid>
                {{ with .Params.forceGuid }}
                    {{ . }}

M layouts/partials/footer.html => layouts/partials/footer.html +1 -1
@@ 1,6 1,6 @@
<footer>
    I reserve all rights to the contents of this site. The
    <a href="https://{{ index .Page.Site.Author "git" }}/blog"
    <a href="https://{{ index .Site.Params.author "git" }}/blog"
        >source code<sup>↗</sup></a
    >
    is licensed under

M layouts/partials/navbar-and-title.html => layouts/partials/navbar-and-title.html +1 -1
@@ 5,7 5,7 @@
        <span class="date">{{ .Format "January 2, 2006" }}</span>
    {{- end }}
    {{- if eq .Type "blog" }}
        {{- $git := (index .Page.Site.Author "git") }}
        {{- $git := (index .Page.Site.Params.author "git") }}
        <span id="article-source">
            <a
                href="https://{{ $git }}/blog/tree/master/item/content/{{ .File.Path }}?view-source"

M layouts/shortcodes/author.html => layouts/shortcodes/author.html +1 -1
@@ 1,1 1,1 @@
{{ index $.Page.Site.Author (.Get 0) -}}
{{ index .Site.Params.author (.Get 0) -}}