Support for non-HTML output formats? #113
-
I was curious if Lume supports non-HTML output formats such as:
By way of reference, here the custom output formats Hugo supports (we are using iCal and a few others now). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yes, you can output any format. There are two ways:
export const url = "feed.rss"; In base-blog you have examples of both methods: |
Beta Was this translation helpful? Give feedback.
-
In case it's helpful, for those using TypeScript this is necessary if creating a JSON output format: The feature is fantastic and much easier than in other static site generators. Now, we can create complete APIs statically. |
Beta Was this translation helpful? Give feedback.
Yes, you can output any format. There are two ways:
styles.css.njk
is a nunjucks file that output the filestyles.css
.url
variable in the frontmatter or named module. For example:In base-blog you have examples of both methods: