Skip to content

Commit

Permalink
Update Hugo Blox
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoalcarazdelaosa committed Nov 9, 2023
1 parent de8649b commit 313391e
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 80 deletions.
2 changes: 1 addition & 1 deletion assets/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"baseUrl": ".",
"paths": {
"*": [
"../../../../Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!hugo!blox/hugo-blox-builder/modules/blox-bootstrap/[email protected].20231108143325-448ed0e3bd2b/assets/*"
"../../../../Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!hugo!blox/hugo-blox-builder/modules/blox-bootstrap/[email protected].20231109180118-425726d96b98/assets/*"
]
}
}
Expand Down
10 changes: 0 additions & 10 deletions config/_default/config.yaml → config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ hasCJKLanguage: false
defaultContentLanguageInSubdir: false
removePathAccents: true

############################
## MODULES
############################

module:
imports:
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5

############################
## ADVANCED
############################
Expand Down
10 changes: 10 additions & 0 deletions config/_default/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
############################
## HUGO MODULES
## Install or uninstall themes and plugins here.
## Docs: https://gohugo.io/hugo-modules/
############################

imports:
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5
2 changes: 1 addition & 1 deletion data/page_sharer.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Page Sharer
# Documentation: https://wowchemy.com/docs/customization/#page-sharer
# Documentation: https://docs.hugoblox.com/reference/page-sharer/

