some release fixes
To get https working, the paths need to be absolute in relation to the called domain. For that, I had to set the base URL empty and make every path begin with a slash.
This commit is contained in:
parent
f39045c690
commit
62424761f4
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ build:
|
||||
clean:
|
||||
-rm -r public/*
|
||||
|
||||
install: build
|
||||
install:
|
||||
cp -r public/ $(HTTPDIR)/
|
||||
find $(HTTPDIR) ! -path $(HTTPDIR) -type d -exec chmod $(DIRMODE) {} +
|
||||
find $(HTTPDIR) ! -path $(HTTPDIR) -type f -exec chmod $(FILEMODE) {} +
|
||||
|
@ -1,4 +1,4 @@
|
||||
baseurl = "http://zero-knowledge.org/"
|
||||
baseurl = ""
|
||||
languageCode = "en-us"
|
||||
title = "zero-knowledge"
|
||||
theme = "zero"
|
||||
|
@ -11,7 +11,7 @@
|
||||
</header>
|
||||
<aside>
|
||||
{{ if .Params.author }}
|
||||
<a class="author" href="{{ .Site.BaseURL }}author/{{ lower .Params.author }}">{{ .Params.author }}</a>
|
||||
<a class="author" href="{{ .Site.BaseURL }}/author/{{ lower .Params.author }}">{{ .Params.author }}</a>
|
||||
{{ end }}
|
||||
<span class="date">{{ dateFormat "2006-01-02 15:04" .Date }}</span>
|
||||
</aside>
|
||||
|
@ -10,5 +10,5 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
|
||||
<h1><a href="{{ .Site.BaseURL }}/">{{ .Site.Title }}</a></h1>
|
||||
</header>
|
||||
|
@ -6,7 +6,7 @@
|
||||
{{ if .Truncated }}<a class="more" href="{{ .Permalink }}">read more</a>{{ end }}
|
||||
</nav>
|
||||
<aside>
|
||||
<a class="author" href="{{ .Site.BaseURL }}author/{{ lower .Params.author }}">{{ .Params.author }}</a>
|
||||
<a class="author" href="{{ .Site.BaseURL }}/author/{{ lower .Params.author }}">{{ .Params.author }}</a>
|
||||
<span class="date">{{ dateFormat "2006-01-02 15:04" .Date }}</span>
|
||||
</aside>
|
||||
<section class="summary">
|
||||
|
Loading…
Reference in New Issue
Block a user