fix relative urls and make partials for article info

This commit is contained in:
Dmitry Kolosov 2020-02-18 20:52:31 +03:00
parent cc3c20d597
commit 9f0279bfe1
8 changed files with 38 additions and 81 deletions

View file

@ -2,7 +2,7 @@
<h1>{{ i18n "category" | humanize }}: {{ .Title }}</h1>
<div class="article-info">
<a href="categories/">{{ i18n "toAllCategories" | humanize }}</a>
<a href="{{ "categories/" | absURL }}">{{ i18n "toAllCategories" | humanize }}</a>
</div>
{{ range .Data.Pages }}
<article class="post-list">
@ -15,11 +15,7 @@
<div class="content">
{{ .Summary }}
</div>
<div class="article-info">
{{ if .Params.date }}
<div class="article-date">{{ .Params.date.Format "2006-01-02" }}</div>
{{ end }}
</div>
{{ partial "articleInfoDate.html" . }}
<!-- {{ if .Truncated }}
<div class="read-more">
<a href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>