diff options
author | WayJam So <imsuwj@gmail.com> | 2020-05-10 10:09:33 +0300 |
---|---|---|
committer | WayJam So <imsuwj@gmail.com> | 2020-05-10 10:09:33 +0300 |
commit | fbd300cf50d808343bcc734dab284cdedbbb16fa (patch) | |
tree | 5cbf0b3c6819f9f9309592e33dd4831b38f4b465 | |
parent | db37fcad30733951834a12d45be557e141ff22b8 (diff) |
fix: set a default baseurl
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -13,6 +13,10 @@ Mixedpaper is a minimalist Hugo theme for writers and bloggers. Navigate to the root directory of your Hugo site and clone this repository. +``` +git clone https://github.com/wayjam/hugo-theme-mixedpaper.git themes/mixedpaper +``` + Refer to the [Hugo docs](https://gohugo.io/getting-started/quick-start/) for more information. ## Configuration diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d65cb2f..2ed5e50 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,7 +1,7 @@ baseURL = "https://example.com" languageCode = "en-us" title = "Mixedpaper" -theme = "mixedpaper-hugo" +theme = "hugo-theme-mixedpaper" enableRobotsTXT = true paginate = 10 # Set the number of posts to show before overflowing to the next page. summaryLength = 10 # Configure how long the post summary should be on the homepage. diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 5937ff1..323abde 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,7 +5,7 @@ </h1> <nav class="navbar"> <ul> - <li><a href="{{ .Site.BaseURL }}">Home</a></li> + <li><a href="{{ .Site.BaseURL | default '/' }}">Home</a></li> {{ range .Site.Menus.main }} <li> <a href="{{ .URL | relLangURL }}"> |