Commit graph

13 commits

Author SHA1 Message Date
badele
8a0d06525d Add staticman support (static comments coupled with Github pull request) 2017-11-17 22:57:41 +01:00
Michael Romero
c6637b0a79 Add missing role="main" 2017-06-06 23:26:22 -07:00
Michael Romero
0d2ddebdd9 Single and List views not apply to all page types
Single and List views not apply to all page types. Previously list view
would only apply to posts. With this change, a new content folder named
"foo" will now list all content within the "foo" folder. In addition,
the Single layout is now generalized and applies to all types of
content.
2017-04-24 21:17:24 -07:00
Jack Taylor
0df40cf71e Fix template indentation
Fix indentation for templates changed in 3cec621. This is a
separate commit as it makes for diffs that are easier to read.
2017-04-17 12:44:50 +09: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
Jack Taylor
9c467304ec Use the correct language in lang attributes
Set the lang attribute in the html element to be the right
language, and also add lang attributes to text in a language that
is different to the page language, such as the language switcher
links.
2017-04-07 13:08:44 +09:00
halogenica
ee6246379b Consolidate header_wp.html and header.html
Consolidate header_wp.html and header.html to a single header.html
file.
2017-03-19 16:50:32 -07:00
Michael Romero
40b3eb3691 Correct spacing and remove extraneous </div>
Removed extraneous </div> in layouts\_default\list.html
2017-03-06 13:36:42 -08:00
Michael Romero
dd08915adf Fix improper container
Fix an improper container. Now content correctly appears higher on the
page, and big images span the full page width.
2017-02-21 00:09:36 -08:00
1138-4EB
6f520773f5 Add slashes to links in <head.html>, <nav.html>, <footer.html> and
<404.html>.

Add favicon example.

Modify footer vars to allow links not pointing to user profiles.

<header.html> renamed to <header_wp.html> and part of it moved to <header.html> since the same block was repeated two times.

Add Hugo version to footer
2017-02-06 19:38:32 +01:00
1138-4EB
da29c99fdc 'NO MATCHING PARTIAL' is hidden under the navbar, unless <header.html> is printed before. It seems to be no problem moving its insertion frome <post.html> and <page.html> to <single.html>, so that it is always shown. 2017-02-06 11:25:40 +01:00
Michael Romero
991e2aeaf7 Remove unnecessary Disqus partial template
Disqus partial template was accidentally included in both single.html
and the posts/pages that were included by single.html. Only need to
include it once!
2016-04-13 00:06:02 -07:00
Michael Romero
ff7cd6fd91 Initial Checkin of Beautiful Hugo Theme
Initial Checkin of Beautiful Hugo Theme
2016-03-08 02:43:08 -08:00