diff --git a/README.md b/README.md index 47b94d9b98..8d0f80102f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository contains a theme for [Hugo](https://gohugo.io/). -Visit the [theme documentation](https://relearn.netlify.com/en/) to see what is going on. It is actually built with this theme. +Visit the [theme documentation](https://relearn.netlify.com/) to see what is going on. It is actually built with this theme. [![wercker status](https://app.wercker.com/status/233466a2be73fcea400e7dc02ef6adf9/s/master "wercker status")](https://app.wercker.com/project/byKey/233466a2be73fcea400e7dc02ef6adf9) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FMcShelby%2Fhugo-theme-relearn.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FMcShelby%2Fhugo-theme-relearn?ref=badge_shield) @@ -35,7 +35,7 @@ Check that your Hugo version is minimum `0.25` with `hugo version`. ## Usage -- [Visit the documentation](https://relearn.netlify.com/en/) +- [Visit the documentation](https://relearn.netlify.com/) ## Credits diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 70303075f2..e1523b2ff4 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -6,7 +6,8 @@ title = "Hugo Relearn Documentation" theme = "hugo-theme-relearn" themesdir = "../.." metaDataFormat = "yaml" -defaultContentLanguageInSubdir= true +defaultContentLanguageInSubdir = true +relativeURLs = true [params] editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/master/exampleSite/content/" @@ -28,7 +29,7 @@ home = [ "HTML", "RSS", "JSON"] title = "Documentation for Hugo Relearn Theme" weight = 1 languageName = "English" -landingPageURL = "/en" +landingPageURL = "/" landingPageName = " Home" [[Languages.en.menu.shortcuts]] diff --git a/exampleSite/content/basics/configuration/_index.en.md b/exampleSite/content/basics/configuration/_index.en.md index c56ad65a19..84bb41f8d3 100644 --- a/exampleSite/content/basics/configuration/_index.en.md +++ b/exampleSite/content/basics/configuration/_index.en.md @@ -109,4 +109,4 @@ landingPageName = " Home" The home button is going to looks like this: -![Default Home Button](/en/basics/configuration/images/home_button_defaults.jpg?width=100%) +![Default Home Button](images/home_button_defaults.jpg?width=100%) diff --git a/exampleSite/content/basics/installation/_index.en.md b/exampleSite/content/basics/installation/_index.en.md index 6017007ff9..89027cd366 100644 --- a/exampleSite/content/basics/installation/_index.en.md +++ b/exampleSite/content/basics/installation/_index.en.md @@ -48,7 +48,7 @@ Discover what this Hugo theme is all about and the core concepts behind it. renders as -![A Chapter](/en/basics/installation/images/chapter.png?classes=shadow&width=60pc) +![A Chapter](images/chapter.png?classes=shadow&width=60pc) **Hugo-theme-relearn** provides archetypes to create skeletons for your website. Begin by creating your first chapter page with the following command diff --git a/exampleSite/content/basics/requirements/_index.en.md b/exampleSite/content/basics/requirements/_index.en.md index 2b3f51d930..d458eebb50 100755 --- a/exampleSite/content/basics/requirements/_index.en.md +++ b/exampleSite/content/basics/requirements/_index.en.md @@ -8,4 +8,4 @@ Thanks to the simplicity of Hugo, this page is as empty as this theme needs requ Just download latest version of [Hugo binary (> 0.25)](https://gohugo.io/getting-started/installing/) for your OS (Windows, Linux, Mac) : it's that simple. -![Magic](/en/basics/requirements/images/magic.gif?classes=shadow) +![Magic](images/magic.gif?classes=shadow) diff --git a/exampleSite/content/basics/style-customization/_index.en.md b/exampleSite/content/basics/style-customization/_index.en.md index 3650153ec2..0594786fe7 100644 --- a/exampleSite/content/basics/style-customization/_index.en.md +++ b/exampleSite/content/basics/style-customization/_index.en.md @@ -53,7 +53,7 @@ If you need to change this default behavior, create a new file in `layouts/parti themeVariant = "red" ``` -![Red variant](/en/basics/style-customization/images/red-variant.png?width=60pc) +![Red variant](images/red-variant.png?width=60pc) ### Blue variant @@ -63,7 +63,7 @@ If you need to change this default behavior, create a new file in `layouts/parti themeVariant = "blue" ``` -![Blue variant](/en/basics/style-customization/images/blue-variant.png?width=60pc) +![Blue variant](images/blue-variant.png?width=60pc) ### Green variant @@ -73,7 +73,7 @@ If you need to change this default behavior, create a new file in `layouts/parti themeVariant = "green" ``` -![Green variant](/en/basics/style-customization/images/green-variant.png?width=60pc) +![Green variant](images/green-variant.png?width=60pc) ### 'Yours‘ variant diff --git a/exampleSite/content/cont/i18n/_index.en.md b/exampleSite/content/cont/i18n/_index.en.md index d14a64c220..cf722b41db 100644 --- a/exampleSite/content/cont/i18n/_index.en.md +++ b/exampleSite/content/cont/i18n/_index.en.md @@ -12,7 +12,7 @@ It provides: - Automatic menu generation from multilingual content - In-browser language switching -![I18n menu](/en/cont/i18n/images/i18n-menu.gif) +![I18n menu](images/i18n-menu.gif) ## Basic configuration @@ -75,4 +75,4 @@ Just set `disableLanguageSwitchingButton=true` in your `config.toml` disableLanguageSwitchingButton = true ``` -![I18n menu](/en/cont/i18n/images/i18n-menu.gif) \ No newline at end of file +![I18n menu](images/i18n-menu.gif) \ No newline at end of file diff --git a/exampleSite/content/cont/pages/_index.en.md b/exampleSite/content/cont/pages/_index.en.md index 79cc3afef0..d336c78b8f 100644 --- a/exampleSite/content/cont/pages/_index.en.md +++ b/exampleSite/content/cont/pages/_index.en.md @@ -45,7 +45,7 @@ Organize your site like [any other Hugo project](https://gohugo.io/content/organ A **Chapter** displays a page meant to be used as introduction for a set of child pages. Commonly, it contains a simple title and a catch line to define content that can be found under it. You can define any HTML as prefix for the menu. In the example below, it's just a number but that could be an [icon](https://fortawesome.github.io/Font-Awesome/). -![Chapter page](/en/cont/pages/images/pages-chapter.png?width=50pc) +![Chapter page](images/pages-chapter.png?width=50pc) ```markdown +++ @@ -66,7 +66,7 @@ To tell **Hugo-theme-relearn** to consider a page as a chapter, set `chapter=tru A **Default** page is any other content page. -![Default page](/en/cont/pages/images/pages-default.png?width=50pc) +![Default page](images/pages-default.png?width=50pc) ```toml +++ @@ -126,7 +126,7 @@ pre = " " +++ ``` -![Title with icon](/en/cont/pages/images/frontmatter-icon.png) +![Title with icon](images/frontmatter-icon.png) ### Ordering sibling menu/page entries