aboutsummaryrefslogtreecommitdiffhomepage
path: root/_vendor
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-02-07 20:46:41 +0100
committerBjørn Erik Pedersen <[email protected]>2024-02-07 20:46:41 +0100
commit6efb279bfacbd7304cef994be8181c6f804e7dd4 (patch)
tree69a5547ad3598650a08d828e1dce64171dd5ea29 /_vendor
parent9b0050e9aabe4be65c78ccf292a348f309d50ccd (diff)
downloadhugo-6efb279bfacbd7304cef994be8181c6f804e7dd4.tar.gz
hugo-6efb279bfacbd7304cef994be8181c6f804e7dd4.zip
Squashed 'docs/' changes from 5c085a37b..a9584e3d1
a9584e3d1 ci: bump GitHub workflow actions to latest versions f37ee374d Fix methods related to time.After a49214057 Correct heading render hook example 4b696f936 Update README.md b5a6e4039 Clean up the contributing section a5d79ed19 Fixed typo: instea → instead 6150a60e3 Remove the "local file templates" page 9395743dc Update/vendor theme 33d8c10cc Remove output format "name" parameter 7200ad97d Add security section to resources.GetRemote page 3f1e056b2 Remove erroneous front matter field 07c9a7e42 Add alpha index to glossary 6619c8aa0 Fix Page.Params example 145a92359 Simplify string concat example in math.Add 42488bb09 Add string concat example to math.Add eb20521a2 Fix flash of unstyled content with mathematical markup 74603bebe Fix typo in 'typesetting' git-subtree-dir: docs git-subtree-split: a9584e3d146c4a194d937a4dc8a37cde5ba1c618
Diffstat (limited to '_vendor')
-rw-r--r--_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html7
-rw-r--r--_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data-card.html50
-rw-r--r--_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html35
-rw-r--r--_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/maintenance-pages-table.html4
-rw-r--r--_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/math.html11
-rw-r--r--_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/page-edit.html2
-rw-r--r--_vendor/modules.txt2
7 files changed, 72 insertions, 39 deletions
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
index 63b5b10f5..beb2d8619 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!doctype html>
<html
class="no-js"
lang="{{ with $.Site.LanguageCode }}
@@ -98,7 +98,8 @@
{{ partial "gtag.html" . }}
{{ end }}
- {{ if .Param "math" }}
+ {{ $hasMath := .Param "math" }}
+ {{ if $hasMath }}
{{ partialCached "math.html" . }}
{{ end }}
@@ -107,7 +108,7 @@
<body
class="ma0 sans-serif bg-primary-color-light{{ with getenv "HUGO_ENV" }}
{{ . }}
- {{ end }}">
+ {{ end }} {{ if $hasMath }}{{ print " dn" }}{{ end }}">
{{ partial "hooks/after-body-start.html" . }}
{{ block "nav" . }}{{ partial "site-nav.html" . }}{{ end }}
{{ block "header" . }}{{ end }}
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data-card.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data-card.html
index 622df7953..4caa21f3e 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data-card.html
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data-card.html
@@ -1,32 +1,42 @@
{{ $author := .context.Params.author }}
{{ if $author }}
<aside class="mw5 center bg-white br3 pa3 pa4-ns mv3 ba b--black-10 nested-links">
- {{ $urlPre := "https://api.github.com" }}
- {{ $user_json := getJSON $urlPre "/users/" $author }}
- <div class="tc">
-
- {{ if $user_json.avatar_url }}
- <a href="{{ $user_json.html_url }}" class="link hover-bg-light-gray pa1 br-100">
- <img src="{{ $user_json.avatar_url }}&size={{ .size }}" alt="" class="br-100 ba b--light-gray">
- </a>
+ {{ $data := "" }}
+ {{ $url := urls.JoinPath "https://api.github.com/users" $author }}
+ {{ with resources.GetRemote $url }}
+ {{ with .Err }}
+ {{ errorf "%s" . }}
+ {{ else }}
+ {{ $data = . | transform.Unmarshal }}
{{ end }}
+ {{ else }}
+ {{ errorf "Unable to get remote resource %q" $url }}
+ {{ end }}
+
+ <div class="tc">
+ {{ with $data }}
- {{ if $user_json.name }}
- <h3 class="f4">
- <a href="{{ $user_json.html_url }}" class="link dim">
- {{ $user_json.name }}
+ {{ with .avatar_url }}
+ <a href="{{ . }}" class="link hover-bg-light-gray pa1 br-100">
+ <img src="{{ . }}&size={{ $.size }}" alt="" class="br-100 ba b--light-gray">
</a>
- </h3>
- <hr class="mw3 bb bw1 b--black-10">
- {{ end }}
+ {{ end }}
+ {{ with .name }}
+ <h3 class="f4">
+ <a href="{{ $data.html_url }}" class="link dim">
+ {{ . | htmlEscape }}
+ </a>
+ </h3>
+ <hr class="mw3 bb bw1 b--black-10">
+ {{ end }}
+ {{ with .bio }}
+ <p class="lh-copy measure center f6 black-70">
+ {{ . | htmlEscape }}
+ </p>
+ {{ end }}
- {{ if $user_json.bio }}
- <p class="lh-copy measure center f6 black-70">
- {{ $user_json.bio }}
- </p>
{{ end }}
-
</div>
</aside>
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html
index 25baea80a..fbad3a0a7 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html
@@ -1,21 +1,36 @@
{{ $author := .context.Params.author }}
{{ if $author }}
<aside class="mw5 br3 mv3 nested-links">
- {{ $urlPre := "https://api.github.com" }}
- {{ $user_json := getJSON $urlPre "/users/" $author }}
- {{ if $user_json.name }}
+
+ {{ $data := "" }}
+ {{ $url := urls.JoinPath "https://api.github.com/users" $author }}
+ {{ with resources.GetRemote $url }}
+ {{ with .Err }}
+ {{ errorf "%s" . }}
+ {{ else }}
+ {{ $data = . | transform.Unmarshal }}
+ {{ end }}
+ {{ else }}
+ {{ errorf "Unable to get remote resource %q" $url }}
+ {{ end }}
+
+ {{ with $data }}
+ {{ with .name }}
<h3 class="f4 dib">
- {{ $user_json.name | htmlEscape }}
+ {{ . | htmlEscape }}
</h3>
-
{{ end }}
- {{ if $user_json.bio }}
+ {{ with .bio }}
<p class="lh-copy measure center mt0 f6 black-60">
- {{ $user_json.bio | htmlEscape }}
+ {{ . | htmlEscape }}
</p>
{{ end }}
- <a href="{{ $user_json.html_url }}" class="link dim v-mid dib">
- {{ partial "svg/github-squared.svg" (dict "fill" "gray" "width" "16" "height" "18") }}
- </a>
+ {{ with .html_url }}
+ <a href="{{ . }}" class="link dim v-mid dib">
+ {{ partial "svg/github-squared.svg" (dict "fill" "gray" "width" "16" "height" "18") }}
+ </a>
+ {{ end }}
+ {{ end }}
+
</aside>
{{ end }}
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/maintenance-pages-table.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/maintenance-pages-table.html
index a2429a335..f1fb6d059 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/maintenance-pages-table.html
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/maintenance-pages-table.html
@@ -14,11 +14,11 @@
<a href="{{ .Permalink }}">{{ .Title }}</a>
</td>
<td class="pv2 ph3">
- <a href="{{.Site.Params.ghrepo}}blob/master/content/{{.Lang }}/{{.File.Path}}">
+ <a href="{{ .Site.Params.ghrepo }}blob/master/content/{{ .Language.Lang }}/{{ .File.Path }}">
{{ with .GitInfo }}{{ .Subject }}{{ else }}Source{{ end }}
</a>
</td>
</tr>
{{ end }}
</tbody>
-</table> \ No newline at end of file
+</table>
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/math.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/math.html
index defcaa055..b1eb5c8db 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/math.html
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/math.html
@@ -2,8 +2,15 @@
<script>
MathJax = {
tex: {
- displayMath: [['\\[', '\\]'], ['$$', '$$']], // block
- inlineMath: [['\\(', '\\)']] // inline
+ inlineMath: [['$', '$'], ['\\(', '\\)']], // inline
+ displayMath: [['$$', '$$'], ['\\[', '\\]']] // block
+ },
+ startup: {
+ pageReady: () => {
+ return MathJax.startup.defaultPageReady().then(() => {
+ document.body.classList.remove("dn");
+ });
+ }
}
};
</script>
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/page-edit.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/page-edit.html
index edf84669e..f41e5b791 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/page-edit.html
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/page-edit.html
@@ -1,3 +1,3 @@
-<a href="{{.Site.Params.ghrepo}}edit/master/content/{{ .Lang }}/{{.File.Path}}" class="
+<a href="{{.Site.Params.ghrepo }}edit/master/content/{{ .Language.Lang }}/{{ .File.Path }}" class="
f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
">Improve this page</a>
diff --git a/_vendor/modules.txt b/_vendor/modules.txt
index c21962edd..a63ac09b9 100644
--- a/_vendor/modules.txt
+++ b/_vendor/modules.txt
@@ -1 +1 @@
-# github.com/gohugoio/gohugoioTheme v0.0.0-20240126181647-31e47d550511
+# github.com/gohugoio/gohugoioTheme v0.0.0-20240201183016-8e648a3b5342