takunomi-blog/templates/main.tmpl

18 lines
486 B
Cheetah
Raw Permalink Normal View History

2022-06-09 18:26:01 +00:00
{{define "main"}}
<li>
<div class="contents">
{{if eq .CurrentPage "blog"}}
<article class="posts">{{template "content" .}}</article>
{{else if eq .CurrentPage "about"}}
<div>{{template "about" .}}</div>
{{else if eq .CurrentPage "past"}}
<div>{{template "past" .}}</div>
{{else if eq .CurrentPage "keru_shoujo"}}
<div>{{template "keru_shoujo" .}}</div>
{{else if eq .CurrentPage "contact"}}
<div>{{template "contact" .}}</div>
{{end}}
</div>
</li>
{{end}}