Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/savetheclocktower/pulsar-language-hugo
Support for Go Templates as used by Hugo
https://github.com/savetheclocktower/pulsar-language-hugo
Last synced: about 1 month ago
JSON representation
Support for Go Templates as used by Hugo
- Host: GitHub
- URL: https://github.com/savetheclocktower/pulsar-language-hugo
- Owner: savetheclocktower
- License: mit
- Created: 2024-07-23T07:20:38.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-24T03:40:30.000Z (5 months ago)
- Last Synced: 2024-07-24T09:25:06.007Z (5 months ago)
- Language: Scheme
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# language-hugo package
Adds a grammar for the Go Templating system used by [Hugo](https://gohugo.io/).
## Using this grammar for `.html` files
Hugo gives template files the `.html` extension. To have Pulsar prefer this grammar over the built-in HTML grammar for `.html` files, [follow these instructions](https://docs.pulsar-edit.dev/customizing-pulsar/customizing-language-recognition/). Your config should look like this:
```coffeescript
'*':
core:
customFileTypes:
'text.html.gotmpl': [
'html'
]
```If you’d like this behavior only on certain projects, [atomic-management](https://web.pulsar-edit.dev/packages/atomic-management) or [project-config](https://web.pulsar-edit.dev/packages/project-config) will let you define this setting in a project-specific overrides file.