update: layouts/blog

fix: using T shortcode

Update layouts/blog/list.html

Co-authored-by: Tim Bannister <tim@scalefactory.com>
pull/47270/head
Junya Okabe 2024-07-26 03:00:48 +09:00
parent c0a34fbdd5
commit ac4a08abd6
2 changed files with 25 additions and 0 deletions

View File

@ -587,6 +587,8 @@ other = """<p>Items on this page refer to third party products or projects that
[thirdparty_message_vendor] [thirdparty_message_vendor]
other = """Items on this page refer to vendors external to Kubernetes. The Kubernetes project authors aren't responsible for those third-party products or projects. To add a vendor, product or project to this list, read the <a href="/docs/contribute/style/content-guide/#third-party-content">content guide</a> before submitting a change. <a href="#third-party-content-disclaimer">More information.</a>""" other = """Items on this page refer to vendors external to Kubernetes. The Kubernetes project authors aren't responsible for those third-party products or projects. To add a vendor, product or project to this list, read the <a href="/docs/contribute/style/content-guide/#third-party-content">content guide</a> before submitting a change. <a href="#third-party-content-disclaimer">More information.</a>"""
[translated_by]
other = "Translated By"
[ui_search_placeholder] [ui_search_placeholder]
other = "Search this site" other = "Search this site"

23
layouts/blog/content.html Normal file
View File

@ -0,0 +1,23 @@
<div class="td-content">
<h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
<div class="td-byline mb-4">
{{ with .Params.author }}{{ T "post_byline_by" }} <b>{{ . | markdownify }}</b> |{{ end}}
{{ with .Params.translator }}{{ T "translated_by" }} <b>{{ . | markdownify }}</b> |{{ end }}
<time datetime="{{ $.Date.Format "2006-01-02" }}" class="text-muted">{{ $.Date.Format $.Site.Params.time_format_blog }}</time>
</div>
<header class="article-meta">
{{ partial "taxonomy_terms_article_wrapper.html" . }}
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
{{ partial "reading-time.html" . }}
{{ end }}
</header>
{{ .Content }}
{{ if (.Site.Params.DisqusShortname) }}
<br />
{{ partial "disqus-comment.html" . }}
<br />
{{ end }}
{{ partial "pager.html" . }}
</div>