0
0

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:
Gibheer 2015-11-17 22:00:40 +01:00
parent f39045c690
commit 62424761f4
5 changed files with 5 additions and 5 deletions

View File

@ -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) {} +

View File

@ -1,4 +1,4 @@
baseurl = "http://zero-knowledge.org/"
baseurl = ""
languageCode = "en-us"
title = "zero-knowledge"
theme = "zero"

View File

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

View File

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

View File

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