From 5f052f9301f26030364ed9215589b555e56b07c3 Mon Sep 17 00:00:00 2001
From: Joseph Ting <josephting@users.noreply.github.com>
Date: Mon, 31 Dec 2018 11:05:18 +0000
Subject: [PATCH] bug(base-url): change from site url to page url (#131)

---
 layouts/_default/baseof.html                     |    2 +-
 exampleSite/content/posts/migrate-from-jekyll.md |   15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/exampleSite/content/posts/migrate-from-jekyll.md b/exampleSite/content/posts/migrate-from-jekyll.md
index d446086..80086e7 100644
--- a/exampleSite/content/posts/migrate-from-jekyll.md
+++ b/exampleSite/content/posts/migrate-from-jekyll.md
@@ -3,6 +3,21 @@
 title = "Migrate to Hugo from Jekyll"
 +++
 
+Table of Contents
+=================
+
+1. [Move static content to `static`](#move-static-content-to-static)
+2. [Create your Hugo configuration file](#create-your-hugo-configuration-file)
+3. [Set your configuration publish folder to `site`](#set-your-configuration-publish-folder-to-site)
+4. [Convert Jekyll templates to Hugo templates](#convert-jekyll-templates-to-hugo-templates)
+5. [Convert Jekyll plugins to Hugo shortcodes](#convert-jekyll-plugins-to-hugo-shortcodes)
+    * [Implementation](#implementation)
+    * [Usage](#usage)
+6. [Finishing Touches](#finishing-touches)
+    * [Fix Content](#fix-content)
+    * [Clean Up](#clean-up)
+7. [A practical example in a diff](#a-practical-example-in-a-diff)
+
 ## Move static content to `static`
 Jekyll has a rule that any directory not starting with `_` will be copied as-is to the `_site` output. Hugo keeps all static content under `static`. You should therefore move it all there.
 With Jekyll, something that looked like
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index a40594a..40c8778 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -9,7 +9,7 @@
     {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
     {{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
 
-    <base href="{{ .Site.BaseURL }}">
+    <base href="{{ .Permalink }}">
     <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
 
     <link rel="canonical" href="{{ .Permalink }}">

--
Gitblit v1.10.0