Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions hugoreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ definitions:
plugin:
id: macospkgremote
type: gorun
command: github.com/gohugoio/hugoreleaser-archive-plugins/macospkgremote@latest
command: github.com/gohugoio/hugoreleaser-archive-plugins/macospkgremote@4a5b6981ba006743eede18b41325695a23cb6c07
custom_settings:
package_identifier: io.gohugo.hugo
package_version: ${HUGORELEASER_TAG}
package_version:
${HUGORELEASER_TAG}
# Needed by Wazero (currently only used when transform.ToMath is used)
# Note that we pass this map to s3 which takes metadata as a map of strings.
package_entitlements: "com.apple.security.cs.allow-jit,com.apple.security.cs.allow-unsigned-executable-memory"
bucket: s3fptest
queue: https://sqs.eu-north-1.amazonaws.com/656975317043/s3fptest_client
access_key_id: ${S3RPC_CLIENT_ACCESS_KEY_ID}
Expand Down
2 changes: 1 addition & 1 deletion testscripts/commands/deprecate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stderr 'ERROR deprecated: item was deprecated in Hugo'
-- hugo.toml --
baseURL = "https://example.com/"
disableKinds = ["taxonomy", "term"]
-- layouts/index.html --
-- layouts/home.html --
Deprecate:
{{ if eq hugo.Environment "info" }}
{{ debug.TestDeprecationInfo "item" "alternative" }}
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ grep 'IsServer: false;IsProduction: true' public/index.html
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
-- layouts/home.html --
Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
-- layouts/_default/single.html --
-- layouts/single.html --
Title: {{ .Title }}
-- content/p1.md --
---
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo__path-warnings-postprocess.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ body {
-- content/p1.md --
-- content/p2.md --
-- content/p3.md --
-- layouts/index.html --
-- layouts/home.html --
Home.
-- layouts/_default/single.html --
-- layouts/single.html --
{{ $css := resources.Get "css/styles.css" }}
{{ $css := $css | minify | fingerprint | resources.PostProcess }}
CSS: {{ $css.RelPermalink }}
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo__path-warnings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ url: /p1/
---
url: /p1/
---
-- layouts/index.html --
-- layouts/home.html --
Home.
-- layouts/_default/single.html --
-- layouts/single.html --
Single.

2 changes: 1 addition & 1 deletion testscripts/commands/hugo__path-warnings_issue13164.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ hugo --printPathWarnings
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
-- assets/foo.txt --
foo
-- layouts/index.html --
-- layouts/home.html --
A: {{ (resources.Get "foo.txt").RelPermalink }}
B: {{ (resources.GetMatch "foo.txt").RelPermalink }}
C: {{ (index (resources.Match "foo.txt") 0).RelPermalink }}
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo__processingstats.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ baseURL = "https://example.com/"
weight = 2
title = "French Title"
contentDir = "content/fr"
-- layouts/index.html --
-- layouts/home.html --
Home.
-- layouts/_default/single.html --
-- layouts/single.html --
Single.
{{ range .Resources }}
{{ $img := .Resize "3x" }}
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo__processingstats2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ stdout 'Non-page files.*/| 2\s'
-- content/posts/post-1/index.md --
-- hugo.toml --
baseURL = "https://example.com/"
-- layouts/_default/list.html --
-- layouts/list.html --
List.
-- layouts/_default/single.html --
-- layouts/single.html --
Single.

2 changes: 1 addition & 1 deletion testscripts/commands/hugo__publishdir_in_config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ grep 'Home' newpublic/index.html
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
publishDir = "newpublic"
-- layouts/index.html --
-- layouts/home.html --
Home.
4 changes: 2 additions & 2 deletions testscripts/commands/hugo__watch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ stop
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
-- layouts/home.html --
Home.
-- layouts/_default/single.html --
-- layouts/single.html --
Title: {{ .Title }}| {{ .Content }}
-- content/p1.md --
---
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo_build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ grep 'IsServer: false;IsProduction: true' public/index.html
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
-- layouts/home.html --
Home|IsServer: {{ hugo.IsServer }};IsProduction: {{ hugo.IsProduction }}|
-- layouts/_default/single.html --
-- layouts/single.html --
Title: {{ .Title }}
-- content/p1.md --
---
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo_configdev_env.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ grep 'myparam: dev§' public/index.html
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
-- layouts/home.html --
myparam: {{ site.Params.myparam }}§
-- layouts/_default/single.html --
-- layouts/single.html --
Title: {{ .Title }}
-- config/development/params.toml --
myparam = "dev"
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo_configdev_environment.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ grep 'myparam: §' public/index.html
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
-- layouts/home.html --
myparam: {{ site.Params.myparam }}§
-- layouts/_default/single.html --
-- layouts/single.html --
Title: {{ .Title }}
-- config/development/params.toml --
myparam = "dev"
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo_configprod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ grep 'myparam: §' public/index.html
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
-- layouts/home.html --
myparam: {{ site.Params.myparam }}§
-- layouts/_default/single.html --
-- layouts/single.html --
Title: {{ .Title }}
-- config/development/params.toml --
myparam = "dev"
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo_printpathwarnings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ stderr 'Duplicate target paths: .index.html \(2\)'
-- hugo.toml --
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404", "section"]
baseURL = "https://example.org/"
-- layouts/_default/single.html --
-- layouts/single.html --
Single.
-- layouts/index.html --
-- layouts/home.html --
Home.
-- content/p1.md --
---
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/hugo_printunusedtemplates.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ stderr 'Template /list.html is unused'
-- hugo.toml --
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404", "section", "page"]
baseURL = "https://example.org/"
-- layouts/index.html --
-- layouts/home.html --
Home.
-- layouts/_default/list.html --
-- layouts/list.html --
{{ errorf "unused template: %s" .Kind }}
2 changes: 1 addition & 1 deletion testscripts/commands/server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ disableKinds = ["taxonomy", "term", "sitemap"]
myenv = "theproduction"
-- config/development/params.toml --
myenv = "thedevelopment"
-- layouts/index.html --
-- layouts/home.html --
<!DOCTYPE html>
<body>
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|ServerPort: {{ site.ServerPort }}|myenv: {{ .Site.Params.myenv }}|Env: {{ hugo.Environment }}|IsServer: {{ hugo.IsServer }}|
Expand Down
2 changes: 1 addition & 1 deletion testscripts/commands/server__edit_config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ languageName = "Nynorsk"
title = "Hugo Nynorsk Server Test"
weight = 2

-- layouts/index.html --
-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ .Permalink }}|


