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

github.com/AlexFinn/simple-a.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-07-07 21:24:41 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-07-07 21:24:41 +0300
commitfc02fdcb2ce34bdc09457759046818f00b14b69b (patch)
tree008f1e805042015b518ac83a3f000e64083441df
parentf0ed2c78dd5e2d6e6b344371ff720d93a59d0a22 (diff)
Fix deprecated Hugo-vars and functions
That will stop working in Hugo 0.15. See https://github.com/spf13/hugoThemesSite/issues/6
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/indexes/indexes.html2
-rw-r--r--theme.toml1
4 files changed, 4 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 268f39c..fc84e46 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,4 +1,4 @@
- {{ $baseurl := .Site.BaseUrl }}
+ {{ $baseurl := .Site.BaseURL }}
{{ template "theme/chrome/header.html" . }}
<!-- CONTENT -->
<div class="post">
diff --git a/layouts/index.html b/layouts/index.html
index 2c49674..fbb6439 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -13,7 +13,7 @@
<body>
{{ template "theme/chrome/menu.html" }}
-{{ $baseurl := .Site.BaseUrl }}
+{{ $baseurl := .Site.BaseURL }}
<div class="container">
<div class="content">
diff --git a/layouts/indexes/indexes.html b/layouts/indexes/indexes.html
index 938b002..2168b06 100644
--- a/layouts/indexes/indexes.html
+++ b/layouts/indexes/indexes.html
@@ -1,4 +1,4 @@
-{{ $baseurl := .Site.BaseUrl }}
+{{ $baseurl := .Site.BaseURL }}
{{ template "theme/chrome/header.html" . }}
<section id="main">
diff --git a/theme.toml b/theme.toml
index 85de0ed..0d29ad7 100644
--- a/theme.toml
+++ b/theme.toml
@@ -2,6 +2,7 @@ name = "simple-a"
license = "MIT"
licenselink = "https://github.com/AlexFinn/simple-a/blob/master/LICENSE.md"
description = "Minimalistic Hugo theme"
+min_version = 0.14
tags = ["AlexFinn", ]
features = ["blog", ]