Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/danielkvist/hugo-terrassa-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-12Adjust language switcher for > 2 languageTina
The language switcher didn't work with more than 2 languages, but this is a fix. It lists all translations first, then sorts them by weight. Got ideas from this thread: https://discourse.gohugo.io/t/language-switcher-in-menu/11570/7
2020-05-09Fixed link to home page in header on translated pagesTina
There is a link to the home page in the header, which is generated by the .Site.BaseURL variable in header.html layout. This link refers to the home page of the defaultContentLanguage everywhere, also on translated pages. Expected behavior: link to to the translated home page There can only be one BaseURL, since it is a global variable that can't be overwritten by language parameters. According to this: https://jibecfed.fedorapeople.org/blog-hugo/en/2018/11/building-a-multilingual-static-website-with-hugo/ a fix should be using {{.Site.BaseURL | relLangURL }} but it is not working. I replaced the .Site.BaseURL with "/" (which is what is currently the baseURL), and it works. the relLangURL function seems to be buggy in Hugo: https://github.com/gohugoio/hugo/pull/5369 But I haven't found a solution yet.
2020-05-09Integrate language switcher in header layoutTina
This adds an additional CSS class to the header if Site.Params.Language Switcher.show is set to `true`, changing the CSS grid so it integrates the language switcher.
2020-05-09Remove unnecessary link from language switcherTina
And adjust CSS accordingly
2020-05-09Add language switcher in HeaderTina
This shows language switcher in header only if params.languageSwitcher. show in config.toml is set to `true`.
2020-05-08Adding language switcher as layout partialTina
The language switcher is a navigation menu which shows all available translations of a given page, only if there are any. See https://regisphilibert.com/blog/2018/08/hugo-multilingual-part-1-managing-content-translation/#using-linked-translations-in-your-template
2020-05-08Html lang tag based on current localeTina
2020-05-08Tina Reis's avatarTina
include og:locale in open graph meta data The open graph protocol enables web pages to show up as rich objects in a social graph, see: https://ogp.me/ Which basically means that when someone shares a link of a webpage on Facebook, it will look like a page on Facebook instead of an external web page. Hugo has an internal template for Open Graph meta data: https://gohugo.io/templates/internal/#open-graph It is used in Terrassa theme. However, I wanted to include the optional meta tag og:locale, to signal to social media platforms which language the page is in. Hugo's template includes og:locale, but it is set using page parameters, not site parameters, see code here on line 30: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/opengraph.html This doesn't make sense to me, because then we'd have to define the locale parameter in the front matter of every single page for it to render. We could do that automatically by adding a line in `archetypes` default, which defines the default parameters that are added to each page, but still this means an additional line in every page that we create. So I decided to manually add og:locale meta tag in head.html. I can come back to this later, if I ever figure out why Hugo does it that way, and change it but this works for now.
2020-05-08Add hreflang-tags to <head>Tina
This adds hreflang-tags to <head>. See https://moz.com/learn/seo/hreflang-tag Hugo stores translations in .Translations and links translations, if the content directory is set up properly. See https://regisphilibert.com/blog/2018/08/hugo-multilingual-part-1-managing-content-translation/ This code checks if the page is translated, then creates hreflang tags for all translated versions including the current page. This is important because hreflang-tags need to be self-referencing (search engines need to know all available versions).
2019-06-04add support for custom CSSv2.4danielkvist
2019-06-02When building the site, received a warning:Corey Thompson
Building sites… WARN 2019/06/01 12:28:30 Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function. Fixed by updating deprecated ".Hugo" to "hugo" in layouts/partials/head.html
2019-03-25fix typodanielkvist
2019-03-24fix paramv2.3danielkvist
2019-03-13add Font Awesome optionsv2.2danielkvist
2019-03-13make separators between sections optionaldanielkvist
2019-03-13Added a margin-bottom at the end of static pages since they have no tagsLuca Corrieri
I found the text a little too close to the footer in that case
2019-03-06Remove extra curly bracketLudCarvalho
2019-02-27fix issue #7danielkvist
2019-01-28remove hrdanielkvist
2019-01-24fix tags urlv1.9.1danielkvist
2019-01-20add skype to contact optionsdanielkvist
2019-01-19fix issue #4v1.8.3danielkvist
2019-01-19add rel noopener to social linksv1.8.2danielkvist
2019-01-19fix contact form messagev1.8.1danielkvist
2019-01-19add Netlify forms supportdanielkvist
2019-01-17fix issue #3v1.7.1danielkvist
2019-01-16improve footer customization optionsv1.7danielkvist
2019-01-16add hero text color paramdanielkvist
2019-01-16add aria-label attributesdanielkvist
2019-01-13fix issue #2v1.6.2danielkvist
2019-01-12fix typodanielkvist
2019-01-12add 404 pagedanielkvist
2019-01-11add section partials and dummy contentdanielkvist
2019-01-11add logo supportdanielkvist
2019-01-11fix cta buttondanielkvist
2019-01-10fix background urldanielkvist
2019-01-09remove postCSSdanielkvist
2019-01-09change contact CSS classesdanielkvist
2019-01-09improve author and date infodanielkvist
2019-01-09add paginationdanielkvist
2019-01-09fix favicon urldanielkvist
2019-01-09add tags template and authordanielkvist
2019-01-06fix animationdanielkvist
2019-01-06fix background imagedanielkvist
2019-01-06use default baseof layoutdanielkvist
2018-12-28add Twitter Cards and Open Graphdanielkvist
2018-12-28add favicon and description paramsdanielkvist
2018-12-27improve accessibilitydanielkvist
2018-12-27add lang attributedanielkvist
2018-12-27change contact descriptiondanielkvist