4 changes: 2 additions & 2 deletions testscripts/commands/server__edit_content.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ stopServer
title = "Hugo Server Test"
baseURL = "https://example.org/"
disableKinds = ["taxonomy", "term", "sitemap"]
-- layouts/index.html --
-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- layouts/_default/single.html --
-- layouts/single.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- content/_index.md --
---
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/server__error_recovery_edit_config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ stopServer
title = "Hugo Server Test"
baseURL = "https://example.org/"
disableKinds = ["taxonomy", "term", "sitemap"]
-- layouts/index.html --
-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- layouts/_default/single.html --
-- layouts/single.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- content/_index.md --
---
Expand Down
4 changes: 2 additions & 2 deletions testscripts/commands/server__error_recovery_edit_content.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ stopServer
title = "Hugo Server Test"
baseURL = "https://example.org/"
disableKinds = ["taxonomy", "term", "sitemap"]
-- layouts/index.html --
-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- layouts/_default/single.html --
-- layouts/single.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- content/_index.md --
---
Expand Down
2 changes: 1 addition & 1 deletion testscripts/commands/server__multihost.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ baseURL = "https://fr.example.org/"
title = "Hugo Serveur Test"
languageName = "Français"
weight = 2
-- layouts/index.html --
-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|
-- static/en/mystatic/mytext.txt --
en_mytext
Expand Down
2 changes: 1 addition & 1 deletion testscripts/commands/server__watch_hugo_stats.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ disableKinds = ["taxonomy", "term", "sitemap"]
[[module.mounts]]
source = "hugo_stats.json"
target = "assets/watching/hugo_stats.json"
-- layouts/index.html --
-- layouts/home.html --
<body>Home</body>
2 changes: 1 addition & 1 deletion testscripts/commands/server__watch_moduleconfig.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ title = "Hugo Server Test"
baseURL = "https://example.org/"
disableKinds = ["section", "page", "taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404"]
theme = "mytheme"
-- layouts/index.html --
-- layouts/home.html --
foo: {{ .Site.Params.foo }}
-- themes/mytheme/hugo.toml --
[params]
Expand Down
2 changes: 1 addition & 1 deletion testscripts/commands/server_disablelivereload.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ stopServer
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
-- layouts/home.html --
<html>
<head>
</head>
Expand Down
2 changes: 1 addition & 1 deletion testscripts/commands/server_disablelivereload__config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stopServer
baseURL = "http://example.org/"
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
disableLiveReload = true
-- layouts/index.html --
-- layouts/home.html --
<html>
<head>
</head>
Expand Down
2 changes: 1 addition & 1 deletion testscripts/commands/server_render_static_to_disk.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ weight = 2
This is a static file in English.
-- static/en/mystatic.txt --
This is a static file in English.
-- layouts/index.html --
-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|


2 changes: 1 addition & 1 deletion testscripts/commands/server_render_to_memory.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ baseURL = "https://example.org/"
disableKinds = ["taxonomy", "term", "sitemap"]
-- static/mystatic.txt --
This is a static file.
-- layouts/index.html --
-- layouts/home.html --
Title: {{ .Title }}|BaseURL: {{ site.BaseURL }}|


2 changes: 1 addition & 1 deletion testscripts/commands/warnf_stderr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ stderr 'warning'
-- hugo.toml --
baseURL = "http://example.org/"
disableKinds = ["RSS", "page", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
-- layouts/index.html --
-- layouts/home.html --
Home
{{ warnf "This is a warning" }}

Loading