Commit graph

167 commits

Author SHA1 Message Date
Michael Romero
9ffa13539f Sticky footer with dynmaic height using flexbox 2017-06-06 23:32:03 -07:00
Michael Romero
c6637b0a79 Add missing role="main" 2017-06-06 23:26:22 -07:00
Michael Romero
bbeb127b30 Load photoswipe by default and fix double-load bug
Photoswipe is now loaded by default for all pages in this theme. No need
to call load-photoswipe shortcode anymore. Fixes bug where
load-photoswipe.js was invoked multiple times, which caused the
photoswipe to prevent viewing the lightbox more than once.
2017-06-06 22:51:02 -07:00
Michael Romero
f86398e399 Fix incorrect use of isset 2017-06-04 23:14:38 -07:00
Michael Romero
3e34f5f4da Merge pull request #64 from esaezgil/fix/fix_css_import
Avoid using css import
2017-05-15 10:04:02 -07:00
Enrique Saez
0c38481110 Remove duplicated import for main.css 2017-05-15 18:18:00 +02:00
Michael Romero
7aad36611f Merge pull request #66 from esaezgil/add_social_keybase
Add keybase to social config
2017-05-15 09:03:33 -07:00
Enrique Saez
19ebcdbe29 Merge branch 'master' of github.com:halogenica/beautifulhugo into fix/fix_css_import 2017-05-15 18:02:43 +02:00
Enrique Saez
9884fd86dd Add keybase to social config 2017-05-15 09:55:56 +02:00
Michael Romero
45418d062b Merge pull request #65 from esaezgil/fix/jquery_selector
jQuery selections placed after the ID element using the find() method
2017-05-14 14:52:32 -07:00
Enrique Saez
fcf87f73b7 Jquery selections placed after the ID element using the find() method 2017-05-14 21:44:07 +02:00
Enrique Saez
724c0cf994 Avoid using css import 2017-05-14 21:25:09 +02:00
Michael Romero
d5e40a1187 Merge pull request #63 from lzjluzijie/master
Add Chinese language support
2017-05-10 22:39:38 -07:00
halulu
5a2c22e8e0 Fix zh.yaml 2017-05-10 21:46:25 +08:00
halulu
043bfc8727 Add Chinese language support 2017-05-10 20:18:39 +08:00
Michael Romero
bd5b709881 Center single images on page
When including an individual image or figure, center it on page.
2017-05-09 20:22:59 -07:00
Michael Romero
24a3188a25 Merge pull request #61 from ginuerzh/i18n
add i18n supports for paginator strings
2017-05-09 08:31:43 -07:00
rui.zheng
0d3d2e33f0 add i18n supported for paginator 2017-05-09 15:14:46 +08:00
Michael Romero
7f37922dc0 Merge pull request #60 from rayjolt/ignore-example-themes
Add exampleSite/themes to .gitignore
2017-05-06 11:31:25 -07:00
Jack Taylor
05c8b38c9b Add exampleSite/themes to .gitignore
This is so that we can clone the repo in the example site's themes
directory and test the example site using `hugo server`.
2017-05-06 21:15:08 +09:00
Michael Romero
2dcc608138 Merge pull request #59 from klue/master
Fixed Google search console verification with Google Analytics.
2017-05-05 09:00:57 -07:00
Kedy Liu
598100e4e8 Moved Google Analytics snippet to head and changed it to use async snippet. 2017-05-05 03:13:34 -04:00
Michael Romero
975d839a9f Merge pull request #58 from rayjolt/fix-links
Fix URLs for sites where baseURL is not the domain root
2017-05-04 09:43:21 -07:00
Jack Taylor
54959770bf Fix URLs for sites where baseURL is not the domain root
It turns out that the fix for static links in 6528985ed breaks
sites where baseURL is not at the domain root, (i.e. the Hugo site
is at http://www.example.com/foo/, not http://www.example.com/).
This is because the link strings passed to absURL and absLangURL
have a leading slash, which Hugo resolves to the domain root. This
commit fixes the problem by removing removing the leading slash
from these strings.

Fixes #57
2017-05-04 20:21:14 +09:00
Michael Romero
d64afa3e2b Merge pull request #56 from skyfox/master
Russian language support
2017-04-29 09:16:52 -07:00
Michael Romero
978060b661 Merge pull request #55 from rayjolt/og-url
Fix og:url meta tag for multilingual sites
2017-04-29 09:16:19 -07:00
Michael Romero
6528985ed5 Merge pull request #54 from rayjolt/fix-static-links
Fix links to static content
2017-04-29 09:15:57 -07:00
Dmitry Timofeev
f514f952a7 Russian language support 2017-04-29 12:29:09 +01:00
Jack Taylor
49cb655cd6 Fix og:url meta tag for multilingual sites
We need to use absLangURL instead of absURL, otherwise we
generate URLs that are wrong or don't exist for pages which aren't
in the default language.
2017-04-29 13:23:45 +09:00
Jack Taylor
efe742f442 Fix links to static content
Use absURL to find the URL for static content such as images,
CSS and JavaScript. The previous approach sometimes led to an
extra slash between the domain name and the path, breaking the
links. (In particular, it works when tested with hugo server, but
breaks in production.)
2017-04-29 13:15:46 +09: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
Michael Romero
be5a5c2ac7 Merge pull request #52 from rayjolt/block-template
Make all full-page templates inherit from a block template
2017-04-16 20:47:51 -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
Michael Romero
7d9cf1adce Merge pull request #53 from rayjolt/i18n-hugo-version
Update the required Hugo version in theme.toml
2017-04-16 20:29:58 -07:00
Jack Taylor
aa6fb555b0 Update the required Hugo version in theme.toml
The i18n changes introduced in 5cf80fe require Hugo 0.17, so
update theme.toml accordingly.
2017-04-15 19:00:33 +09:00
Michael Romero
a63ae22301 Add Japanese language select to example config 2017-04-09 22:58:02 -07:00
Michael Romero
d54ed7f1c9 Revert "Add Japanese language select to example config"
This reverts commit 30d2dd7196.
2017-04-09 22:57:19 -07:00
Michael Romero
30d2dd7196 Add Japanese language select to example config 2017-04-09 22:55:55 -07:00
Michael Romero
56cfa6f0f1 Merge pull request #51 from 1138-4EB/duplicatedmaindiv
Removed duplicated main div, because it is included in single
2017-04-09 22:37:30 -07:00
Michael Romero
07a5bc3953 Merge branch 'master' into duplicatedmaindiv 2017-04-09 22:36:48 -07:00
Michael Romero
5cf80fe2f7 Merge pull request #50 from rayjolt/i18n
Enable i18n
2017-04-09 22:32:42 -07:00
1138-4EB
c39138e3c9 Removed duplicated main div, because it is included in single, which imports page and post. 2017-04-09 01:23:47 +02: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
ff657d2db1 Add links to translated content
Links to translated content will appear next to the date, both on
the index page and on post pages. Also style the translation links
on post pages to be like those on the index page, although some
more thought about the design is probably in order.
2017-04-07 12:58:57 +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
655c2011fe Add a language switcher to the navigation
This ignores whether the current page has a translation in a
given language, but it's a start.
2017-04-06 18:39:11 +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
Michael Romero
1c26fe2526 Merge pull request #49 from rawkode/bugfix/support-all-taxonomies
Don't hardcode to a single taxonomy
2017-04-05 00:51:02 -07:00