diff options
| author | roninro <liumy.f@foxmail.com> | 2022-08-10 12:14:54 +0800 |
|---|---|---|
| committer | roninro <liumy.f@foxmail.com> | 2022-08-10 12:14:54 +0800 |
| commit | c6472f7098c7a8f85cee395934ba4e706d40b672 (patch) | |
| tree | 1ad3acc8ad15a3d0b1963d93726a67dd7c925dbb /layouts | |
| parent | dfb6b815514a14c311ee5a1027c8d2669f2430f8 (diff) | |
*
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/baseof.html | 8 | ||||
| -rw-r--r-- | layouts/_default/series.html | 14 | ||||
| -rw-r--r-- | layouts/_default/summary.html | 5 | ||||
| -rw-r--r-- | layouts/partials/friends.html | 2 | ||||
| -rw-r--r-- | layouts/partials/intro-header.html | 20 |
5 files changed, 36 insertions, 13 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"> diff --git a/layouts/partials/friends.html b/layouts/partials/friends.html index f97e727..e23b67a 100644 --- a/layouts/partials/friends.html +++ b/layouts/partials/friends.html @@ -4,7 +4,7 @@ <h5>FRIENDS</h5> <ul class="list-inline"> {{ range $friends }} - <li><a href="{{ .url }}">{{ .name }}</a></li> + <li><a href="{{ .url }}" target="_blank">{{ .name }}</a></li> {{ end }} </ul> {{ end }}
\ No newline at end of file diff --git a/layouts/partials/intro-header.html b/layouts/partials/intro-header.html index 37c5604..360c90c 100644 --- a/layouts/partials/intro-header.html +++ b/layouts/partials/intro-header.html @@ -44,18 +44,18 @@ <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> {{ if eq (.Param "short") true }} <div class="site-heading" id="tag-heading"> - {{ else }} - <div class="site-heading"> - {{ end }} - <h1>{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}</h1> - {{ $description := .Description }} - {{ if .IsHome }} - {{ $description = .Site.Params.description }} - {{ end }} - <span class="subheading">{{ $description }}</span> - </div> + {{ else }} + <div class="site-heading"> + {{ end }} + <h1>{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}</h1> + {{ $description := .Description }} + {{ if .IsHome }} + {{ $description = .Site.Params.description }} + {{ end }} + <span class="subheading">{{ $description }}</span> </div> </div> </div> + </div> </header> {{ end }}
\ No newline at end of file |
