1
0

Updated mindflow translation.

This commit is contained in:
Alexander Andreev 2024-09-15 15:40:14 +04:00
parent ed273c4815
commit f366892b59
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34
3 changed files with 17 additions and 7 deletions

View File

@ -31,3 +31,8 @@ en:
no-posts: No posts.
privacy:
description: Privacy statements for all of my services.
mindflow:
description: Updates on my infrastructure, my very important opinions and thoughts.
text: Updates on websites and servers, my very important thoughts and opinions no one asked for.
no-posts: Nothing? There must be some... Looks like database went down.
all: All

View File

@ -31,3 +31,8 @@ ru:
no-posts: Нет постов.
privacy:
description: Заявление о приватности на моих сервисах.
mindflow:
description: Новости по работе сайта и серверов, мои нахрен никому не упёршиеся мнения и мысли.
text: Новости по работе сайтов и серверов, мои мысли и мнения, которые никому не упёрлись.
no-posts: Ничего? Как это?.. Видать, база накрылась.
all: Всё

View File

@ -10,11 +10,11 @@ import "git.arav.su/Arav/dwelling-home/pkg/mindflow"
import "git.arav.su/Arav/dwelling-home/pkg/util"
templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Request) {
@base(i18n.T(ctx, "base.section.mindflow"), "Updates on my infrastructure, my very important opinions and thoughts.", "updates, thoughts, opinions, blog, diary", "/mindflow", r, mindflowHead()) {
<p class="center">Here I post updates on websites and infrastructure, my very important opinions and thoughts no one asked for. If you'd like to subscribe to this bullshittery then <a href="/rss.xml">RSS feed</a> at your service. :)</p>
@base(i18n.T(ctx, "base.section.mindflow"), i18n.T(ctx, "base.mindflow.description"), "updates, thoughts, opinions, blog, diary", "/mindflow", r, mindflowHead()) {
<p class="center">{ i18n.T(ctx, "mindflow.text") }</p>
<section>
<menu id="filter" class="hidden">
<button name="all">All</button>
<button name="all">{ i18n.T(ctx, "mindflow.all") }</button>
for _, category := range categories {
<button name={ strings.ToLower(category.Name) }>{ category.Name }</button>
}
@ -39,12 +39,12 @@ templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Re
<span></span>
}
{{ ctz := util.ToClientTimezone(post.Date, r) }}
<time datetime={ ctz.Format(time.RFC3339) }>{ ctz.Format(time.RFC1123) }</time>
<time datetime={ ctz.Format(time.RFC3339) }>{ ctz.Format("01.02.2006 15:04:05 -07:00") }</time>
</footer>
</article>
}
if len(posts) == 0 {
<p class="center">Nothing? There must be some... Looks like database went down.</p>
<p class="center">{ i18n.T(ctx, "mindflow.no-posts") }</p>
}
</section>
}