contentful-hugo
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "contentful-hugo", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Node module that pulls data from Contentful and turns it into markdown files for Hugo. Can be used with other Static Site Generators, but has some Hugo specific features.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -82,2 +82,3 @@ # Contentful Hugo | ||
fileExtension: md | ||
# this will generate a file named "_index.md" in the "content" directory | ||
@@ -88,2 +89,3 @@ - id: siteSettings | ||
fileExtension: yaml | ||
# this will generate a file named settings.yaml in the "data" directory | ||
@@ -118,4 +120,4 @@ repeatableTypes: | ||
| fileName | required (single types only) | name of the file generated | | ||
| fileExtension | optional (repeatable types only) | can be "md", "yml", or "yaml" (defaults to "md") | | ||
| isHeadless | optional (repeated instances only) | turns all entries in a content type into headless leaf bundles (see [hugo docs](https://gohugo.io/content-management/page-bundles/#headless-bundle)) | | ||
| fileExtension | optional | can be "md", "yml", or "yaml" (defaults to "md") | | ||
| isHeadless | optional (repeatable types only) | turns all entries in a content type into headless leaf bundles (see [hugo docs](https://gohugo.io/content-management/page-bundles/#headless-bundle)) | | ||
| mainContent | optional | field ID for field you want to be the main Markdown content. (Does not work with rich text fields) | ||
@@ -199,3 +201,3 @@ | ||
```html | ||
{{ with .Site.GetPage "<path-to-file>.md" }} | ||
{{ with .Site.GetPage "<path-to-file>/<entry-id>.md" }} | ||
{{ .Title }} | ||
@@ -202,0 +204,0 @@ {{ end }} |
25404
257