summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorroninro <liumy.f@foxmail.com>2022-08-10 12:14:54 +0800
committerroninro <liumy.f@foxmail.com>2022-08-10 12:14:54 +0800
commitc6472f7098c7a8f85cee395934ba4e706d40b672 (patch)
tree1ad3acc8ad15a3d0b1963d93726a67dd7c925dbb /layouts/_default
parentdfb6b815514a14c311ee5a1027c8d2669f2430f8 (diff)
*
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html8
-rw-r--r--layouts/_default/series.html14
-rw-r--r--layouts/_default/summary.html5
3 files changed, 25 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 7b60826..e576d62 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -58,6 +58,12 @@
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{ end -}}
+ {{ if .Site.Params.useFaviconGenerator }}
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
+ <link rel="manifest" href="/site.webmanifest">
+ {{ end }}
</head>
<!-- hack iOS CSS :active style -->
@@ -100,7 +106,7 @@
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1
sidebar-container">
<!-- Featured Tags -->
- {{ partial "featured-tags.html" }}
+ {{ partial "featured-tags.html" . }}
<!-- Friends Blog -->
{{ partial "friends.html" . }}
</div>
diff --git a/layouts/_default/series.html b/layouts/_default/series.html
new file mode 100644
index 0000000..1fa27b0
--- /dev/null
+++ b/layouts/_default/series.html
@@ -0,0 +1,14 @@
+{{ define "main" }}
+<!-- Main Content -->
+<div class="container">
+ <div class="row">
+ <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1
+ postlist-container">
+ {{ range .Pages }}
+ {{ .Render "summary" }}
+ {{ end }}
+ </div>
+ </div>
+</div>
+
+{{ end }} \ No newline at end of file
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index decc2c3..538c22d 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -5,7 +5,10 @@
<h3 class="post-subtitle">{{ . }}</h3>
{{ end }}
<div class="post-content-preview">
- {{ .Summary | plainify }}
+ {{ if isset .Params "description" }} {{ index .Params "description" }}
+ {{ else }}
+ {{ .Summary | plainify | truncate 180 }}
+ {{ end }}
</div>
</a>
<p class="post-meta">