gostatic icon indicating copy to clipboard operation
gostatic copied to clipboard

inner-template not working

Open tcurdt opened this issue 7 years ago • 3 comments

I have

feed.atom: posts/*/*.md
    inner-template

in the verbose output

Found page: feed.atom; rule: &{[posts/*/*.md] [inner-template]}

yet if just gets copied and the template does not get applied at all.

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0">
  <id>{{ .Site.Other.Url }}</id>

Not sure what I am doing wrong there.

tcurdt avatar Jul 27 '16 23:07 tcurdt

Seems like when there is problem with the template no error gets reported and instead the file is not getting processed but just copied.

tcurdt avatar Jul 29 '16 21:07 tcurdt

Oh, that's pretty bad. I'm not sure I'll have time to look into that soon, but patches are really welcome!

piranha avatar Jul 30 '16 11:07 piranha

I got the same issue. File blog.atom do not processed with templates. After adding error handling I got error:

blog.atom: runtime error: index out of range

It's means, I have error in template. I checked the file, and fixed it. I think this pull was solved this issue.

juev avatar Nov 01 '18 11:11 juev