[[buttons]]
id = "twitter"
Expand Down
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module github.com/rodrigoalcarazdelaosa/fisiquimicamente
go 1.21

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.3.2-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal v1.1.3-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo v0.2.3-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231109180118-425726d96b98
github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.3.2-0.20231109180118-425726d96b98
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231109180118-425726d96b98
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal v1.1.3-0.20231109180118-425726d96b98
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo v0.2.3-0.20231109180118-425726d96b98
)
20 changes: 10 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231108143325-448ed0e3bd2b h1:5xDE5hd1KTEDX+s6skzWZmDP9m27eL03X5qREPlQORw=
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231108143325-448ed0e3bd2b/go.mod h1:xZiTEEurbEwj/NhZohozvlyLCGVCT2wARHDAJeqKG/c=
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231109180118-425726d96b98 h1:oOIQTJVTg2GAVazMEPLAJyy0u41Mxtug7n+zBua0hvg=
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.7-0.20231109180118-425726d96b98/go.mod h1:xZiTEEurbEwj/NhZohozvlyLCGVCT2wARHDAJeqKG/c=
github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.3.1/go.mod h1:So8+V2U+TNxlXmcpZfdDX0muLh3PdJ7z92h30sv3bZg=
github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.3.2-0.20231108143325-448ed0e3bd2b h1:cce+24MRWdN/sM88FtrUYYVJpOs4w2FA7hiou9tRBy0=
github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.3.2-0.20231108143325-448ed0e3bd2b/go.mod h1:So8+V2U+TNxlXmcpZfdDX0muLh3PdJ7z92h30sv3bZg=
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b h1:W8YVjA0quc4omsSJbsf80MRlB8Cd9DXnqlgYehikezM=
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108143325-448ed0e3bd2b/go.mod h1:C7jfxMLv1bEUqbM9XDSmEpfOpS8w06OgqNDEcbuRgL4=
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal v1.1.3-0.20231108143325-448ed0e3bd2b h1:0xNoHEBb2QDoMSXVJuNLQTvdQZwoW0faCCJSfGxftdk=
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal v1.1.3-0.20231108143325-448ed0e3bd2b/go.mod h1:F7quX1aEkV2pToTpmDBXOSTkytAnCKkqv/JFLclqa2g=
github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.3.2-0.20231109180118-425726d96b98 h1:FuBfsdC6Os8yO7Ng+H7x0/lwb8K74NDVK/cydeE+5PE=
github.com/HugoBlox/hugo-blox-builder/modules/blox-core v0.3.2-0.20231109180118-425726d96b98/go.mod h1:So8+V2U+TNxlXmcpZfdDX0muLh3PdJ7z92h30sv3bZg=
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231109180118-425726d96b98 h1:IvrlMdvhF/ElKdnM5wGD5FOVlR/X6TkZlGCWypPq5II=
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231109180118-425726d96b98/go.mod h1:C7jfxMLv1bEUqbM9XDSmEpfOpS8w06OgqNDEcbuRgL4=
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal v1.1.3-0.20231109180118-425726d96b98 h1:jmIMWUp0u1eMaKixvqFFuyMmXotnS1c4wKA8F6xCS+g=
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal v1.1.3-0.20231109180118-425726d96b98/go.mod h1:F7quX1aEkV2pToTpmDBXOSTkytAnCKkqv/JFLclqa2g=
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo v0.2.2/go.mod h1:NsESu6cEms1DgH84icCyylElg2Zu8A0f7Fma5JR0LZE=
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo v0.2.3-0.20231108143325-448ed0e3bd2b h1:wnnd29eymA+3hJBg4mOglwtpUEJ0MOxXKar8kmWUYN4=
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo v0.2.3-0.20231108143325-448ed0e3bd2b/go.mod h1:NsESu6cEms1DgH84icCyylElg2Zu8A0f7Fma5JR0LZE=
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo v0.2.3-0.20231109180118-425726d96b98 h1:EK0zHhigKuOZoNnmu9GQV75NjzUkALsSocvg8+cfIQU=
github.com/HugoBlox/hugo-blox-builder/modules/blox-seo v0.2.3-0.20231109180118-425726d96b98/go.mod h1:NsESu6cEms1DgH84icCyylElg2Zu8A0f7Fma5JR0LZE=
2 changes: 1 addition & 1 deletion layouts/partials/blocks/v1/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{ $person_page_path := (printf "/authors/%s" $author) }}
{{ $person_page := site.GetPage $person_page_path }}
{{ if not $person_page }}
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://hugoblox.com/docs/page-builder/#about " $person_page_path }}
{{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://docs.hugoblox.com/page-builder/#about " $person_page_path }}
{{end}}
{{ $person := $person_page.Params }}
{{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/blocks/v1/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{{ $post_action = "netlify" }}
{{ else if $use_formspree_form }}
{{ if not $block.Params.content.form.formspree.id }}
{{ errorf "You have chosen to use Formspree as the provider for the contact form. Please set your Formspree Form ID in the Contact widget or disable the form.\nDocumentation: https://hugoblox.com/docs/widget/contact/" }}
{{ errorf "You have chosen to use Formspree as the provider for the contact form. Please set your Formspree Form ID in the Contact widget or disable the form.\nDocumentation: https://docs.hugoblox.com/widget/contact/" }}
{{ end }}
{{ if and $use_formspree_captcha (not $block.Params.content.form.formspree.captcha_key) }}
{{ errorf "You have chosen to use reCAPTCHA for Formspree. Please set your Formspree CAPTCHA KEY in the Contact widget or disable reCAPTCHA.\nDocumentation: https://help.formspree.io/hc/en-us/articles/360022811154" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/site_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{{/* If `google_fonts` starts with "family=", use API v2 (https://developers.google.com/fonts/docs/css2) */}}
<link rel="stylesheet" {{ printf "href=\"https://fonts.googleapis.com/css2?%s&display=swap\"" . | safeHTMLAttr }} media="print" onload="this.media='all'">
{{ else }}
{{ errorf "There is a new version of Google Fonts. Learn how to upgrade your font pack at https://hugoblox.com/docs/customization/#custom-font" }}
{{ errorf "There is a new version of Google Fonts. Learn how to upgrade your font pack at https://docs.hugoblox.com/customization/#custom-font" }}
{{ end }}
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/cta.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{/*
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#call-to-action-buttons
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#call-to-action-buttons

Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/icon.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{/*
Docs: https://hugoblox.com/docs/content/writing-markdown-latex/#inline-image
Docs: Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#inline-image

Parameters
----------
Expand Down
33 changes: 33 additions & 0 deletions update_hugo_blox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash

# Hugo Blox Updater
# Helps update Hugo modules and the compatible Hugo version for Netlify.
# https://docs.hugoblox.com/reference/update/
#
# Command: bash ./update_hugo_blox.sh

# Check for prerequisites.
if [ ! -d content ]; then
echo "ERROR: `cd` into your website folder before running this tool."
exit 1;
fi

# Update the Hugo Blox module
function update_hugo_blox () {
# Update Hugo Blox to the latest main version
echo -e "Updating Hugo Modules to their latest version...\n"
hugo mod get -u ./...
hugo mod tidy
}

# Perform update
update_hugo_blox

echo
echo "Warning: review the changes made by this helper script before pushing them to your site."
echo
echo "If there are breaking changes, the site structure, config, and/or front matter of content" \
"may need upgrading by following the steps in the relevant consecutive release notes."
echo
echo "View the update guide at: https://docs.hugoblox.com/reference/update/"
echo "View the latest release notes at: https://hugoblox.com/blog/"
48 changes: 0 additions & 48 deletions update_wowchemy.sh

This file was deleted.

0 comments on commit 313391e

Please sign in to comment.