boundfoxstudios/Hugo Check for broken links
Checks a Hugo site for broken links
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| fail-on-broken-links | The number of required broken links to fail the action. Set to 0 to deactivate. Defaults to 1. | no | 1 |
| log-skipped-links | Logs skipped links and sends them to skipped-links output | no | false |
| retry | Automatically retry requests that return HTTP 429 responses and include a 'retry-after' header | no | true |
| timeout | Request timeout in ms. Set to 0 for no timeout. Defaults to 5000 | no | 5000 |
| skip | List of urls in regexy form to not include in the check | no | "" |
| hugo-root | Base path to your hugo project. | yes | ./ |
| hugo-content-dir | Base path to your hugo content directory. | yes | ./content |
| hugo-config | Base path to your hugo config. | yes | ./config.yaml |
| hugo-startup-wait-time | Maximum time to wait for hugo to start up and process your project. | yes | 20 |
Outputs
| name | description |
|---|---|
| broken-links-count | The number of broken links found |
| broken-links | JSON array of broken links |
| skipped-links-count | The number of skipped links found, optional only when log-skipped-links is true |
| skipped-links | JSON array of skipped links, optional only when log-skipped-links is true |