diff options
author | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-06-28 21:27:00 +0300 |
---|---|---|
committer | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-06-28 21:27:00 +0300 |
commit | 55683ec08b8ddc2971d8cf0bebe361e803cca926 (patch) | |
tree | ee3c274cb8887b58fb84c90956df5f2e774231fd | |
parent | 820cab57306d8612619b34ea401d75fea52cfecf (diff) |
makefile: add --cleanDestinationDir
-rw-r--r-- | layouts/_default/baseof.html | 3 | ||||
-rw-r--r-- | makefile | 2 |
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 }} @@ -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 |