diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 628361a0..aa218921 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.6-20260511091232-04fb47c6" -}} +{{- hugo.Store.Set "version" "v0.4.6-20260512064804-a2d4b465" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/_partials/layouts/head/twitter-cards.html b/layouts/_partials/layouts/head/twitter-cards.html index bf28d879..1c451e03 100644 --- a/layouts/_partials/layouts/head/twitter-cards.html +++ b/layouts/_partials/layouts/head/twitter-cards.html @@ -4,7 +4,7 @@ Key differences: - Generates twitter:site / twitter:creator from site params (.Site.Params.social.twitter) - - The param can be a string or a map; when it's a map, reads Id/id + - The param can be a string or a map; when it's a map, reads creator/id */ -}} {{- $images := partial "_funcs/get-page-images" . }} {{- with index $images 0 }} diff --git a/packages/versioning/src/update-version.ts b/packages/versioning/src/update-version.ts index 5f7bd477..71ec0fa6 100644 --- a/packages/versioning/src/update-version.ts +++ b/packages/versioning/src/update-version.ts @@ -30,6 +30,12 @@ export function updateVersion(type: 'dev' | 'prod') { ] const gitDiff: string = execSync('git diff --cached --name-only').toString().trim() + // console.log( + // 'Node.js:', + // execSync('which node').toString().trim(), + // process.version, + // ) + if (type !== 'prod') { // Avoid conflicts when creating a Pull Request if (!['dev', 'main'].includes(branch)) { @@ -37,7 +43,6 @@ export function updateVersion(type: 'dev' | 'prod') { process.exit(0) } if (!match.some(item => gitDiff.includes(item))) { - console.log('Node.js:', process.version) console.log('No need to update the FixIt version.') process.exit(0) } @@ -82,6 +87,5 @@ export function updateVersion(type: 'dev' | 'prod') { execFileSync('git', ['add', stageFile]) } }) - // console.log('Node.js:', process.version) console.log(`Update the FixIt version from v${lastVersion} to v${latestVersion}.`) }