From 5901cac6c4be1428bca3cd140ea06a9dbbce3a4a Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 22 Sep 2020 13:41:23 +0530 Subject: [PATCH] post-single : display available translations in post - meta --- assets/css/post-single.css | 9 +++++++++ layouts/_default/single.html | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/assets/css/post-single.css b/assets/css/post-single.css index 6eb6f521..cc33958e 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -13,6 +13,15 @@ .post-meta { color: var(--secondary); font-size: 14px; + display: flex; + flex-wrap: wrap; +} + +.post-meta .i18n_list li { + display: inline-flex; + list-style: none; + margin: auto 3px; + box-shadow: 0 1px 0 var(--secondary); } .post-content { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 078c5b1e..6778345c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -13,6 +13,16 @@ {{ $default_txt := print .ReadingTime " " "min" }} {{ i18n "read_time" .ReadingTime | default $default_txt }}{{ end }} {{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} + {{ if .IsTranslated -}}| +