Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.