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

github.com/wayjam/hugo-theme-mixedpaper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayJam So <imsuwj@gmail.com>2020-05-10 10:09:33 +0300
committerWayJam So <imsuwj@gmail.com>2020-05-10 10:09:33 +0300
commitfbd300cf50d808343bcc734dab284cdedbbb16fa (patch)
tree5cbf0b3c6819f9f9309592e33dd4831b38f4b465
parentdb37fcad30733951834a12d45be557e141ff22b8 (diff)
fix: set a default baseurl
-rw-r--r--README.md4
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/partials/header.html2
3 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index 38895f9..f8496c6 100644
--- a/README.md
+++ b/README.md
@@ -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 }}">