Skip to content

Unable to change "Recent" header on homepage with showRecent enabled #815

Answered by wolfspyre
nanowatts asked this question in Q&A
Discussion options

You must be logged in to vote

looks like this is the file yer wanting to override:
https://github.com/nanowatts/nanowatts.net/blob/5fff4be5d8d93711ebdb83deb88f2bf116b2b04b/themes/congo/layouts/partials/recent-articles.html#L2

so... create a 'layouts' folder in the root of your project....

follow the directory structure of congo's layouts.

put the file you're trying to modify in your layouts folder.

That will tell hugo to use your version of the layout/partial instead of congo's version1.

that bit in and of itself may be sufficient to resolve the problem you're having...

if I grok correctly... something like this might help?

mkdir layouts/partials/
cp themes/congo/layouts/partials/recent-articles.html layouts/partials
…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nanowatts
Comment options

@wolfspyre
Comment options

Answer selected by nanowatts
@nanowatts
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants