hugo-redlounge icon indicating copy to clipboard operation
hugo-redlounge copied to clipboard

Keep geting theme/partials/semantic.html is incomplete

Open janeshdev opened this issue 8 years ago • 7 comments

Hi,

I keep getting error: 2017/01/30 13:35:57 general.go:236: theme/partials/semantic.html is an incomplete or empty template and 2017/01/30 13:35:57 general.go:236: theme/partials/author.html is an incomplete or empty template. Is there anyway to fix this issue ?

janeshdev avatar Jan 30 '17 21:01 janeshdev

I need to completely redo this theme. There's a lot of good updates and things people are suggesting and Hugo has updated a lot. I don't really use Hugo anymore unfortunately (awesome tool though) and now just use Medium...But if I can get the chance I'd love to give this some attention again.

That said, I don't see where a semantic.html or author.html would be. I don't have partials by those names in this theme. If they are somehow required now by Hugo, then that would make this theme incompatible with that version of Hugo.

You can add those yourself of course and try having them empty and see where it lands you.

tmaiaroto avatar Feb 23 '17 22:02 tmaiaroto

hi @tmaiaroto, I am using this theme in my own blog and therefore I can take up some of the work about this theme. I can even maintain the repo if you like. Anyway, thanks for the hard work.

@janeshdev Care to tell us what hugo version you are using? When will you encounter the mentioned error? Thanks.

carsonip avatar Feb 28 '17 22:02 carsonip

@carsonip I am getting this error on the footer when I try to run hugo (boots via a git hook):

remote: ERROR: 2018/09/04 html/template: "theme/partials/footer.html" is an incomplete template in theme/partials/footer.html

pboling avatar Sep 04 '18 10:09 pboling

@pboling Although I am still using this theme, I am not a maintainer of the theme. It has been a long time since the last time I touch any of this. As far as I can remember, I didn't bump into this error when I left the comment. I'm sorry I can't help you now.

carsonip avatar Sep 04 '18 11:09 carsonip

I tried moving away from this theme, and it was a massive fail and time suck, and I ended up crawling back. I may need to fork it and make it mine.

pboling avatar Sep 04 '18 20:09 pboling

Sorry all, I just don't have the time to update this theme. I don't use it anymore myself.

tmaiaroto avatar Sep 08 '18 06:09 tmaiaroto

For googlers:

Broken Original

<div class="footer">
	<hr class="thin" />
	<div class="pure-menu pure-menu-horizontal pure-menu-open">
		<ul class="footer-menu">
		{{ range .Site.Menus.footer }}
			<li><a href="{{.URL}}">{{ .Name }}</a></li>
		{{ end }}
		</ul>
	</div>

	<p>{{ with .Site.Params.Copyright }}{{ . | safeHTML }}{{ else }}&copy; {{now.Format "2006"}}. All rights reserved.{{end}}</p>
</div>

Fixed:

<div class="footer">
	<hr class="thin" />
	<div class="pure-menu pure-menu-horizontal pure-menu-open">
		<ul class="footer-menu">
			{{ range .Site.Menus.footer }}
			<li><a href="{{.URL}}">{{ .Name }}</a></li>
			{{ end }}
		</ul>
	</div>

	<p>
		&copy; {{ now.Format "2006"}}. All rights reserved.
	</p>
</div>

If I can find time I'll fork and update my fork to work with latest Hugo. At the moment I am using local overrides in my sites' layouts directory.

pboling avatar Sep 08 '18 07:09 pboling