Closed apetros closed 4 years ago
Hey @apetros I wanted to add a news section to my personal website, should I just paste the files you've created to the locations specified in your issue?
This is amazing! Exactly what I wanted! Your instruction is also clear and super easy to follow. Thank you very much for sharing! :)
This is a nice feature! Thanks for that!
To avoid conflicts with the Academic theme, I think it is probably best to add the shortcode to a new directory layouts/shortcodes
instead of themes/academic/layouts/shortcodes
, as suggested in the hugo documentation.
First off, great theme, thanks for all the hard work building the theme and a community around it. This is not a request, but a modification I put here like a "wiki" input.
I wanted to have a News section with the last 3-4 news shown on the homepage and the rest in a separate page with a link from the main page "see all news". I could have used the posts module but I wanted to have links in the news directly to some new articles etc. While the posts were kind of an overkill for me.
newsfiles.zip recent_news.md --> goes in content/home news.md and newslist.dat --> goes in content/ readfromfile.html --> goes in themes/academic/layouts/shortcodes
It looks like this.