Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Add example for Hugo #67

Open
rijkvanzanten opened this issue Feb 28, 2022 · 2 comments
Open

Add example for Hugo #67

rijkvanzanten opened this issue Feb 28, 2022 · 2 comments

Comments

@rijkvanzanten
Copy link
Contributor

No description provided.

@joselcvarela
Copy link

I think there's two ways you can do this:
1 - Write a script to fetch all content from Directus you want and write it to files. Then in Hugo you just include those files.
2 - Use included Hugo resource to make requests to Directus. Here's an example how a guy could make it: https://discourse.gohugo.io/t/got-hugo-working-with-directus-headless-cms/39442

In both scenarios you may also want to create a Flow which triggers a new build so your content is always up-to-date: https://docs.directus.io/configuration/flows/

@rijkvanzanten
Copy link
Contributor Author

Linear: ENG-101

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants