diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 355af29c..c4312d9d 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1,6 +1,6 @@ /*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */ -/*! tailwindcss v3.2.3 | MIT License | https://tailwindcss.com */ +/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com */ /* 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) diff --git a/data/sharing.json b/data/sharing.json index 34e60899..7a43b491 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -1,32 +1,34 @@ { - "email": { - "icon": "email", - "title": "sharing.email", - "url": "mailto:?body=%s&subject=%s" - }, - "facebook": { - "icon": "facebook", - "title": "sharing.facebook", - "url": "https://www.facebook.com/sharer/sharer.php?u=%s"e=%s" - }, - "linkedin": { - "icon": "linkedin", - "title": "sharing.linkedin", - "url": "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" - }, - "pinterest": { - "icon": "pinterest", - "title": "sharing.pinterest", - "url": "https://pinterest.com/pin/create/bookmarklet/?url=%s&description=%s" - }, - "reddit": { - "icon": "reddit", - "title": "sharing.reddit", - "url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s" - }, - "twitter": { - "icon": "twitter", - "title": "sharing.twitter", - "url": "https://twitter.com/intent/tweet/?url=%s&text=%s" + "links": { + "email": { + "icon": "email", + "title": "sharing.email", + "url": "mailto:?body=%s&subject=%s" + }, + "facebook": { + "icon": "facebook", + "title": "sharing.facebook", + "url": "https://www.facebook.com/sharer/sharer.php?u=%s"e=%s" + }, + "linkedin": { + "icon": "linkedin", + "title": "sharing.linkedin", + "url": "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" + }, + "pinterest": { + "icon": "pinterest", + "title": "sharing.pinterest", + "url": "https://pinterest.com/pin/create/bookmarklet/?url=%s&description=%s" + }, + "reddit": { + "icon": "reddit", + "title": "sharing.reddit", + "url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s" + }, + "twitter": { + "icon": "twitter", + "title": "sharing.twitter", + "url": "https://twitter.com/intent/tweet/?url=%s&text=%s" + } } } diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index e4c5d919..d713fb3b 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -97,7 +97,7 @@ mainSections = ["docs"] [buymeacoffee] identifier = "nunocoracao" globalWidget = true - globalWidgetMessage = "Thank you for visiting." + globalWidgetMessage = "" globalWidgetColor = "#FFDD00" globalWidgetPosition = "Right" diff --git a/i18n/ru.yaml b/i18n/ru.yaml new file mode 100644 index 00000000..f8ff7b07 --- /dev/null +++ b/i18n/ru.yaml @@ -0,0 +1,64 @@ +article: + anchor_label: "Якорь" + date: "{{ .Date }}" + date_updated: "Обновлено: {{ .Date }}" + draft: "Черновик" + edit_title: "Редактировать содержимое" + reading_time: + one: "{{ .Count }} минута" + other: "{{ .Count }} минут" + reading_time_title: "Время чтения" + table_of_contents: "Оглавление" + word_count: + one: "{{ .Count }} слово" + other: "{{ .Count }} слов" + views: + one: "{{ .Count }} просмотр" + other: "{{ .Count }} просмотров" + likes: + one: "{{ .Count }} нравится" + other: "{{ .Count }} нравится" + +author: + byline_title: "Автор" + +code: + copy: "Копировать" + copied: "Скопировано" + +error: + 404_title: "Страница не найдена: в замешательстве:" + 404_error: "Ошибка 404" + 404_description: "Похоже, запрошенная вами страница не существует." + +footer: + dark_appearance: "Переключить на темный вид" + light_appearance: "Переключить на светлый вид" + powered_by: "Работает на {{ .Hugo }} & {{ .Theme }}" + +list: + externalurl_title: "Ссылка на внешний сайт" + no_articles: "Здесь пока нет статей." + +nav: + scroll_to_top_title: "Пролистать наверх" + skip_to_main: "Перейти к основному содержимому" + +search: + open_button_title: "Поиск (/)" + close_button_title: "Закрыть (Esc)" + input_placeholder: "Поиск" + +sharing: + email: "Отправить по электронной почте" + facebook: "Поделиться через Facebook" + linkedin: "Поделиться через LinkedIn" + pinterest: "PДобавить в Pinterest" + reddit: "Отправить в Reddit" + twitter: "Твитнуть в Twitter" + +shortcode: + recent_articles: "Недавние" + +recent: + show_more: "Показать еще" diff --git a/layouts/partials/sharing-links.html b/layouts/partials/sharing-links.html index ca0162c6..7decbcf8 100644 --- a/layouts/partials/sharing-links.html +++ b/layouts/partials/sharing-links.html @@ -1,9 +1,9 @@ {{ with .Params.sharingLinks | default (.Site.Params.article.sharingLinks | default false) }} - {{ $links := site.Data.sharing }}
- {{ range . }} - {{ with index $links . }} + {{ range $.Site.Data.sharing.links }} + {{ with . }}