I read the guidelines, which say to contact the author of the theme first, and I did that:
However, the author does not seem to post there frequently anymore, therefore my question is unlikely to receive an answer there. So, I hope it is okay to ask the same question here.
I am converting my blog from google blogger to obsidian + hugo. I like the stack theme a lot, but it needs some customization to suit my needs. Unfortunately, I hardly know what I am doing, either with hugo or with the stack theme. Hence, this question.
What I have is posts that begin with an image, followed by one or two paragraphs of text, followed by <!-- more -->, followed by the rest of the content. Hugo strips away the <!-- more --> comment, and gives me the part before it as .Summary. So, I have to customize the stack theme to make use of .Summary in the list-of-posts page.
I managed to do that, but I ran into a problem: the summary text would appear black. This was not visible under the light theme, but it was very visible under the dark theme.
I managed to fix that by modifying layouts\_default\baseof.html and replacing the following:
<body class="{{ block `body-class` . }}{{ end }}">
with the following:
<body class="article-page">
However, I suppose that this is hard-coding the class of every single page, and I am almost sure that this is not the right way of fixing the problem.
Additionally, the result still suffers from two issues:
- On the list-of-posts page, there is some unwanted vertical space between the post details and the image. I cannot figure out where this space comes from. It does not appear in the post page.
- On the list-of-posts page, the image in the summary is not centered. It is centered in the post page.
Help would be appreciated to find a proper fix for the black text problem instead of modifying the body class for all pages, and to fix the two cosmetic issues listed above.
- You can see my work-in-progress obsidian + hugo blog here:
(It uses the stack theme as of the time of writing this.)
- My hugo files from which the blog is created:
(It references the stack theme but includes only the changed files, so the stack theme must be separately cloned in../michael.gr-hugo-themes/hugo-theme-stack)
- My google blogger blog:
(It should not matter, but I am including it for the sake of completeness.)
Any other suggestions are welcome. For example: Is there an entirely different and better way of accomplishing what I am trying to accomplish? Should I ditch the stack theme if it is not being supported anymore? Is there another theme that is suitable for blogging and has good support for .Summary ? Etc.

