- adds language code to each highlight markdown
- uses consistent TOML for config samples and YAML for frontmatter
samples
**Closing issues**
closes#735
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
Bumps
[@davidsneighbour/release-config](https://github.com/davidsneighbour/configurations)
from 2024.3.46 to 2024.4.5.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="bf705855d0"><code>bf70585</code></a>
chore(release): publish v2024.4.5</li>
<li><a
href="9126d00afe"><code>9126d00</code></a>
chore: rework into commonjs package</li>
<li><a
href="11a1bb80ce"><code>11a1bb8</code></a>
chore(release): publish v2024.4.4</li>
<li><a
href="87bffa8f03"><code>87bffa8</code></a>
chore: rework into commonjs package</li>
<li><a
href="81de5630b0"><code>81de563</code></a>
chore(deps): update dependency eslint-plugin-cypress to v4 (<a
href="https://redirect.github.com/davidsneighbour/configurations/issues/1602">#1602</a>)</li>
<li><a
href="bda4d0e39f"><code>bda4d0e</code></a>
chore(deps): update dependency stylelint to v16.10.0 (<a
href="https://redirect.github.com/davidsneighbour/configurations/issues/1603">#1603</a>)</li>
<li><a
href="df1261f312"><code>df1261f</code></a>
chore(deps): update dependency eslint-plugin-cypress to v3.6.0 (<a
href="https://redirect.github.com/davidsneighbour/configurations/issues/1601">#1601</a>)</li>
<li><a
href="d9e9439f85"><code>d9e9439</code></a>
chore(deps): add and update dependencies</li>
<li><a
href="58c275e4a4"><code>58c275e</code></a>
biome(feat): add biome-config</li>
<li><a
href="47db79f6de"><code>47db79f</code></a>
chore(release): publish v2024.4.3</li>
<li>Additional commits viewable in <a
href="https://github.com/davidsneighbour/configurations/compare/v2024.3.46...v2024.4.5">compare
view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@davidsneighbour/release-config&package-manager=npm_and_yarn&previous-version=2024.3.46&new-version=2024.4.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps
[@davidsneighbour/tools](https://github.com/davidsneighbour/configurations)
from 2024.3.46 to 2024.4.5.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="bf705855d0"><code>bf70585</code></a>
chore(release): publish v2024.4.5</li>
<li><a
href="9126d00afe"><code>9126d00</code></a>
chore: rework into commonjs package</li>
<li><a
href="11a1bb80ce"><code>11a1bb8</code></a>
chore(release): publish v2024.4.4</li>
<li><a
href="87bffa8f03"><code>87bffa8</code></a>
chore: rework into commonjs package</li>
<li><a
href="81de5630b0"><code>81de563</code></a>
chore(deps): update dependency eslint-plugin-cypress to v4 (<a
href="https://redirect.github.com/davidsneighbour/configurations/issues/1602">#1602</a>)</li>
<li><a
href="bda4d0e39f"><code>bda4d0e</code></a>
chore(deps): update dependency stylelint to v16.10.0 (<a
href="https://redirect.github.com/davidsneighbour/configurations/issues/1603">#1603</a>)</li>
<li><a
href="df1261f312"><code>df1261f</code></a>
chore(deps): update dependency eslint-plugin-cypress to v3.6.0 (<a
href="https://redirect.github.com/davidsneighbour/configurations/issues/1601">#1601</a>)</li>
<li><a
href="d9e9439f85"><code>d9e9439</code></a>
chore(deps): add and update dependencies</li>
<li><a
href="58c275e4a4"><code>58c275e</code></a>
biome(feat): add biome-config</li>
<li><a
href="47db79f6de"><code>47db79f</code></a>
chore(release): publish v2024.4.3</li>
<li>Additional commits viewable in <a
href="https://github.com/davidsneighbour/configurations/compare/v2024.3.46...v2024.4.5">compare
view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@davidsneighbour/tools&package-manager=npm_and_yarn&previous-version=2024.3.46&new-version=2024.4.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
</details>
- move environment from production to general build section
- set HUGO_VERSION to 0.128.0 as per hugo.toml
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
refactor: simplify lang attribute in html element
As of Hugo v0.122.4, these are equivalent:
```
{{ site.LanguageCode | default site.Language.Lang }}
{{ site.Language.LanguageCode }}
```
See <https://gohugo.io/methods/site/language/#methods>
A bare bones setup of two pages and two posts gets broken because of a
template change missed in #665
Fatal error message in readable form:
```
ERROR render:
failed to render pages:
render of "home" failed: "/themes/ananke/layouts/index.html:48:23":
execute of template failed:
template:
index.html:48:23:
executing "main" at <.Site.GetPage>: can't evaluate field Site in type string
```
Steps to reproduce:
```shell
hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml
echo -e "+++\ntitle='Home'\n+++\n\nMain page" > content/_index.md
echo Foo. > content/page1.md
echo Bar > content/page2.md
mkdir -p content/post
echo "First post." > content/post/post1.md
echo "Second post." > content/post/post2.md
hugo server
Watching for changes in .../quickstart/{archetypes,assets,content,data,i18n,layouts,static,themes}
Watching for config changes in .../quickstart/hugo.toml, ...quickstart/themes/ananke/config.yaml
Start building sites …
hugo v0.125.3-474c4c02212cf97712c6fbf4159c68822ea6e078+extended darwin/amd64 BuildDate=2024-04-22T17:18:35Z VendorInfo=brew
Built in 67 ms
Error: error building site: render: failed to render pages: render of "home" failed: ".../quickstart/themes/ananke/layouts/index.html:48:23": execute of template failed: template: index.html:48:23: executing "main" at <.Site.GetPage>: can't evaluate field Site in type string
```
When you want to publish content that is already published on a different site. You need to reference a canonical url of the original content.
By defining the `canonicalUrl` in the front matter definition the canonical url is set in the headers.