Bring files from personal blog
This commit is contained in:
parent
76ca2f889f
commit
3ec9550325
21 changed files with 321 additions and 333 deletions
|
@ -11,12 +11,13 @@
|
|||
{{- partial "seo_tags.html" . -}}
|
||||
<meta name="referrer" content="no-referrer-when-downgrade" />
|
||||
|
||||
{{ $css := resources.Get "style.css" | minify }}
|
||||
<link href="{{ $css.RelPermalink }}" rel="stylesheet">
|
||||
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
{{- partial "style.html" . -}}
|
||||
|
||||
<!-- A partial to be overwritten by the user.
|
||||
Simply place a custom_head.html into
|
||||
your local /layouts/partials-directory -->
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{{ define "main" }}
|
||||
<content>
|
||||
{{ if .Data.Singular }}
|
||||
<h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
|
||||
<small>
|
||||
<a href="{{ "/blog" | relURL }}">Remove filter</a>
|
||||
</small>
|
||||
<h3 style="margin-bottom:0">{{ i18n "filter" }} "{{ .Title }}"</h3>
|
||||
<small>
|
||||
<a href="{{ i18n "posts" }}">{{ i18n "remove" }}</a>
|
||||
</small>
|
||||
{{ end }}
|
||||
<ul class="blog-posts">
|
||||
{{ range .Pages }}
|
||||
|
@ -16,7 +16,11 @@
|
|||
</time>
|
||||
</i>
|
||||
</span>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ if .Params.link }}
|
||||
<a href="{{ .Params.link }}">{{ .Title }}</a>
|
||||
{{ else }}
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ else }}
|
||||
<li>
|
||||
|
@ -26,13 +30,11 @@
|
|||
</ul>
|
||||
{{ if .Data.Singular }}
|
||||
{{else}}
|
||||
<small>
|
||||
<div>
|
||||
{{ range .Site.Taxonomies.tags }}
|
||||
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</small>
|
||||
{{ end }}
|
||||
<div>
|
||||
{{ range .Site.Taxonomies.tags }}
|
||||
<a class="blog-tags" href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</content>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ define "main" }}
|
||||
{{ if eq .Type "blog" }}{{ if not .Params.menu }}
|
||||
{{ if not .Params.menu }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p>
|
||||
<i>
|
||||
|
@ -8,13 +8,13 @@
|
|||
</time>
|
||||
</i>
|
||||
</p>
|
||||
{{ end }}{{ end }}
|
||||
{{ end }}
|
||||
<content>
|
||||
{{ .Content }}
|
||||
</content>
|
||||
<p>
|
||||
{{ range (.GetTerms "tags") }}
|
||||
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
|
||||
<a class="blog-tags" href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue