Commit graph

5 commits

Author SHA1 Message Date
Kaushal Modi
b1cccc8f2c
Add the canonical "footer" block
The base template and block system allows easy integration of themes with theme components.

The "footer" blocks is also one of the suggested blocks in the Hugo docs: https://gohugo.io/templates/base/#define-the-base-template.

Add this block quickly enables the use of theme components like [hugo-search-fuse-js](https://github.com/kaushalmodi/hugo-search-fuse-js/). I ended up creating this PR because of an issue created there: https://github.com/kaushalmodi/hugo-search-fuse-js/issues/1.
2019-01-18 08:34:55 -05:00
Michael Romero
48387349e0 fix validator error: itemprop must belong to a type 2018-11-12 23:53:50 -08:00
Michael Romero
36d7231cad Updates to SEO 2018-11-01 01:38:13 -07:00
Michael Romero
2fe5c9b36b Add site schema for SEO 2018-10-30 00:40:50 -07:00
Jack Taylor
a5113e5008 Make all full-page templates inherit from a block template
Use block templates [1] for all of the full-page templates such as
index.html, _default/list.html, etc. This reduces code duplicated
between them.

Also, move the code in partials/page.html and partials/post.html
to page/single.html and post/single.html respectively. With block
templates the contents of the partials is almost exactly the same
as the contents of the single page templates, and having dedicated
single-page templates for the content types means that we can get
rid of the if/then/else logic in _default/single.html.

This also gets rid of an excess container div; the duplication of
the divs was being obscured by the way _default/single.html was
interacting with the partials. (This is the same duplicated div
as in pull request #51 found by @1138-4EB.)

[1] https://gohugo.io/templates/blocks/
2017-04-17 12:44:44 +09:00