From f9a621d56c54110d5938ad0071bbace325773070 Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Wed, 10 Sep 2025 13:55:30 +0700 Subject: feat: add page views feat: more responsive header size to keep it in one row refactor: move like and view count into separate row in blog card --- views/partials/catalogue-blog-cards.html | 11 +++++++---- views/partials/general-page-header.html | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'views') diff --git a/views/partials/catalogue-blog-cards.html b/views/partials/catalogue-blog-cards.html index 06d99d5..37b3f57 100644 --- a/views/partials/catalogue-blog-cards.html +++ b/views/partials/catalogue-blog-cards.html @@ -8,14 +8,17 @@ {{ .Title }} // {{ .ActionDate }} - // - - {{ .LikeCount }} -

{{ .PublishedTime }}

{{ .ShortDescription }}

+

+ + {{ .LikeCount }} + // + + {{ .ViewCount }} +

{{ $.L.TagsLabel }} {{ template "catalogue-blog-card-tags.html" . }}

diff --git a/views/partials/general-page-header.html b/views/partials/general-page-header.html index 63803bd..6cb87b7 100644 --- a/views/partials/general-page-header.html +++ b/views/partials/general-page-header.html @@ -1,8 +1,8 @@
-

//

-

{{ .Title }}

-

{{ .PublishedDate }}

+

//

+

{{ .Title }}

+

{{ .PublishedDate }}

{{ block "header" . }}{{ end }} -- cgit v1.3.1+13 From e372d8ad15ca9026fffb9248991e3df48c72b5f6 Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Wed, 10 Sep 2025 14:12:45 +0700 Subject: feat: add contacts in main page --- locale/localization.en.yaml | 1 + locale/localization.go | 1 + locale/localization.ru.yaml | 1 + views/pages/home-page.html | 22 ++++++++++++++++++++++ 4 files changed, 25 insertions(+) (limited to 'views') diff --git a/locale/localization.en.yaml b/locale/localization.en.yaml index b3fca58..1b3654b 100644 --- a/locale/localization.en.yaml +++ b/locale/localization.en.yaml @@ -11,6 +11,7 @@ GlobalMap: Header: 'Global Map' HomePage: Header: 'Home Page' + Contacts: 'Contacts' DidYouKnowThat: 'Did you know, that...' SidebarDescription: 'Describing the Sidebar' HomePageDescription: 'Home Page -- where we are right now!' diff --git a/locale/localization.go b/locale/localization.go index 5917932..088783f 100644 --- a/locale/localization.go +++ b/locale/localization.go @@ -30,6 +30,7 @@ type GlobalMapConfig struct { type HomePageConfig struct { Header string `yaml:"Header" json:"Header"` + Contacts string `yaml:"Contacts" json:"Contacts"` DidYouKnowThat string `yaml:"DidYouKnowThat" json:"DidYouKnowThat"` SidebarDescription string `yaml:"SidebarDescription" json:"SidebarDescription"` HomePageDescription string `yaml:"HomePageDescription" json:"HomePageDescription"` diff --git a/locale/localization.ru.yaml b/locale/localization.ru.yaml index 5e8d39f..9d7084f 100644 --- a/locale/localization.ru.yaml +++ b/locale/localization.ru.yaml @@ -11,6 +11,7 @@ GlobalMap: Header: 'Глобальная карта' HomePage: Header: 'Домашняя страница' + Contacts: 'Контакты' DidYouKnowThat: 'А вы знали, что...' SidebarDescription: 'Поясняем за сайдбар' HomePageDescription: 'Домашняя страница -- где мы сейчас и находимся!' diff --git a/views/pages/home-page.html b/views/pages/home-page.html index 9775ac3..6fd716b 100644 --- a/views/pages/home-page.html +++ b/views/pages/home-page.html @@ -10,6 +10,7 @@

{{ .L.HomePage.Hymn3 }}

{{ .L.HomePage.Hymn4 }}

+

+

+
{{- range $_ := iterate .FilledHeartCount }}
-- cgit v1.3.1+13