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

github.com/mrmierzejewski/hugo-theme-console.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Mierzejewski <marcin@mierzejewski.net>2020-06-28 21:27:00 +0300
committerMarcin Mierzejewski <marcin@mierzejewski.net>2020-06-28 21:27:00 +0300
commit55683ec08b8ddc2971d8cf0bebe361e803cca926 (patch)
treeee3c274cb8887b58fb84c90956df5f2e774231fd
parent820cab57306d8612619b34ea401d75fea52cfecf (diff)
makefile: add --cleanDestinationDir
-rw-r--r--layouts/_default/baseof.html3
-rw-r--r--makefile2
2 files changed, 3 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index a322e0c..c5478c1 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -35,7 +35,8 @@
<div class="logo terminal-prompt">
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ $.Scratch.Add "path" .Site.BaseURL }}
- <a href="{{ .Site.BaseURL }}" class="no-style {{ with .Site.Params.TitleCutting }}site-name{{ end }}">{{ .Site.Title }}</a>:~# {{ range $index, $element := split $url "/" }}{{ $.Scratch.Add "path" $element }}{{ if ne $element "" }}<a href='{{ $.Scratch.Get "path" | absURL }}'>{{ . }}</a>/{{ $.Scratch.Add "path" "/" }}{{ end }}{{ end }}</div></header>
+ <a href="{{ .Site.BaseURL }}" class="no-style {{ with .Site.Params.TitleCutting }}site-name{{ end }}">{{ .Site.Title }}</a>:~#
+ {{ range $index, $element := split $url "/" }}{{ $.Scratch.Add "path" $element }}{{ if ne $element "" }}<a href='{{ $.Scratch.Get "path" | absURL }}'>{{ . }}</a>/{{ $.Scratch.Add "path" "/" }}{{ end }}{{ end }}</div></header>
<nav class="terminal-menu">
<ul vocab="https://schema.org/" typeof="BreadcrumbList">
{{ range .Site.Params.navlinks }}
diff --git a/makefile b/makefile
index d401c13..44ca7c1 100644
--- a/makefile
+++ b/makefile
@@ -9,4 +9,4 @@ usage: ### Usage (default)
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed 's/^/ /' | sed -e 's/\\$$//' | sed -e 's/#/ /g'
hugo-server: ## Run Hugo web server and serve the example site
- cd exampleSite; hugo server --themesDir ../../ -t hugo-theme-console \ No newline at end of file
+ cd exampleSite; hugo server --cleanDestinationDir --themesDir ../../ -t hugo-theme-console \ No newline at end of file