From 405ccf5febe9329beb9d86e08d4848c444e7ab4f Mon Sep 17 00:00:00 2001 From: Felipe Bueno Date: Fri, 3 Nov 2017 08:59:04 -0300 Subject: Add brazilian portuguese translation (#114) --- i18n/pt-br.yaml | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 i18n/pt-br.yaml diff --git a/i18n/pt-br.yaml b/i18n/pt-br.yaml new file mode 100644 index 0000000..62d8c6b --- /dev/null +++ b/i18n/pt-br.yaml @@ -0,0 +1,71 @@ +- id: home + translation: "Página Inicial" + +- id: templateBy + translation: "Template por" + +- id: portedBy + translation: "Portado para o Hugo por" + +- id: contactGoTo + translation: "Vá à página de contato" + +- id: contactAddrTitle + translation: "Endereço" + +- id: contactTitle + translation: "Contato" + +- id: contactForm + translation: "Formulário de contato" + +- id: contactName + translation: "Seu Nome" + +- id: contactMail + translation: "Seu Email" + +- id: contactMessage + translation: "Sua Mensagem" + +- id: contactSend + translation: "Enviar Mensagem" + +- id: navHome + translation: "vá à página inicial" + +- id: navToggle + translation: "Alternar Navegação" + +- id: categoriesTitle + translation: "Categorias" + +- id: searchTitle + translation: "Buscar" + +- id: tagsTitle + translation: "Tags" + +- id: continueReading + translation: "Continuar lendo" + +- id: readMore + translation: "Leia mais" + +- id: authorBy + translation: "Por" + +- id: recentPosts + translation: "Posts recentes" + +- id: aboutUs + translation: "Sobre nós" + +- id: newer + translation: "Mais novas" + +- id: older + translation: "Mais antigos" + +- id: publishedOn + translation: "em" -- cgit v1.2.3 From 7f290f3b60d915c497e1dc459aa268027bffdb33 Mon Sep 17 00:00:00 2001 From: Bob Liu Date: Fri, 3 Nov 2017 07:15:09 -0500 Subject: docs(Chinese): add Chinese translation (#112) --- i18n/zh.yaml | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 i18n/zh.yaml diff --git a/i18n/zh.yaml b/i18n/zh.yaml new file mode 100644 index 0000000..d8cd564 --- /dev/null +++ b/i18n/zh.yaml @@ -0,0 +1,71 @@ +- id: home + translation: "主页" + +- id: templateBy + translation: "模板来自" + +- id: portedBy + translation: "移植到 Hugo 来自" + +- id: contactGoTo + translation: "跳到联系页面" + +- id: contactAddrTitle + translation: "地址" + +- id: contactTitle + translation: "联系" + +- id: contactForm + translation: "联系表单" + +- id: contactName + translation: "你的名字" + +- id: contactMail + translation: "你的 Email" + +- id: contactMessage + translation: "你的信息" + +- id: contactSend + translation: "发送信息" + +- id: navHome + translation: "跳到主页" + +- id: navToggle + translation: "切换导航" + +- id: categoriesTitle + translation: "分类" + +- id: searchTitle + translation: "搜索" + +- id: tagsTitle + translation: "标签" + +- id: continueReading + translation: "继续阅读" + +- id: readMore + translation: "阅读更多" + +- id: authorBy + translation: "由" + +- id: recentPosts + translation: "最新博客" + +- id: aboutUs + translation: "关于我们" + +- id: newer + translation: "更新" + +- id: older + translation: "更旧" + +- id: publishedOn + translation: "在" -- cgit v1.2.3 From d1038665ae3b05a051fb8a90e22f270fa75ae45f Mon Sep 17 00:00:00 2001 From: Ludovic Bailly Date: Mon, 6 Nov 2017 18:20:00 +0100 Subject: Fixed search on blog (#109) --- layouts/partials/widgets/search.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/widgets/search.html b/layouts/partials/widgets/search.html index 0ac72ce..3ee9fe4 100644 --- a/layouts/partials/widgets/search.html +++ b/layouts/partials/widgets/search.html @@ -9,8 +9,8 @@
- - + + -- cgit v1.2.3 From 5093400ed3285b3f54980e33524dd95d87344343 Mon Sep 17 00:00:00 2001 From: Ringo De Smet Date: Thu, 16 Nov 2017 15:49:22 +0100 Subject: Using the `themesDir` option to allow `hugo serve` locally without a softlink. The softlink doesn't work on Windows. (#102) --- .travis.yml | 2 -- exampleSite/config.toml | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a5072c0..9af5128 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,6 @@ install: script: - npm run lint - cd exampleSite - - mkdir themes - - ln -s ../../ themes/hugo-universal-theme - hugo notifications: slack: diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7786bfb..f24e904 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,6 +1,7 @@ baseurl = "https://example.org" title = "Universal" theme = "hugo-universal-theme" +themesDir = "../.." languageCode = "en-us" # Site language. Available translations in the theme's `/i18n` directory. defaultContentLanguage = "en" -- cgit v1.2.3 From 0022f7a65e9feb343045b2e4a3b0de0d72349844 Mon Sep 17 00:00:00 2001 From: Petr Kotek Date: Mon, 20 Nov 2017 20:52:42 +1100 Subject: README.md: fix link to Features (#124) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0927aae..1367786 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This Hugo theme was ported from [Bootstrapious](http://bootstrapious.com/p/unive ## Table of Contents -* [Theme features](#theme-features) +* [Features](#features) * [Installation](#installation) * [Configuration](#configuration) * [Style](#style) -- cgit v1.2.3 From 3f645b6cbaa94fd3afbe5205f1b1ec99cbecdccd Mon Sep 17 00:00:00 2001 From: Andrew Varner Date: Wed, 22 Nov 2017 03:41:31 -0500 Subject: Add alt tags to Recent Posts in Footer (#120) This should improve accessibility. --- layouts/partials/footer.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 06cd6b2..bfd502e 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -24,9 +24,9 @@ -- cgit v1.2.3 From 56f2e2932dd0f99b9cc2fb9380cfcebc131f93d3 Mon Sep 17 00:00:00 2001 From: Andrew Varner Date: Wed, 22 Nov 2017 03:44:09 -0500 Subject: Parameterize 404 (#118) This PR replaces hardcoded values in the `404.html` template with appropriate Hugo variables. --- layouts/404.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index 8ca20b2..4f48435 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -21,15 +21,15 @@

- - Obaju template + + {{ .Title }} logo

We are sorry - this page is not here anymore

Error 404 - Page not found

-

Go to Homepage +

Go to Homepage

-- cgit v1.2.3 From 1e62739fa793b6a994836a5e06cc222b903471c9 Mon Sep 17 00:00:00 2001 From: Tristan WAGNER Date: Tue, 5 Dec 2017 01:21:33 +0100 Subject: Fix french translations (#132) --- i18n/fr.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 4752e4a..4ad7fe1 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -5,13 +5,13 @@ translation: "Template par" - id: portedBy - translation: "Porté pour Hugo par" + translation: "Porté sur Hugo par" - id: contactGoTo translation: "Aller à la page de contact" - id: contactAddrTitle - translation: "Addresse" + translation: "Adresse" - id: contactTitle translation: "Contact" @@ -38,7 +38,7 @@ translation: "Basculer la Navigation" - id: categoriesTitle - translation: "Categories" + translation: "Catégories" - id: searchTitle translation: "Recherche" @@ -68,4 +68,4 @@ translation: "Ancien" - id: publishedOn - translation: "sur" + translation: "le" -- cgit v1.2.3 From 0113621e7e2b69a6c68ad52c1f11e4d77a616cbd Mon Sep 17 00:00:00 2001 From: Joost Baaij Date: Sun, 17 Dec 2017 16:35:19 +0100 Subject: added Dutch translation (#107) --- i18n/nl.yaml | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 i18n/nl.yaml diff --git a/i18n/nl.yaml b/i18n/nl.yaml new file mode 100644 index 0000000..440c4b2 --- /dev/null +++ b/i18n/nl.yaml @@ -0,0 +1,71 @@ +- id: home + translation: "Home" + +- id: templateBy + translation: "Template door" + +- id: portedBy + translation: "Omgezet naar Hugo door" + +- id: contactGoTo + translation: "Ga naar de contactpagina" + +- id: contactAddrTitle + translation: "Adres" + +- id: contactTitle + translation: "Contact" + +- id: contactForm + translation: "Contactformulier" + +- id: contactName + translation: "Je naam" + +- id: contactMail + translation: "Je e-mailadres" + +- id: contactMessage + translation: "Je bericht" + +- id: contactSend + translation: "Verstuur bericht" + +- id: navHome + translation: "ga naar de homepage" + +- id: navToggle + translation: "Navigation Aan/Uit" + +- id: categoriesTitle + translation: "Categorieën" + +- id: searchTitle + translation: "Zoeken" + +- id: tagsTitle + translation: "Tags" + +- id: continueReading + translation: "Ga door met lezen" + +- id: readMore + translation: "Lees meer" + +- id: authorBy + translation: "Door" + +- id: recentPosts + translation: "Recente berichten" + +- id: aboutUs + translation: "Over ons" + +- id: newer + translation: "Nieuwer" + +- id: older + translation: "Ouder" + +- id: publishedOn + translation: "op" -- cgit v1.2.3 From f2f2c4fe4612ca8698692b547cbb6c960a1b2c82 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 8 Jan 2018 09:32:43 +0000 Subject: Https (#135) * Update style URLs to https. The old URL redirects to this new URL anyway and allows us to avoid any mixed content warnings. * Update the static maps URL to https Avoids any mixed content warnings --- static/css/style.blue.css | 2 +- static/css/style.default.css | 2 +- static/css/style.green.css | 2 +- static/css/style.marsala.css | 2 +- static/css/style.pink.css | 2 +- static/css/style.red.css | 2 +- static/css/style.turquoise.css | 2 +- static/css/style.violet.css | 2 +- static/js/hpneo.gmaps.js | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/static/css/style.blue.css b/static/css/style.blue.css index a7ebc1e..c738447 100644 --- a/static/css/style.blue.css +++ b/static/css/style.blue.css @@ -222,7 +222,7 @@ ul.list-style-none { } @media (min-width: 1300px) { body.boxed { - background: url(http://subtlepatterns.com/patterns/subtle_zebra_3d.png); + background: url(https://www.toptal.com/designers/subtlepatterns/patterns/subtle_zebra_3d.png); } body.boxed #all { position: relative; diff --git a/static/css/style.default.css b/static/css/style.default.css index 4b2001b..f2e56d3 100644 --- a/static/css/style.default.css +++ b/static/css/style.default.css @@ -222,7 +222,7 @@ ul.list-style-none { } @media (min-width: 1300px) { body.boxed { - background: url(http://subtlepatterns.com/patterns/subtle_zebra_3d.png); + background: url(https://www.toptal.com/designers/subtlepatterns/patterns/subtle_zebra_3d.png); } body.boxed #all { position: relative; diff --git a/static/css/style.green.css b/static/css/style.green.css index bc6e9e0..d0f8a2f 100644 --- a/static/css/style.green.css +++ b/static/css/style.green.css @@ -222,7 +222,7 @@ ul.list-style-none { } @media (min-width: 1300px) { body.boxed { - background: url(http://subtlepatterns.com/patterns/subtle_zebra_3d.png); + background: url(https://www.toptal.com/designers/subtlepatterns/patterns/subtle_zebra_3d.png); } body.boxed #all { position: relative; diff --git a/static/css/style.marsala.css b/static/css/style.marsala.css index b5ace6c..40972c3 100644 --- a/static/css/style.marsala.css +++ b/static/css/style.marsala.css @@ -222,7 +222,7 @@ ul.list-style-none { } @media (min-width: 1300px) { body.boxed { - background: url(http://subtlepatterns.com/patterns/subtle_zebra_3d.png); + background: url(https://www.toptal.com/designers/subtlepatterns/patterns/subtle_zebra_3d.png); } body.boxed #all { position: relative; diff --git a/static/css/style.pink.css b/static/css/style.pink.css index adc2599..cb7863d 100644 --- a/static/css/style.pink.css +++ b/static/css/style.pink.css @@ -222,7 +222,7 @@ ul.list-style-none { } @media (min-width: 1300px) { body.boxed { - background: url(http://subtlepatterns.com/patterns/subtle_zebra_3d.png); + background: url(https://www.toptal.com/designers/subtlepatterns/patterns/subtle_zebra_3d.png); } body.boxed #all { position: relative; diff --git a/static/css/style.red.css b/static/css/style.red.css index b416bbd..f328ee6 100644 --- a/static/css/style.red.css +++ b/static/css/style.red.css @@ -222,7 +222,7 @@ ul.list-style-none { } @media (min-width: 1300px) { body.boxed { - background: url(http://subtlepatterns.com/patterns/subtle_zebra_3d.png); + background: url(https://www.toptal.com/designers/subtlepatterns/patterns/subtle_zebra_3d.png); } body.boxed #all { position: relative; diff --git a/static/css/style.turquoise.css b/static/css/style.turquoise.css index 2697895..f4607c8 100644 --- a/static/css/style.turquoise.css +++ b/static/css/style.turquoise.css @@ -222,7 +222,7 @@ ul.list-style-none { } @media (min-width: 1300px) { body.boxed { - background: url(http://subtlepatterns.com/patterns/subtle_zebra_3d.png); + background: url(https://www.toptal.com/designers/subtlepatterns/patterns/subtle_zebra_3d.png); } body.boxed #all { position: relative; diff --git a/static/css/style.violet.css b/static/css/style.violet.css index 55df0ba..f10fe8d 100644 --- a/static/css/style.violet.css +++ b/static/css/style.violet.css @@ -222,7 +222,7 @@ ul.list-style-none { } @media (min-width: 1300px) { body.boxed { - background: url(http://subtlepatterns.com/patterns/subtle_zebra_3d.png); + background: url(https://www.toptal.com/designers/subtlepatterns/patterns/subtle_zebra_3d.png); } body.boxed #all { position: relative; diff --git a/static/js/hpneo.gmaps.js b/static/js/hpneo.gmaps.js index dd7b0ae..66b4959 100644 --- a/static/js/hpneo.gmaps.js +++ b/static/js/hpneo.gmaps.js @@ -1612,7 +1612,7 @@ GMaps.prototype.toImage = function(options) { GMaps.staticMapURL = function(options){ var parameters = [], data, - static_root = 'http://maps.googleapis.com/maps/api/staticmap'; + static_root = 'https://maps.googleapis.com/maps/api/staticmap'; if (options.url) { static_root = options.url; -- cgit v1.2.3 From 1968d9430a4b38d193d883cc532fd343f8d8e136 Mon Sep 17 00:00:00 2001 From: Kulak Date: Mon, 5 Mar 2018 00:37:45 -0800 Subject: fix for images not displayed in list (#146) issue is described in https://github.com/devcows/hugo-universal-theme/issues/142 Reason: image height is set, when image has not been loaded yet. Don't set height if image height is unknown. --- static/js/front.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/front.js b/static/js/front.js index 5f35807..9e62ae7 100644 --- a/static/js/front.js +++ b/static/js/front.js @@ -221,7 +221,9 @@ function counters () { function pictureZoom () { $('.product .image, .post .image, .photostream div').each(function () { var imgHeight = $(this).find('img').height() - $(this).height(imgHeight) + if (imgHeight) { + $(this).height(imgHeight) + } }) } -- cgit v1.2.3 From 0ba5cb826d9c40600a94d17d677616b0480871b7 Mon Sep 17 00:00:00 2001 From: Stani Date: Fri, 1 Jun 2018 16:13:56 +0200 Subject: add green texture (#160) --- static/img/texture-green.png | Bin 0 -> 160087 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 static/img/texture-green.png diff --git a/static/img/texture-green.png b/static/img/texture-green.png new file mode 100644 index 0000000..21b9231 Binary files /dev/null and b/static/img/texture-green.png differ -- cgit v1.2.3 From 9c22db005b64ca3a5ad3c68fbb8c7161d2f212f6 Mon Sep 17 00:00:00 2001 From: ddffnn Date: Fri, 13 Jul 2018 03:39:11 -0700 Subject: make navbar use site param for site logo (#173) --- README.md | 3 +++ exampleSite/config.toml | 1 + layouts/partials/nav.html | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1367786..6c2cc43 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,9 @@ googleAnalytics = "UA-XXXXX-X" Leave the `googleAnalytics` key empty to disable it. +### Logo + +You can select the logos using the logo and logo_small parameters. The logo_small value will be used when the site is rendered on small screens. ### Contact form diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f24e904..0d53d69 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -98,6 +98,7 @@ paginate = 10 date_format = "January 2, 2006" logo = "img/logo.png" + logo_small = "img/logo-small.png" address = """

Universal Ltd.
13/25 New Avenue
Newtown upon River diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index e713b2c..0cb1916 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -5,8 +5,8 @@