Commit graph

26 commits

Author SHA1 Message Date
Stefan Foerster
2506a38947 include complete URL in tags
I want to resolve #71 with this - links to tags should now also
work when the site is not living in a domain's root.
2017-08-06 10:55:37 +02:00
Stefan Foerster
3d675e36c5 generate tag links with trailing slash
Since all post URIs are generated with a trailing slash, I thought
it would be a good idea to do the same for tag links. This can
save a few I/O operations here and there (or, depending on your
webhoster, even get rid of redirects).
2017-08-05 22:26:13 +02:00
Michael Romero
c6637b0a79 Add missing role="main" 2017-06-06 23:26:22 -07:00
rui.zheng
0d3d2e33f0 add i18n supported for paginator 2017-05-09 15:14:46 +08:00
Michael Romero
9c165c43d8 Header title for list and hashtags
Increase the title header for lists to match single pages. Add a hashtag
for taxonomies.
2017-04-24 23:43:55 -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
Jack Taylor
c4cfe47e01 Make links language-relative
This ensures that links work correctly in languages other than
English. For example, clicking on the navbar "brand" link used to
take you to the English home page even if you were browsing the
site in another language. Now it takes you to the home page for
that language.
2017-04-07 08:01:06 +09:00
Jack Taylor
0f74f45531 Move hard-coded strings to i18n files
Add translations in English and in Japanese
2017-04-06 18:39:11 +09:00
David McKay
152f673f13
Don't hardcode to a single taxonomy 2017-04-04 17:37:39 +01:00
Michael Romero
4d866ddfd7 Default date format if not defined in config.toml
Default date format if not defined in config.toml
2017-03-25 20:10:24 -07: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
bb64fb5b8e Correct layout on tags list view
Make the layout when listing posts by tags consistent with the layout
when listing posts (default blog view)
2017-03-16 21:09:28 -07:00
Michael Romero
0338abd814 Made date format configurable
Can be configured in config.toml Params.dateFormat
2017-03-06 14:36:35 -08: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
Stefan Haider
d23ca0a38a use Bootstrap ListGroup for terms page 2017-02-26 12:53:06 +01:00
SeongJae Park
91dbeff972 Implement /tags page
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2017-02-25 00:20:52 +09:00
SeongJae Park
2cca7be841 Display selected tag name as tag list page title
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2017-02-25 00:20:52 +09:00
SeongJae Park
558005341e Support tags
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2017-02-25 00:19:20 +09: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