-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Display content/_index.md if it exists #119
Display content/_index.md if it exists #119
Conversation
✅ Deploy Preview for gokarna-hugo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@jamesericdavidson The hugo build command is breaking, might want to make sure it works on your local first |
I think this is related to the fileExists function. Works on a local server, but GitLab CI/CD and GitHub build checks aren't happy. I'll have a look!
Regards,
James Davidson
…-------- Original Message --------
On 16 Aug 2022, 06:04, Yash Mehrotra wrote:
***@***.***(https://github.com/jamesericdavidson) The hugo build command is breaking, might want to make sure it works on your local first
—
Reply to this email directly, [view it on GitHub](#119 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/A2GRSNTOKOQWGL7AZUQZX5DVZMOPXANCNFSM56S4P4TA).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@yashmehrotra I committed a bad version of the file, but it's now fixed. Additionally evaluating that |
### Displaying content on the homepage | ||
|
||
Content to display on homepage below the social icons, using the contents of `content/_index.md`. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jamesericdavidson This should not be deleted, this documentation is still useful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right. I only wanted to remove the reference to enableFrontMatter
.
This should've been an atomic commit as well, oops. Re-added.
Thanks, merging |
Thanks for merging |
re-implement gokarna-theme#119 - the Hugo way of displaying front matter - without breaking index-about.md (gokarna-theme#179) https://gohugo.io/content-management/organization/#index-pages-_indexmd if _index.md exists (and has content), print it else, if index-about.md exists (without checking for file contents), print it
* refactor(index): support _index.md re-implement #119 - the Hugo way of displaying front matter - without breaking index-about.md (#179) https://gohugo.io/content-management/organization/#index-pages-_indexmd if _index.md exists (and has content), print it else, if index-about.md exists (without checking for file contents), print it * style(css): rename markdown-content class * docs: update _index.md filename * style(index): remove hr
Improvement for #109. Test if
content/_index.md
exists, instead of configuringenableFrontMatter
.I thought the condition for displaying content on the home page could be made more convenient for people switching themes, or who want to add native Hugo front matter without theme configuration.