Skip to content

Upgrade/hinode to v2#201

Open
ayigitdogan wants to merge 13 commits into
mainfrom
upgrade/hinode-to-v2
Open

Upgrade/hinode to v2#201
ayigitdogan wants to merge 13 commits into
mainfrom
upgrade/hinode-to-v2

Conversation

@ayigitdogan

@ayigitdogan ayigitdogan commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Closes #199

Changed files:

  1. languages.yml
  • Change: short site title text updated (removed “| BOUN” suffix in EN/TR titles).
  1. module.yml
  • Change: Hinode import switched from v1 path to v2 path.
  1. params.yml
  • Change: migrated deprecated Hinode keys to v2 schema (color mode/search), added Dart Sass transpiler config.
  1. go.mod
  • Change: dependency moved to github.com/gethinode/hinode/v2 v2.2.1.
  1. go.sum
  • Change: checksum entries updated for Hinode v2.2.1.
  1. footer.html
  • Change: social links rendering made defensive with type/key checks.
  1. social.html
  • Change: added navbar-brand CSS to prepend logo and adjust sizing responsively.
  1. blocks.html
  • Change: added local fallback block renderer for hero/articles and normalized card layout behavior.
  1. navigation.html
  • Change: custom prev/next logic preferring menu child order, with section-weight fallback.
  1. newsroom.html
  • Change: newsroom carousel clipping and responsive image sizing fix via object-fit and constrained height.
  1. package.json
  • Change: added pinned frontend build tool dependencies (sass/postcss/autoprefixer/postcss-cli).
  • Function: ensures CI/Cloudflare installs required CSS/Sass toolchain deterministically.
  1. package-lock.json
  • Change: lockfile generated for those Node dependencies.
  • Function: reproducible dependency graph in CI.
  1. logo.png
  • Change: new PNG logo asset added.
  • Function: directly serves at /images/logo.png for template/config URL references.
  1. wrangler.toml
  • Change: preview/production Hugo version pinned to 0.159.2.
  • Function: makes Cloudflare Pages use a compatible Hugo version for Hinode v2.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 3, 2026

Copy link
Copy Markdown

Deploying bouncmpe with  Cloudflare Pages  Cloudflare Pages

Latest commit: 23fd5dc
Status: ✅  Deploy successful!
Preview URL: https://f8723d80.bouncmpe.pages.dev
Branch Preview URL: https://upgrade-hinode-to-v2.bouncmpe.pages.dev

View logs

@doganulus

Copy link
Copy Markdown
Member

The reason why preview build fails is that the new theme version requires a newer Hugo version.

Apparently, a solution for dynamically adjust the Hugo version used in PRs is to introduce wrangler.toml, which is respected by Cloudflare PAges unlike .env file repo.

# wrangler.toml
[env.preview.vars]
HUGO_VERSION = "0.159.2"

[env.production.vars]
HUGO_VERSION = "0.159.2"

Source: https://developers.cloudflare.com/workers/wrangler/configuration/

Comment thread package.json
},
"name": "bouncmpe.github.io",
"version": "0.1.0"
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we add package.json?

Comment thread layouts/partials/page/navigation.html Outdated
{{- end -}}
{{- end -}}
</div>
</div>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a good opportunity to re-evaluate our top navigation bar.

Do we really need to override the theme default this time? Can we introduce a university logo before the department name?

@doganulus

Copy link
Copy Markdown
Member

The preview issue seems resolved. I upgraded build commands at Cloudflare Pages side.

@ayigitdogan

Copy link
Copy Markdown
Contributor Author

The preview issue seems resolved. I upgraded build commands at Cloudflare Pages side.

@doganulus Thanks! I am done with my changes. Do you think is there anything we need to check/change before merging this?

@doganulus

Copy link
Copy Markdown
Member

Let's rebase it after recent merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update site theme

2 participants