-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data models in Hugo similar to Jekyll and Mixture #476
Comments
After a bit more research, it looks like the Hugo approach to this type of functionality is "content types." Is this correct? Rather than storing lots of different objects in one data file, store them as individual files with front-matter for logic for calling/looping in the views? If this is correct, I only have one last question before I fully fall in love with Hugo: Is it possible to use Markdown in Yaml frontmatter? |
Not today, but I was thinking of adding a template function to treat the input as markdown. |
This would be wonderful. I believe it's possible in Jekyll to use markdown with yaml data by calling it through their markdownify filter... do you have the same type of implementation in mind? |
There's a discussion around this happening on the forum. http://discuss.gohugo.io/t/load-data-from-yaml-xml-json-files/100/5 |
@Isaaki can you file your request for markdown in front matter as a separate issue? |
See also Pull Request #748, Feature: GetJson and GetJson in short codes or other layout files by @SchumacherFM |
Fixes gohugoio#476. Conflicts: hugolib/site.go
Fixes gohugoio#476. Conflicts: hugolib/site.go
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Greetings,
Can't say enough good things about Hugo. Many thanks for all the work on it.
I've yet only fiddled with Hugo but am currently considering it as my primary static site generator. Before doing so, I'm wondering about one core feature: data models. Essentially, is it possible to store and loop through objects stored in JSON/YAML files within views?
Two existing examples of such a feature can be seen here with Jekyll and here with Mixture.
The text was updated successfully, but these errors were encountered: