Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmooring/hugo-module-backlinks
A Hugo module that allows you to render a list of pages that link to the current page
https://github.com/jmooring/hugo-module-backlinks
hugo hugo-module
Last synced: 3 months ago
JSON representation
A Hugo module that allows you to render a list of pages that link to the current page
- Host: GitHub
- URL: https://github.com/jmooring/hugo-module-backlinks
- Owner: jmooring
- License: apache-2.0
- Created: 2024-05-18T15:08:22.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-21T01:56:30.000Z (8 months ago)
- Last Synced: 2024-06-19T04:06:43.396Z (7 months ago)
- Topics: hugo, hugo-module
- Language: HTML
- Homepage:
- Size: 5.86 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hugo Module – Backlinks
This Hugo module allows you to render a list of pages that link to the current page.
## Configuration
To add this module to your project, initialize your project as a Hugo module:
```sh
hugo mod init foo
```In the above, `foo` is typically something like `github.com/user/project`.
Then add this to your site configuration:
```toml
[[module.imports]]
path = 'github.com/jmooring/hugo-module-backlinks'[markup.goldmark.renderHooks.link]
enableDefault = true[outputs]
home = ['html','rss','backlinks']
```To override the list title, create a `backlinks_title` translation entry in your `i18n` files.
## Usage
To use the backlinks partial:
```text
{{ partial "backlinks.html" . }}
```## Try it
```text
git clone --single-branch -b hugo-github-issue-8077 https://github.com/jmooring/hugo-testing hugo-github-issue-8077
cd hugo-github-issue-8077
hugo server
```