Commit 9848608a authored by eternal-flame-AD's avatar eternal-flame-AD

update to hugo 0.53

parent dc306007
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
priority: 0
---
\ No newline at end of file
enableDisqus = false
hasFontSubset = false
\ No newline at end of file
enableDisqus = true
hasFontSubset = true
\ No newline at end of file
enableDisqus = false
hasFontSubset = false
\ No newline at end of file
---
title: Javascript evaluator
date: 2018-12-25T08:00:00+00:00
priority: -1
---
......
---
title: QR Code Generator
date: 2018-12-24T08:00:00+00:00
priority: 0
---
<style scoped>
......
......@@ -15,5 +15,5 @@
{{ end }}
{{ template "_internal/pagination.html" . }}
</div>
<script id="dsq-count-scr" src="//eternalflame-cn.disqus.com/count.js" async></script>
{{if .Site.Params.enableDisqus}}<script id="dsq-count-scr" src="//eternalflame-cn.disqus.com/count.js" async></script>{{end}}
{{ partial "tail.html" .}}
\ No newline at end of file
......@@ -20,5 +20,5 @@
{{ partial "article_includes.html" .}}
{{ partial "disqus.html" .}}
</div>
<script id="dsq-count-scr" src="//eternalflame-cn.disqus.com/count.js" async></script>
{{if .Site.Params.enableDisqus}}<script id="dsq-count-scr" src="//eternalflame-cn.disqus.com/count.js" async></script>{{end}}
{{ partial "tail.html" .}}
\ No newline at end of file
{{if not .Site.IsServer}}
{{if .Site.Params.enableDisqus}}
<div class="container disqus_holder"><div id="disqus_thread"></div></div>
<script>
/**
......
......@@ -13,7 +13,7 @@
{{ partial "head_includes.html" . }}
<!-- Custom Font start -->
{{if .Site.IsServer }}
{{if not .Site.Params.hasFontSubset }}
<script>
window.onload = function() {
console.log("Adding custom fonts")
......
......@@ -4,7 +4,7 @@
command = "eval \"$(gimme)\" && curl -fsSL https://gist.githubusercontent.com/eternal-flame-AD/7877ac56ef650e6e10b1d1c435973880/raw/e6e168646358bd73732fced16a0d352e23119a19/netlify-hugo-extended.sh | bash && LD_LIBRARY_PATH=$(pwd)/tmp/usr/lib/x86_64-linux-gnu $(pwd)/tmp/usr/local/bin/hugo --baseURL $BASE --minify && ./post.sh"
environment = { HUGO_FLAVOUR = "hugo_extended", HUGO_VERSION = "0.52", GIMME_GO_VERSION = "1.11.2" }
environment = { HUGO_FLAVOUR = "hugo_extended", HUGO_VERSION = "0.53", GIMME_GO_VERSION = "1.11.2" }
functions = "functions/dist/"
......
......@@ -33,6 +33,6 @@ find postprocess/* -prune -type d | while IFS= read -r d; do
echo "Found go.mod, installing modules"
go get
fi
go run *.go
go run *.go $DIR
cd $DIR
done
......@@ -168,21 +168,9 @@ func processHTMLFile(fn string) error {
}
func main() {
for {
_, err := os.Stat("config.toml")
if err == nil {
break
} else {
if err := os.Chdir("../"); err != nil {
panic(err)
}
}
}
ProjectDir, err := os.Getwd()
if err != nil {
panic(err)
}
ProjectDir := os.Args[1]
fmt.Printf("Working at %s\n", ProjectDir)
os.Chdir(ProjectDir)
filelist := make([]string, 0)
addHtmlFile("public/", &filelist)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment