diff options
author | Kishan B <kishancs46@gmail.com> | 2017-11-03 21:22:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-03 21:22:35 +0300 |
commit | 5d25fd41af64e0e18859cbe3446df12c73660be9 (patch) | |
tree | 39ca4d4ff254d015cd8faddc0cd9bfa3630f9227 | |
parent | b73d42130f91764aa30437e963af203e4d513b8e (diff) | |
parent | 375e000abdb49c1a0c0851f6acbd82f72b89beba (diff) |
Merge pull request #31 from nazareno/master
Fix for sidebar link when baseurl is not "/"
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ For more information read the official [setup guide](https://gohugo.io/overview/ ## Configuration -After installing the Universal theme successfully, we recommend you to take a look at the [exampleSite](https://github.com/kishaningithub/hugo-creative-portfolio-theme/tree/master/exampleSite) directory. You will find a working Hugo site configured with the Universal theme that you can use as a starting point for your site. +After installing the Creative portfolio theme successfully, we recommend you to take a look at the [exampleSite](https://github.com/kishaningithub/hugo-creative-portfolio-theme/tree/master/exampleSite) directory. You will find a working Hugo site configured with the Creative portfolio theme that you can use as a starting point for your site. First, let's take a look at the [config.toml](https://github.com/kishaningithub/hugo-creative-portfolio-theme/tree/master/exampleSite/config.toml). It will be useful to learn how to customize your site. Feel free to play around with the settings. diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index f355b00..2b72681 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,6 +1,6 @@ <div id="sidebar" class="col-xs-6 col-sm-4 col-md-3 sidebar-offcanvas"> <div class="sidebar-content"> - <h1 class="sidebar-heading"><a href="/">{{ .Site.Title }}</a></h1> + <h1 class="sidebar-heading"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1> {{ range .Site.Params.sidebarAbout }} <p class="sidebar-p">{{ . | safeHTML }}</p> {{ end }} |