diff --git a/.prettierignore b/.prettierignore index b85a9dbbd..e12b83d00 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,7 +2,6 @@ **/icons.html # These are whitespace sensitive. layouts/_default/_markup/render-code* -layouts/shortcodes/glossary.html # Odd template syntax. layouts/_default/_markup/render-heading* @@ -13,3 +12,4 @@ layouts/partials/layouts/head/head.html # Auto generated. assets/css/components/chroma*.css assets/jsconfig.json + diff --git a/layouts/404.html b/layouts/404.html index bb92ea160..6d962ffc0 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -7,7 +7,7 @@ gopher + class="w-32 ml-12 float-right">
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 726610258..c38d4dd75 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,3 +1,4 @@ +{{/* prettier-ignore-start */ -}} {{- /* Last modified: 2025-01-19T14:44:56-08:00 */}} {{- /* @@ -76,7 +77,7 @@ either of these shortcodes in conjunction with this render hook. @returns {template.html} */}} - +{{/* prettier-ignore-end */ -}} {{- /* Initialize. */}} {{- $renderHookName := "link" }} @@ -185,24 +186,26 @@ either of these shortcodes in conjunction with this render hook. {{- end }} {{- /* Render anchor element. */ -}} -{{ .Text }} + >{{ .Text }} {{- define "partials/inline/h-rh-l/validate-fragment.html" }} {{- /* - Validates the fragment portion of a link destination. + Validates the fragment portion of a link destination. - @context {string} contentPath The page containing the link. - @context {string} errorLevel The error level when unable to resolve destination; ignore (default), warning, or error. - @context {page} page The page corresponding to the link destination - @context {struct} parsedURL The link destination parsed by urls.Parse. - @context {string} renderHookName The name of the render hook. + @context {string} contentPath The page containing the link. + @context {string} errorLevel The error level when unable to resolve destination; ignore (default), warning, or error. + @context {page} page The page corresponding to the link destination + @context {struct} parsedURL The link destination parsed by urls.Parse. + @context {string} renderHookName The name of the render hook. */}} {{- /* Initialize. */}} @@ -248,20 +251,20 @@ either of these shortcodes in conjunction with this render hook. {{- define "partials/inline/h-rh-l/get-glossary-link-attributes.html" }} {{- /* - Returns the anchor element attributes for a link to the given glossary term. + Returns the anchor element attributes for a link to the given glossary term. - It first checks for the existence of a glossary page for the given term. If - no page is found, it then checks for a glossary page for the singular form of - the term. If neither page exists it throws a warning or error dependent on - the errorLevel setting + It first checks for the existence of a glossary page for the given term. If + no page is found, it then checks for a glossary page for the singular form of + the term. If neither page exists it throws a warning or error dependent on + the errorLevel setting - The returned href attribute does not point to the glossary term page. - Instead, via its fragment, it points to an entry on the glossary page. + The returned href attribute does not point to the glossary term page. + Instead, via its fragment, it points to an entry on the glossary page. - @context {string} contentPath The page containing the link. - @context {string} errorLevel The error level when unable to resolve destination; ignore (default), warning, or error. - @context {string} renderHookName The name of the render hook. - @context {string} text The link text. + @context {string} contentPath The page containing the link. + @context {string} errorLevel The error level when unable to resolve destination; ignore (default), warning, or error. + @context {string} renderHookName The name of the render hook. + @context {string} text The link text. */}} {{- /* Get context.. */}} @@ -308,7 +311,7 @@ either of these shortcodes in conjunction with this render hook. {{- end }} {{- /* Create the href attribute. */}} - {{- $href := ""}} + {{- $href := "" }} {{- if $termActual }} {{- $href = fmt.Printf "%s#%s" $glossaryPage.RelPermalink (anchorize $termActual) }} {{- end }} diff --git a/layouts/index.html b/layouts/index.html index 50dc2fbf3..392f66cd8 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,9 +1,9 @@ {{ define "main" }}
{{ partial "layouts/home/opensource.html" . }} -
+
{{ partial "layouts/home/sponsors.html" (dict "ctx" . "gtag" "home" ) }} -
+
{{ partial "layouts/home/features.html" . }}
{{ end }} @@ -15,7 +15,7 @@ Hugo Logo + class="w-64 aspect-3/1 mx-auto mb-8">

The world’s fastest framework for building websites diff --git a/layouts/partials/helpers/funcs/get-remote-data.html b/layouts/partials/helpers/funcs/get-remote-data.html index 78b2ba06e..ed7043421 100644 --- a/layouts/partials/helpers/funcs/get-remote-data.html +++ b/layouts/partials/helpers/funcs/get-remote-data.html @@ -1,3 +1,4 @@ +{{/* prettier-ignore-start */ -}} {{/* Parses the serialized data from the given URL and returns a map or an array. @@ -8,7 +9,7 @@ Supports CSV, JSON, TOML, YAML, and XML. @example {{ partial "get-remote-data.html" "https://example.org/foo.json" }} */}} - +{{/* prettier-ignore-end */ -}} {{ $url := . }} {{ $data := dict }} {{ with try (resources.GetRemote $url) }} diff --git a/layouts/partials/helpers/linkcss.html b/layouts/partials/helpers/linkcss.html index c12406757..814d2b52f 100644 --- a/layouts/partials/helpers/linkcss.html +++ b/layouts/partials/helpers/linkcss.html @@ -5,7 +5,7 @@ + {{ template `render-attributes` $attr }}> {{ else }} {{ with $r | minify | fingerprint }} + {{ template `render-attributes` $attr }}> {{ end }} {{ end }} diff --git a/layouts/partials/helpers/picture.html b/layouts/partials/helpers/picture.html index 7f30f1437..454dd705e 100644 --- a/layouts/partials/helpers/picture.html +++ b/layouts/partials/helpers/picture.html @@ -9,17 +9,17 @@ + media="(min-width: 1200px)"> - - + media="(min-width: 1200px)"> + + + height="{{ $image1x.Height }}"> diff --git a/layouts/partials/layouts/footer.html b/layouts/partials/layouts/footer.html index 99a856f7e..1b17e44e4 100644 --- a/layouts/partials/layouts/footer.html +++ b/layouts/partials/layouts/footer.html @@ -1,4 +1,5 @@ -