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

github.com/vaga/hugo-theme-m10c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien CASTERS <fabien@vaga.io>2019-04-18 15:59:43 +0300
committerFabien <vaga@users.noreply.github.com>2019-04-18 16:06:49 +0300
commit08a74d270885d59ddbafec039bbbb85570553692 (patch)
treedb725d21a456c80388bebb30eee537856ce7ed4b
parent9a67c244cd6c8ed5ccde796e5845ad568de148c1 (diff)
Fix footnote links issue
-rw-r--r--exampleSite/content/posts/test-1.md4
-rw-r--r--layouts/_default/baseof.html3
2 files changed, 5 insertions, 2 deletions
diff --git a/exampleSite/content/posts/test-1.md b/exampleSite/content/posts/test-1.md
index 076b555..2b2d622 100644
--- a/exampleSite/content/posts/test-1.md
+++ b/exampleSite/content/posts/test-1.md
@@ -5,3 +5,7 @@ date = "1012-01-01"
+++
Test 1
+I am referencing a footnote[^1]
+
+
+[^1]: I am the footnote
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 33cfce8..257e796 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -7,7 +7,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="author" content="{{ .Site.Params.author | default "John Doe" }}" />
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
- <base href="{{ .Site.BaseURL }}" />
{{ $style := resources.Get "css/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" />
@@ -18,7 +17,7 @@
</head>
<body>
<header class="app-header">
- <a href="/"><img class="app-header-avatar" src="./avatar.jpg" /></a>
+ <a href="/"><img class="app-header-avatar" src="{{ .Site.BaseURL }}/avatar.jpg" /></a>
<h1>{{ .Site.Title }}</h1>
<p>{{ .Site.Params.description | default "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vehicula turpis sit amet elit pretium." }}</p>
<div class="app-header-social">