Theme Code Duplicating

I’m using a customized version of the Tiny Theme and noticed all my theme files have duplicate code.

For example, my profile-photo microhook has the same a and img tags twice. If I delete and update, the front end reflects only one iteration of both but the file itself shows the code doubled.

I’m now getting a theme error I can’t clear: template: multiple definition of template “main”"

I’ve been noticing the same, even the markdown of the pages I create appears duplicated in editor.

Thanks for reporting this. I’ve confirmed it’s a bug and let @manton know. Hopefully, it’ll be fixed soon.

Duplicates should be no more, @manton fixed the bug.

I am still seeing the error, both on the Design page, and in the build logs:

Theme error: Error building site: "layouts/_default/list.html:139:1": parse failed: template: _default/list.html:139: template: multiple definition of template "main"

I’ve tried editing template in question again, since the bugfix, and rebuilding my site, and the error still persists. Is there anything else I should try?

My site has started to double-encode my en-dashes in page titles. Instead of – it displays –. Not good. (If I use the HTML entity instead, I get the HTML entity code on the page instead of the character code.)

For now I’ve replace the en dashes I was using in page titles with colons.

Hard to tell exactly what’s going on without seeing the template code. But from the error message, it sounds like there is multiple lines that look like this: {{ define "main" }} somewhere in that template.

You’re using Tiny Theme, right? I just installed it on my test blog, and en-dashes look fine both in the menu and on the page. Are you using the latest version of the theme?

Also, if you temporarily disable your custom theme, does that make a difference?

Thanks for letting me know that this new behavior might be limited to my blog. I am using the latest version of Tiny. I’ll have to try troubleshooting later.

Just confirming that my custom Tiny based theme is no longer showing duplicate code and the multiple {{define “main”}} error has cleared.