URI: 
       Squashed 'docs/' changes from f0f4bcb24..4429eeeea - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 81a7b6390036138356773c87a886679c81c524e1
   DIR parent e9fbadacc3f09191e2e19f112a49777eeb8df06c
  HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Thu, 16 Jan 2025 10:35:07 +0100
       
       Squashed 'docs/' changes from f0f4bcb24..4429eeeea
       
       4429eeeea Update image render hooks examples to conform with Commonmark
       5391dddea Add class attribute to heading render hook examples
       
       git-subtree-dir: docs
       git-subtree-split: 4429eeeea84bfa4b9e636deaab5c9620ccf776a6
       
       Diffstat:
         M content/en/render-hooks/headings.md |       4 ++--
         M content/en/render-hooks/images.md   |       6 +++---
       
       2 files changed, 5 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/content/en/render-hooks/headings.md b/content/en/render-hooks/headings.md
       @@ -64,7 +64,7 @@ In its default configuration, Hugo renders Markdown headings according to the [C
        [CommonMark specification]: https://spec.commonmark.org/current/
        
        {{< code file=layouts/_default/_markup/render-heading.html copy=true >}}
       -<h{{ .Level }} id="{{ .Anchor }}">
       +<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
          {{- .Text -}}
        </h{{ .Level }}>
        {{< /code >}}
       @@ -72,7 +72,7 @@ In its default configuration, Hugo renders Markdown headings according to the [C
        To add an anchor link to the right of each heading:
        
        {{< code file=layouts/_default/_markup/render-heading.html copy=true >}}
       -<h{{ .Level }} id="{{ .Anchor }}">
       +<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
          {{ .Text }}
          <a href="#{{ .Anchor }}">#</a>
        </h{{ .Level }}>
   DIR diff --git a/content/en/render-hooks/images.md b/content/en/render-hooks/images.md
       @@ -91,7 +91,7 @@ In its default configuration, Hugo renders Markdown images according to the [Com
        
        {{< code file=layouts/_default/_markup/render-image.html copy=true >}}
        <img src="{{ .Destination | safeURL }}"
       -  {{- with .Text }} alt="{{ . }}"{{ end -}}
       +  {{- with .PlainText }} alt="{{ . }}"{{ end -}}
          {{- with .Title }} title="{{ . }}"{{ end -}}
        >
        {{- /* chomp trailing newline */ -}}
       @@ -103,13 +103,13 @@ To render standalone images within `figure` elements:
        {{- if .IsBlock -}}
          <figure>
            <img src="{{ .Destination | safeURL }}"
       -      {{- with .Text }} alt="{{ . }}"{{ end -}}
       +      {{- with .PlainText }} alt="{{ . }}"{{ end -}}
            >
            {{- with .Title }}<figcaption>{{ . }}</figcaption>{{ end -}}
          </figure>
        {{- else -}}
          <img src="{{ .Destination | safeURL }}"
       -    {{- with .Text }} alt="{{ . }}"{{ end -}}
       +    {{- with .PlainText }} alt="{{ . }}"{{ end -}}
            {{- with .Title }} title="{{ . }}"{{ end -}}
          >
        {{- end -}}