updated headers / footers / links / post tags
This commit is contained in:
@@ -1,29 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="{{ $.Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ $style := resources.Get "sass/main.scss" | toCSS | minify | fingerprint "sha512" }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
|
||||
|
||||
{{ block "title" . }}
|
||||
<title>
|
||||
{{ if .IsHome }}
|
||||
{{ $.Site.Title }}
|
||||
{{ else }}
|
||||
{{ .Title }} / {{ $.Site.Title }}
|
||||
{{ end }}
|
||||
</title>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
{{ partial "site-head.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -34,7 +12,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{{ block "footer" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "site-footer.html" . }}
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -1,6 +1,32 @@
|
||||
{{ define "main" }}
|
||||
<article class="post">
|
||||
<h1><a href="{{ .Permalink }}">{{ .Title }}</a> {{ if .Draft }}(Draft){{ end }}</h1>
|
||||
<div class="post-header">
|
||||
<h1 class="post-title">{{ .Title }} {{ if .Draft }}(Draft){{ end }}</h1>
|
||||
|
||||
<div class="post-meta">
|
||||
{{ if .Params.Date }}
|
||||
<span class="post-date"><i class="fa fa-chevron-right"></i> Posted on {{ .Date.Format "2006-01-02" }}</span>
|
||||
{{ end }}
|
||||
{{ with .Params.Author }}
|
||||
<span class="post-author"><i class="fa fa-chevron-right"></i> {{ . }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="post-tags">
|
||||
{{ if .Params.tags }}
|
||||
<span class="post-tags">
|
||||
<i class="fa fa-chevron-right"></i>
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">#{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ with .Params.Cover }}
|
||||
<img src="{{ . | absURL }}" class="post-cover" />
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="post-content">{{ .Content | safeHTML }}</div>
|
||||
|
||||
|
Reference in New Issue
Block a user