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
2021-07-28Archived projectHEADmasterdanielkvist
2020-07-25Merge pull request #27 from penkovski/patch-1Daniel
Fix typo with french language definition
2020-07-20Fix typo with french language definitionpenkovski
2020-06-07Merge pull request #25 from feministclickback/multilingual-supportv2.5Daniel
Multilingual support
2020-05-13Added documentation for multilingual sites in Readme.mdTina
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 position of hamburger menu between --sm and --md breakpointsTina
The hamburger menu toggle moves further to the right starting at the mobile breakpoint --sm (576px). Now that I added the language switcher, the breakpoint at which the toggle moves to the right needs to be soohner, at --md already (768px).
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 styles for language switcherTina
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).
2020-05-08translate contact formTina
2020-05-08Add url to translated pages front matterTina
On translations that are not the defaultContentLanguage, we need to specify a url in the page's front matter, because otherwise Hugo uses the same URL for all translations of a page.
2020-05-08Set up content management for two languagesTina
Following this approach: https://gohugo.io/content-management/multilingual/#translation-by-content-directory English content lives in `content/en/` and German content in `content/de/`
2020-05-08German title & meta description in exampleSite config.tomlTina
Parameters added under [languages] override Site variables for this language
2020-05-08Set up two languages in exampleSite config.tomlTina
This sets up English as default language and German as second language. These are just examples, can be exchanged with any languages. See Hugo Multilingual Mode: https://gohugo.io/content-management/multilingual/
2019-09-30Merge pull request #21 from dustinsummers/patch-1Daniel
fix typo in comment
2019-09-29fixing typo in commentDustin Summers
2019-06-04update READMEdanielkvist
2019-06-04add support for custom CSSv2.4danielkvist
2019-06-03merge branch 'coreyt-issue13'danielkvist
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-04-18Update Dockerfiledanielkvist
2019-03-25fix typodanielkvist
2019-03-24fix paramv2.3danielkvist
2019-03-24fix order of propertiesdanielkvist
2019-03-24fix typodanielkvist
2019-03-24update LICENSEdanielkvist
2019-03-23update makefiledanielkvist
2019-03-13fix typodanielkvist
2019-03-13add Font Awesome optionsv2.2danielkvist
2019-03-13make separators between sections optionaldanielkvist
2019-03-13Merge pull request #11 from corrieriluca/patch-2v2.1Daniel
Minor improvements
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-13Improved tables styleLuca Corrieri
2019-03-07Merge pull request #10 from LudCarvalho/patch-1Daniel
Remove extra curly bracket
2019-03-06Remove extra curly bracketLudCarvalho
2019-02-27fix issue #7danielkvist
2019-02-08fix margins of copy on mobilesdanielkvist
2019-01-28add margin left for listsv2.0danielkvist
2019-01-28remove hrdanielkvist
2019-01-28improve quotes styledanielkvist
2019-01-28add text justification to sections and postsdanielkvist
2019-01-28increased size of cards and add max widthdanielkvist
2019-01-24fix tags urlv1.9.1danielkvist