Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vaga/hugo-theme-m10c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien CASTERS <fabien@vaga.io>2019-03-03 21:04:26 +0300
committerFabien <vaga@users.noreply.github.com>2019-03-03 21:36:34 +0300
commit95cf25a66ce6d29f30c21dfdec518c4e52feb573 (patch)
treec4fe6a2937cd8c23e7e3192b2321e15c31314a72 /layouts/_default
parent41e0db683eafb7b3fb7ec09c895df58545069cee (diff)
Add all feather icons
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html6
3 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index beb3db4..7b9394f 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -18,7 +18,7 @@
<p>{{ .Site.Params.description | default "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vehicula turpis sit amet elit pretium." }}</p>
<div class="app-header-social">
{{ range .Site.Params.social }}
- <a target="_blank" href="{{ .url }}">{{ partial "icon.html" .name }}</a>
+ <a target="_blank" href="{{ .url }}">{{ partial "icon.html" (dict "ctx" $ "name" .name ) }}</a>
{{ end }}
</div>
</header>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 6b90c77..00884f6 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -6,7 +6,7 @@
<li class="posts-list-item">
<a class="posts-list-item-title" href="{{ .Permalink }}">{{ .Title }}</a>
<span class="posts-list-item-description">
- {{ partial "icon.html" "clock" }} {{ .ReadingTime }} min read -
+ {{ partial "icon.html" (dict "ctx" $ "name" "clock") }} {{ .ReadingTime }} min read -
{{ .PublishDate.Format "Jan 2, 2006" }}
</span>
</li>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7027351..523b8d5 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -4,16 +4,16 @@
<h1 class ="post-title">{{ .Title }}</h1>
<div class="post-meta">
<div>
- {{ partial "icon.html" "calendar" }}
+ {{ partial "icon.html" (dict "ctx" $ "name" "calendar") }}
{{ .PublishDate.Format "Jan 2, 2006" }}
</div>
<div>
- {{ partial "icon.html" "clock" }}
+ {{ partial "icon.html" (dict "ctx" $ "name" "clock") }}
{{ .ReadingTime }} min read
</div>
{{- with .Params.tags -}}
<div>
- {{ partial "icon.html" "tag" }}
+ {{ partial "icon.html" (dict "ctx" $ "name" "tag") }}
{{ range . -}}
{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}
<a class="tag" href="{{ .Permalink }}">{{ .Title }}</a>