Skip to content

Commit

Permalink
update: layouts/blog
Browse files Browse the repository at this point in the history
fix: using T shortcode

Update layouts/blog/list.html

Co-authored-by: Tim Bannister <tim@scalefactory.com>
  • Loading branch information
2 people authored and hacktivist123 committed Jul 29, 2024
1 parent 36cb1bc commit c2b7168
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/i18n/en/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,8 @@ other = """<p>Items on this page refer to third party products or projects that
[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>"""

[translated_by]
other = "Translated By"

[ui_search_placeholder]
other = "Search this site"
Expand Down
23 changes: 23 additions & 0 deletions layouts/blog/content.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit c2b7168

Please sign in to comment.