Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[POST] Add blog post to explain how to run in codespaces #27

Open
alsotoes opened this issue Nov 21, 2023 · 1 comment
Open

[POST] Add blog post to explain how to run in codespaces #27

alsotoes opened this issue Nov 21, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@alsotoes
Copy link
Contributor

alsotoes commented Nov 21, 2023

Per comments in pr/26 autored by @electrocucaracha and comments by @fmoctezuma "I was able to test your PR in github codespaces and is working fine, just have a couple of comments."


To be able to load the images I needed to run hugo as follows:

$ hugo server --baseURL="https://${CODESPACE_NAME}-1313.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}" --appendPort=false

Are you using a different more simplistic way to properly load the images? I'm probably overthinking since this is my first time using codespaces and hugo.

Would be also great if you add this as a contribution guide for new members.
I'm not sure if opensource projects are adopting gh codespaces, but In my opinion it works fine and speeds up contribution, and it won't hurt, I'll let the admins to decide if they want to go this route.

-Francisco

Originally posted by @fmoctezuma in #26 (comment)

@alsotoes alsotoes added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 21, 2023
@alsotoes
Copy link
Contributor Author

Site building is broken on codespaces and local, 'maybe' due to hugo version.

@alsotoes ➜ /workspaces/openinframx (main) $ hugo server --baseURL="https://${CODESPACE_NAME}-1313.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}" --appendPort=false
WARN  deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in a future release. Use pagination.pagerSize instead.
WARN  deprecated: site config key paginatePath was deprecated in Hugo v0.128.0 and will be removed in a future release. Use pagination.path instead.
Watching for changes in /workspaces/openinframx/{archetypes,assets,content,layouts,package.hugo.json,package.json,static,themes}
Watching for config changes in /workspaces/openinframx/config.yaml, /workspaces/openinframx/config/_default, /workspaces/openinframx/config/development, /workspaces/openinframx/themes/hugo-theme-bootstrap/config.toml
Start building sites … 
hugo v0.135.0-f30603c47f5205e30ef83c70419f57d7eb7175ab+extended linux/amd64 BuildDate=2024-09-27T13:17:08Z VendorInfo=gohugoio

WARN  deprecated: resources.PostCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.PostCSS instead.
WARN  deprecated: .Sites.First was deprecated in Hugo v0.127.0 and will be removed in a future release. Use .Sites.Default instead.
ERROR render of "404" failed: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/_default/baseof.html:12:8": execute of template failed: template: 404.html:12:8: executing "404.html" at <partial "head.html" .>: error calling partial: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/partials/head.html:10:4": execute of template failed: template: partials/head.html:10:4: executing "partials/head.html" at <partial "head/assets" .>: error calling partial: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/partials/head/assets.html:1:4": execute of template failed: template: partials/head/assets.html:1:4: executing "partials/head/assets.html" at <partialCached "assets/google-analytics" .>: error calling partialCached: execute of template failed: html/template:partials/assets/google-analytics.html:4:15: no such template "_internal/google_analytics_async.html"
ERROR render of "page" failed: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/_default/baseof.html:11:38": execute of template failed: template: _default/single.html:11:38: executing "title$htmltemplate_stateRCDATA_elementTitle" at <partial "head/title" .>: error calling partial: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/partials/head/title.html:21:19": execute of template failed: template: partials/head/title.html:21:19: executing "partials/head/title.html" at <.Paginate>: error calling Paginate: pagination not supported for this page: kind: "page", path: "/about", file: "/workspaces/openinframx/content/about/index.md"
ERROR render of "taxonomy" failed: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/_default/baseof.html:12:8": execute of template failed: template: _default/terms.html:12:8: executing "_default/terms.html" at <partial "head.html" .>: error calling partial: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/partials/head.html:10:4": execute of template failed: template: partials/head.html:10:4: executing "partials/head.html" at <partial "head/assets" .>: error calling partial: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/partials/head/assets.html:1:4": execute of template failed: template: partials/head/assets.html:1:4: executing "partials/head/assets.html" at <partialCached "assets/google-analytics" .>: error calling partialCached: execute of template failed: html/template:partials/assets/google-analytics.html:4:15: no such template "_internal/google_analytics_async.html"
Built in 2901 ms
Error: error building site: render: failed to render pages: render of "home" failed: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/_default/baseof.html:12:8": execute of template failed: template: index.html:12:8: executing "index.html" at <partial "head.html" .>: error calling partial: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/partials/head.html:10:4": execute of template failed: template: partials/head.html:10:4: executing "partials/head.html" at <partial "head/assets" .>: error calling partial: "/workspaces/openinframx/themes/hugo-theme-bootstrap/layouts/partials/head/assets.html:1:4": execute of template failed: template: partials/head/assets.html:1:4: executing "partials/head/assets.html" at <partialCached "assets/google-analytics" .>: error calling partialCached: execute of template failed: html/template:partials/assets/google-analytics.html:4:15: no such template "_internal/google_analytics_async.html"
@alsotoes ➜ /workspaces/openinframx (main) $ 

-Alvaro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant