I wish to have a duplicate partial with a simple HTML change and call it in front matter

I’m using the Ananke theme. The content *.md files use the following partial provided by the theme.


I see the element’s CSS that I wish to update, but I don’t want to make this a global update. The theme’s default, using tachyon, is to center text in the article. There are a few content nodes I wish to use the left-alignment instead, which is a simple matter of removing the “tc-l” class from the article > section CSS class list.

Is there a way, using front matter or what have you, that I can have some content call the duplicate and modified list.html definition?

Thanks in advance!

copy list.html to <projectdir>/layouts/_default/mylist.html, modify it and set layout=“mylist” in frontmatter

more here

1 Like

YES, just what I was looking for, thank you! I did reference that page, but I’m still wrapping my brain around the templating system.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.