change some words to chinese
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
href="{{ .Permalink }}" class="card blog-card bc-next" rel="bookmark" >
|
href="{{ .Permalink }}" class="card blog-card bc-next" rel="bookmark" >
|
||||||
{{ with .Resources.GetMatch "featuredImage" }}
|
{{ with .Resources.GetMatch "featuredImage" }}
|
||||||
<div class="card-img-container">
|
<div class="card-img-container">
|
||||||
<p class="card-img-overlay">Next Article</p>
|
<p class="card-img-overlay">下一篇文章</p>
|
||||||
<picture>
|
<picture>
|
||||||
{{ $thumbnail := .Resize "400x Lanczos" }}
|
{{ $thumbnail := .Resize "400x Lanczos" }}
|
||||||
{{ $thumbnail_2 := .Resize "800x Lanczos" }}
|
{{ $thumbnail_2 := .Resize "800x Lanczos" }}
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<h2 class="card-title">{{ .Title }}</h2>
|
<h2 class="card-title">{{ .Title }}</h2>
|
||||||
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
|
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
|
||||||
<div class="card-subtext muted-text">
|
<div class="card-subtext muted-text">
|
||||||
<p>Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
|
<p>发布于<time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "2006年1月2日" }}</time></p>
|
||||||
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . }} {{ end }}</p>{{ end }}
|
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . }} {{ end }}</p>{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<h2 class="card-title">{{ .Title }}</h2>
|
<h2 class="card-title">{{ .Title }}</h2>
|
||||||
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
|
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
|
||||||
<div class="card-subtext muted-text">
|
<div class="card-subtext muted-text">
|
||||||
<p>Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
|
<p>发布于<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006年1月2日" }}</time></p>
|
||||||
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . | urlize | title }} {{ end }}</p>{{ end }}
|
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . | urlize | title }} {{ end }}</p>{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}">
|
<article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}">
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 class="post-title">{{ .Title }}</h1>
|
<h1 class="post-title">{{ .Title }}</h1>
|
||||||
{{ if isset .Params "date" }}<p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>{{ end }}
|
{{ if isset .Params "date" }}<p class="post-date">发布于<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006年1月2日" }}</time></p>{{ end }}
|
||||||
</header>
|
</header>
|
||||||
{{ with .Resources.GetMatch "featuredImage" -}}
|
{{ with .Resources.GetMatch "featuredImage" -}}
|
||||||
<picture class="post-figure">
|
<picture class="post-figure">
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ if .Params.toc -}}
|
{{ if .Params.toc -}}
|
||||||
<h2>Contents</h2>
|
<h2>目录</h2>
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|||||||
Reference in New Issue
Block a user