Archived
9
1
This repository has been archived on 2019-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
blog_old/template/tpl.md
2016-01-01 23:05:36 +08:00

751 B

template documentation

all themes are in this directory.

use specific theme:

$ ./pugo --theme=default

theme structure

including files:

  • meta.html : title, meta, style , etc in <header>
  • header.html : title, navigator at the top of page
  • footer.html : script, copyright at the bottom of page
  • comment.html : comment list and form in post.html and page.html

use go template syntax ---- {{template "meta.html" .}} to import it.

major page files:

  • post.html - single post page
  • posts.html - posts list page
  • archive.html - posts archive page
  • page.html - single page template as default. page can set template in meta with template=xxx.html
  • index.html - homepage template, if not exist, use posts.html