Skip to content

Commit 6f24d33

Browse files
committed
fix: correct broken meta tags, wrong socialify project, invalid section ID, and self-referencing links
- Replace unreplaced template variables ({{OG_IMAGE}}, {{FULL_URL}}, etc.) with correct values via rtoh.config.js replace option - Fix hardcoded socialify og:image URL referencing readme-to-html instead of runner-manager - Rename "Configuration and settings defaults" heading to "Configuration" to avoid invalid HTML5 ID with spaces - Point "All my projects" and footer copyright links to robinvanbaalen.nl instead of "/" which just reloads the same page on the subdomain
1 parent aa104e5 commit 6f24d33

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Based on these inputs, the CLI downloads the appropriate runner tarball using th
7373

7474
`actions-runner-[osx/linux]-[lowercase architecture]-[version].tar.gz`
7575

76-
## Configuration and settings defaults
76+
## Configuration
7777

7878
If a `runners.config.json` file is present in the current directory, its values will be used as defaults.
7979
Otherwise, after adding a new runner is added, you'll be prompted to save the current settings as

rtoh.config.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@ export default {
99
// Custom stylesheet (optional)
1010
stylesheetPath: "https://raw.githubusercontent.com/rvanbaalen/rvanbaalen.github.io/refs/heads/main/templates/style.css",
1111

12-
// Uncomment and customize any additional options as needed:
13-
// outputPath: "index.html",
14-
// readmePath: "README.md",
15-
// excludeFromNav: ["description", "contributing", "license"],
16-
// replace: {
17-
// "/css/style.css": "./src/custom.css"
18-
// }
12+
// Fix unreplaced template variables and incorrect socialify project reference
13+
replace: {
14+
// Replace unreplaced OG meta tag placeholders with correct values
15+
"content=\"{{OG_IMAGE}}\"": "content=\"https://socialify.git.ci/rvanbaalen/runner-manager/image?language=1&name=1&owner=1&pattern=Charlie+Brown&theme=Light\"",
16+
"content=\"{{OG_IMAGE_WIDTH}}\"": "content=\"1280\"",
17+
"content=\"{{OG_IMAGE_HEIGHT}}\"": "content=\"640\"",
18+
"content=\"{{FULL_URL}}\"": "content=\"https://runner-manager.robinvanbaalen.nl/\"",
19+
"href=\"{{FULL_URL}}\"": "href=\"https://runner-manager.robinvanbaalen.nl/\"",
20+
// Fix hardcoded socialify URL that references the wrong project (readme-to-html)
21+
"rvanbaalen/readme-to-html/image": "rvanbaalen/runner-manager/image",
22+
// Fix "All my projects" link to point to the main portfolio site
23+
"href=\"/\" class=\"hover:text-white/80 transition px-2 py-1\">← All my projects": "href=\"https://robinvanbaalen.nl\" class=\"hover:text-white/80 transition px-2 py-1\">← All my projects",
24+
// Fix footer copyright link
25+
"href=\"/\" class=\"hover:text-sky-300 transition\">©": "href=\"https://robinvanbaalen.nl\" class=\"hover:text-sky-300 transition\">©",
26+
},
1927
}

0 commit comments

Comments
 (0)