makefile: add --cleanDestinationDir

This commit is contained in:
Marcin Mierzejewski 2020-06-28 20:27:00 +02:00
parent 820cab5730
commit 55683ec08b
2 changed files with 3 additions and 2 deletions

View file

@ -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 }}

View file

@ -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
cd exampleSite; hugo server --cleanDestinationDir --themesDir ../../ -t hugo-theme-console