mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-13 02:16:19 +01:00
i18n: update i18n string format (#371)
This commit is contained in:
parent
36f59a72ee
commit
9c1244490f
35 changed files with 236 additions and 284 deletions
|
@ -31,6 +31,8 @@
|
|||
[theme=dark] & {
|
||||
color: $global-font-secondary-color-dark;
|
||||
}
|
||||
|
||||
@include link(false, false);
|
||||
}
|
||||
|
||||
.post-info-md {
|
||||
|
|
|
@ -89,7 +89,7 @@ youtubechannel:
|
|||
# 012: Tumblr
|
||||
tumblr:
|
||||
weight: 12
|
||||
template: https://%s.tumblr.com/
|
||||
template: https://%v.tumblr.com/
|
||||
title: Tumblr
|
||||
icon:
|
||||
class: fab fa-tumblr fa-fw
|
||||
|
@ -225,7 +225,7 @@ spotify:
|
|||
# 029: Bandcamp
|
||||
bandcamp:
|
||||
weight: 29
|
||||
template: https://%s.bandcamp.com/
|
||||
template: https://%v.bandcamp.com/
|
||||
title: Bandcamp
|
||||
icon:
|
||||
class: fab fa-bandcamp fa-fw
|
||||
|
@ -281,7 +281,7 @@ foursquare:
|
|||
# 036: Hacker News
|
||||
hackernews:
|
||||
weight: 36
|
||||
template: https://news.ycombinator.com/user?id=%s
|
||||
template: https://news.ycombinator.com/user?id=%v
|
||||
title: Hacker News
|
||||
icon:
|
||||
class: fab fa-hacker-news fa-fw
|
||||
|
@ -385,7 +385,7 @@ jsfiddle:
|
|||
# 049: DeviantArt
|
||||
deviantart:
|
||||
weight: 49
|
||||
template: https://%s.deviantart.com/
|
||||
template: https://%v.deviantart.com/
|
||||
title: DeviantArt
|
||||
icon:
|
||||
class: fab fa-deviantart fa-fw
|
||||
|
@ -409,7 +409,7 @@ dribbble:
|
|||
# 052: WordPress
|
||||
wordpress:
|
||||
weight: 52
|
||||
template: https://%s.wordpress.com/
|
||||
template: https://%v.wordpress.com/
|
||||
title: WordPress
|
||||
icon:
|
||||
class: fab fa-wordpress fa-fw
|
||||
|
@ -425,7 +425,7 @@ vine:
|
|||
# 054: Google Scholar
|
||||
googlescholar:
|
||||
weight: 54
|
||||
template: https://scholar.google.com/citations?%s
|
||||
template: https://scholar.google.com/citations?%v
|
||||
title: Google Scholar
|
||||
icon:
|
||||
simpleicons: googlescholar
|
||||
|
@ -472,7 +472,7 @@ gitea:
|
|||
# 060: XMPP
|
||||
xmpp:
|
||||
weight: 60
|
||||
template: xmpp:%s
|
||||
template: xmpp:%v
|
||||
title: XMPP
|
||||
icon:
|
||||
simpleicons: xmpp
|
||||
|
@ -496,7 +496,7 @@ bilibili:
|
|||
# 063: Email
|
||||
email:
|
||||
weight: 63
|
||||
template: mailto:%s
|
||||
template: mailto:%v
|
||||
title: Email
|
||||
icon:
|
||||
class: far fa-envelope fa-fw
|
||||
|
|
34
i18n/de.toml
34
i18n/de.toml
|
@ -17,7 +17,7 @@ other = "Artikel"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "Alle %s"
|
||||
other = "Alle {{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "Tag"
|
||||
|
@ -47,10 +47,7 @@ other = "Thema wechseln"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "Ermöglicht durch %s"
|
||||
|
||||
[theme]
|
||||
other = "Thema"
|
||||
other = "Ermöglicht durch {{ .Hugo }} | Thema - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -108,33 +105,30 @@ other = "Teilen auf"
|
|||
[contents]
|
||||
other = "Inhalt"
|
||||
|
||||
[publish]
|
||||
other = "veröffentlicht auf"
|
||||
[publishedOnDate]
|
||||
other = "veröffentlicht auf {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "enthalten in"
|
||||
[includedInCategories]
|
||||
other = "enthalten in {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
one = "Ein Wort"
|
||||
other = "{{ .Count }} Wörter"
|
||||
one = "Ein wort"
|
||||
other = "{{ .Count }} wörter"
|
||||
|
||||
[readingTime]
|
||||
one = "Eine Minute"
|
||||
other = "{{ .Count }} Minuten"
|
||||
one = "Eine minute"
|
||||
other = "{{ .Count }} minuten"
|
||||
|
||||
[views]
|
||||
other = "Aufrufe"
|
||||
other = "aufrufe"
|
||||
|
||||
[author]
|
||||
other = "Autor"
|
||||
|
||||
[lastMod]
|
||||
other = "Aktualisiert am %s"
|
||||
[updatedOnDate]
|
||||
other = "Aktualisiert am {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "Veröffentlicht unter der %s Lizenz"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "Markdown anzeigen"
|
||||
|
||||
[back]
|
||||
|
|
30
i18n/en.toml
30
i18n/en.toml
|
@ -16,7 +16,7 @@ other = "Posts"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "All %s"
|
||||
other = "All {{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "Tag"
|
||||
|
@ -46,10 +46,7 @@ other = "Switch Theme"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "Powered by %s"
|
||||
|
||||
[theme]
|
||||
other = "Theme"
|
||||
other = "Powered by {{ .Hugo }} | Theme - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -104,17 +101,19 @@ other = "Share on"
|
|||
[contents]
|
||||
other = "Contents"
|
||||
|
||||
[publish]
|
||||
other = "published on"
|
||||
[publishedOnDate]
|
||||
other = "published on {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "included in"
|
||||
[includedInCategories]
|
||||
other = "included in {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
other = "about {{ .Count }} words"
|
||||
one = "One word"
|
||||
other = "{{ .Count }} words"
|
||||
|
||||
[readingTime]
|
||||
other = "{{ .Count }} min"
|
||||
one = "One minute"
|
||||
other = "{{ .Count }} minutes"
|
||||
|
||||
[views]
|
||||
other = "views"
|
||||
|
@ -122,13 +121,10 @@ other = "views"
|
|||
[author]
|
||||
other = "Author"
|
||||
|
||||
[lastMod]
|
||||
other = "The article was updated on %s"
|
||||
[updatedOnDate]
|
||||
other = "Updated on {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "Published under the %s license"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "Read Markdown"
|
||||
|
||||
[back]
|
||||
|
|
30
i18n/es.toml
30
i18n/es.toml
|
@ -17,7 +17,7 @@ other = "Artículos"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "Todo %s"
|
||||
other = "Todo {{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "Etiqueta"
|
||||
|
@ -47,10 +47,7 @@ other = "Cambia el tema"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "Provisto por %s"
|
||||
|
||||
[theme]
|
||||
other = "Tema"
|
||||
other = "Provisto por {{ .Hugo }} | Tema - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -108,17 +105,19 @@ other = "Compartir en"
|
|||
[contents]
|
||||
other = "Contenido"
|
||||
|
||||
[publish]
|
||||
other = "publicado el"
|
||||
[publishedOnDate]
|
||||
other = "publicado el {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "incluido en"
|
||||
[includedInCategories]
|
||||
other = "incluido en {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
other = "unas {{ .Count }} palabras"
|
||||
one = "Una palabra"
|
||||
other = "{{ .Count }} palabras"
|
||||
|
||||
[readingTime]
|
||||
other = "{{ .Count }} min"
|
||||
one = "Un minuto"
|
||||
other = "{{ .Count }} minutos"
|
||||
|
||||
[views]
|
||||
other = "vistas"
|
||||
|
@ -126,13 +125,10 @@ other = "vistas"
|
|||
[author]
|
||||
other = "Autor"
|
||||
|
||||
[lastMod]
|
||||
other = "El artículo fue actualizado el %s"
|
||||
[updatedOnDate]
|
||||
other = "Actualizado el {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "Publicado bajo la licencia %s"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "Leer Markdown"
|
||||
|
||||
[back]
|
||||
|
|
30
i18n/fr.toml
30
i18n/fr.toml
|
@ -17,7 +17,7 @@ other = "Posts"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "Tous %s"
|
||||
other = "Tous {{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "Balise"
|
||||
|
@ -47,10 +47,7 @@ other = "Changer de Thème"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "Propulsé par %s"
|
||||
|
||||
[theme]
|
||||
other = "Thème"
|
||||
other = "Propulsé par {{ .Hugo }} | Thème - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -108,17 +105,19 @@ other = "Partager sur"
|
|||
[contents]
|
||||
other = "Contenu"
|
||||
|
||||
[publish]
|
||||
other = "publié le"
|
||||
[publishedOnDate]
|
||||
other = "publié le {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "inclus dans"
|
||||
[includedInCategories]
|
||||
other = "inclus dans {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
other = "environ {{ .Count }} mots"
|
||||
one = "Un mot"
|
||||
other = "{{ .Count }} mots"
|
||||
|
||||
[readingTime]
|
||||
other = "{{ .Count }} min"
|
||||
one = "Une minute"
|
||||
other = "{{ .Count }} minutes"
|
||||
|
||||
[views]
|
||||
other = "vues"
|
||||
|
@ -126,13 +125,10 @@ other = "vues"
|
|||
[author]
|
||||
other = "Auteur"
|
||||
|
||||
[lastMod]
|
||||
other = "Dernière mise à jour le %s"
|
||||
[updatedOnDate]
|
||||
other = "Mis à jour le {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "Publié sous licence %s"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "Lire Markdown"
|
||||
|
||||
[back]
|
||||
|
|
30
i18n/it.toml
30
i18n/it.toml
|
@ -17,7 +17,7 @@ other = "Articoli"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "Tutti %s"
|
||||
other = "Tutti {{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "Etichetta"
|
||||
|
@ -47,10 +47,7 @@ other = "Cambiare il tema"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "Realizzato da %s"
|
||||
|
||||
[theme]
|
||||
other = "Tema"
|
||||
other = "Realizzato da {{ .Hugo }} | Tema - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -108,17 +105,19 @@ other = "Condividi su"
|
|||
[contents]
|
||||
other = "Contenuti"
|
||||
|
||||
[publish]
|
||||
other = "pubblicato su"
|
||||
[publishedOnDate]
|
||||
other = "pubblicato su {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "incluso in"
|
||||
[includedInCategories]
|
||||
other = "incluso in {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
other = "circa {{ .Count }} parole"
|
||||
one = "Una parola"
|
||||
other = "{{ .Count }} parole"
|
||||
|
||||
[readingTime]
|
||||
other = "{{ .Count }} min"
|
||||
one = "Un minuto"
|
||||
other = "{{ .Count }} minuti"
|
||||
|
||||
[views]
|
||||
other = "visualizzazioni"
|
||||
|
@ -126,13 +125,10 @@ other = "visualizzazioni"
|
|||
[author]
|
||||
other = "Autore"
|
||||
|
||||
[lastMod]
|
||||
other = "L'articolo è stato modificato il %s"
|
||||
[updatedOnDate]
|
||||
other = "Aggiornato il {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "Pubblicato sotto la licenza %s"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "Leggi Markdown"
|
||||
|
||||
[back]
|
||||
|
|
30
i18n/pl.toml
30
i18n/pl.toml
|
@ -17,7 +17,7 @@ other = "Posty"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "Wszystkie %s"
|
||||
other = "Wszystkie {{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "Tag"
|
||||
|
@ -47,10 +47,7 @@ other = "Przełącz schemat"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "Napędzany przez %s"
|
||||
|
||||
[theme]
|
||||
other = "Szablon"
|
||||
other = "Napędzany przez {{ .Hugo }} | Szablon - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -96,17 +93,19 @@ other = "Udostępnij na"
|
|||
[contents]
|
||||
other = "Spis treści"
|
||||
|
||||
[publish]
|
||||
other = "opublikowano"
|
||||
[publishedOnDate]
|
||||
other = "opublikowano {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "zawarty w"
|
||||
[includedInCategories]
|
||||
other = "zawarty w {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
other = "około {{ .Count }} słów"
|
||||
one = "Jedno słowo"
|
||||
other = "{{ .Count }} słów"
|
||||
|
||||
[readingTime]
|
||||
other = "{{ .Count }} min"
|
||||
one = "Jedna minuta"
|
||||
other = "{{ .Count }} minuty"
|
||||
|
||||
[views]
|
||||
other = "wyświetleń"
|
||||
|
@ -114,13 +113,10 @@ other = "wyświetleń"
|
|||
[author]
|
||||
other = "Autor"
|
||||
|
||||
[lastMod]
|
||||
other = "Artykuł ostatnio zaktualizowany %s"
|
||||
[updatedOnDate]
|
||||
other = "Zaktualizowano {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "Opublikowano na licencji %s"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "Zobacz Markdown"
|
||||
|
||||
[back]
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Posts"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "Todos %s"
|
||||
other = "Todos {{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "Tag"
|
||||
|
@ -47,10 +47,7 @@ other = "Trocar tema"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "Movido a %s"
|
||||
|
||||
[theme]
|
||||
other = "Tema"
|
||||
other = "Movido a {{ .Hugo }} | Tema - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -108,17 +105,19 @@ other = "Compartilhe em"
|
|||
[contents]
|
||||
other = "Conteúdos"
|
||||
|
||||
[publish]
|
||||
other = "publicado em"
|
||||
[publishedOnDate]
|
||||
other = "publicado em {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "incluido em"
|
||||
[includedInCategories]
|
||||
other = "incluido em {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
one = "Uma palavra"
|
||||
other = "{{ .Count }} palavras"
|
||||
|
||||
[readingTime]
|
||||
other = "{{ .Count }} min"
|
||||
one = "Um minuto"
|
||||
other = "{{ .Count }} minutos"
|
||||
|
||||
[views]
|
||||
other = "visualizações"
|
||||
|
@ -126,13 +125,10 @@ other = "visualizações"
|
|||
[author]
|
||||
other = "Autor"
|
||||
|
||||
[lastMod]
|
||||
other = "O artigo foi atualizado em %s"
|
||||
[updatedOnDate]
|
||||
other = "Atualizado em {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "Publicado sobre a licença %s"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "Leia em Markdown"
|
||||
|
||||
[back]
|
||||
|
|
30
i18n/ro.toml
30
i18n/ro.toml
|
@ -17,7 +17,7 @@ other = "Articole"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "Toate %s"
|
||||
other = "Toate {{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "Etichetă"
|
||||
|
@ -47,10 +47,7 @@ other = "Schimbare Temă"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "Realizat de către %s"
|
||||
|
||||
[theme]
|
||||
other = "Temă"
|
||||
other = "Realizat de către {{ .Hugo }} | Temă - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -108,17 +105,19 @@ other = "Distribuie pe"
|
|||
[contents]
|
||||
other = "Cuprins"
|
||||
|
||||
[publish]
|
||||
other = "publicat la"
|
||||
[publishedOnDate]
|
||||
other = "publicat la {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "inclus în"
|
||||
[includedInCategories]
|
||||
other = "inclus în {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
other = "aproximativ {{ .Count }} cuvinte"
|
||||
one = "Un cuvânt"
|
||||
other = "{{ .Count }} cuvinte"
|
||||
|
||||
[readingTime]
|
||||
other = "{{ .Count }} min"
|
||||
one = "Un minut"
|
||||
other = "{{ .Count }} minute"
|
||||
|
||||
[views]
|
||||
other = "vizualizări"
|
||||
|
@ -126,13 +125,10 @@ other = "vizualizări"
|
|||
[author]
|
||||
other = "Autor"
|
||||
|
||||
[lastMod]
|
||||
other = "Articolul a fost actualizat la %s"
|
||||
[updatedOnDate]
|
||||
other = "Actualizat la {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "Publicat sub licența %s"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "Citire Markdown"
|
||||
|
||||
[back]
|
||||
|
|
30
i18n/ru.toml
30
i18n/ru.toml
|
@ -17,7 +17,7 @@ other = "Статьи"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "Все %s"
|
||||
other = "Все {{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "Тэг"
|
||||
|
@ -47,10 +47,7 @@ other = "Сменить Тему"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "Сделано %s"
|
||||
|
||||
[theme]
|
||||
other = "Тема"
|
||||
other = "Сделано {{ .Hugo }} | Тема - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -108,17 +105,19 @@ other = "Поделиться в"
|
|||
[contents]
|
||||
other = "Содержание"
|
||||
|
||||
[publish]
|
||||
other = "Опубликовано"
|
||||
[publishedOnDate]
|
||||
other = "Опубликовано {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "включен в"
|
||||
[includedInCategories]
|
||||
other = "включен в {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
other = "около {{ .Count }} слов"
|
||||
one = "Одно слово"
|
||||
other = "{{ .Count }} слов"
|
||||
|
||||
[readingTime]
|
||||
other = "{{ .Count }} мин"
|
||||
one = "Одна минута"
|
||||
other = "{{ .Count }} минут"
|
||||
|
||||
[views]
|
||||
other = "просмотров"
|
||||
|
@ -126,13 +125,10 @@ other = "просмотров"
|
|||
[author]
|
||||
other = "Автор"
|
||||
|
||||
[lastMod]
|
||||
other = "Статья была обновлена %s"
|
||||
[updatedOnDate]
|
||||
other = "Oбновлена {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "Опубликовано под лицензии %s"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "Читать Markdown"
|
||||
|
||||
[back]
|
||||
|
|
30
i18n/sr.toml
30
i18n/sr.toml
|
@ -17,7 +17,7 @@ other = "Постови"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "Све %s"
|
||||
other = "Све {{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "Таг"
|
||||
|
@ -47,10 +47,7 @@ other = "Промени Тему"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "Покреће %s"
|
||||
|
||||
[theme]
|
||||
other = "Тема"
|
||||
other = "Покреће {{ .Hugo }} | Тема - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -105,17 +102,19 @@ other = "Подели на"
|
|||
[contents]
|
||||
other = "Садржаји"
|
||||
|
||||
[publish]
|
||||
other = "објављено"
|
||||
[publishedOnDate]
|
||||
other = "објављено {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "укључено"
|
||||
[includedInCategories]
|
||||
other = "укључено {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
other = "око {{ .Count }} речи"
|
||||
one = "Једна реч"
|
||||
other = "{{ .Count }} речи"
|
||||
|
||||
[readingTime]
|
||||
other = "{{ .Count }} мин"
|
||||
one = "Један минут"
|
||||
other = "{{ .Count }} минута"
|
||||
|
||||
[views]
|
||||
other = "прегледа"
|
||||
|
@ -123,13 +122,10 @@ other = "прегледа"
|
|||
[author]
|
||||
other = "Аутор"
|
||||
|
||||
[lastMod]
|
||||
other = "Чланак је обновљен %s"
|
||||
[updatedOnDate]
|
||||
other = "Ажурирано {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "Објављено под условима %s лиценце"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "Читај Markdown"
|
||||
|
||||
[back]
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "文章"
|
|||
|
||||
# === Taxonomy ===
|
||||
[allSome]
|
||||
other = "所有%s"
|
||||
other = "所有{{ .Some }}"
|
||||
|
||||
[tag]
|
||||
other = "标签"
|
||||
|
@ -47,10 +47,7 @@ other = "切换主题"
|
|||
|
||||
# === partials/footer.html ===
|
||||
[poweredBySome]
|
||||
other = "由 %s 强力驱动"
|
||||
|
||||
[theme]
|
||||
other = "主题"
|
||||
other = "由 {{ .Hugo }} 强力驱动 | 主题 - {{ .Theme }}"
|
||||
# === partials/footer.html ===
|
||||
|
||||
# === partials/comment.html ===
|
||||
|
@ -111,17 +108,17 @@ other = "分享到"
|
|||
[contents]
|
||||
other = "目录"
|
||||
|
||||
[publish]
|
||||
other = "发布于"
|
||||
[publishedOnDate]
|
||||
other = "发布于 {{ .Date }}"
|
||||
|
||||
[included]
|
||||
other = "收录于"
|
||||
[includedInCategories]
|
||||
other = "收录于 {{ .Categories }}"
|
||||
|
||||
[wordCount]
|
||||
other = "约 {{ .Count }} 字"
|
||||
other = "{{ .Count }} 字"
|
||||
|
||||
[readingTime]
|
||||
other = "预计阅读 {{ .Count }} 分钟"
|
||||
other = "{{ .Count }} 分钟"
|
||||
|
||||
[views]
|
||||
other = "次阅读"
|
||||
|
@ -129,13 +126,10 @@ other = "次阅读"
|
|||
[author]
|
||||
other = "作者"
|
||||
|
||||
[lastMod]
|
||||
other = "本文于 %s 更新"
|
||||
[updatedOnDate]
|
||||
other = "更新于 {{ .Date }}"
|
||||
|
||||
[license]
|
||||
other = "采用 %s 协议发布"
|
||||
|
||||
[seeMarkdown]
|
||||
[readMarkdown]
|
||||
other = "阅读原始文档"
|
||||
|
||||
[back]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{- define "title" }}
|
||||
{{- T "pageNotFound" | printf "404 %s" }} - {{ .Site.Title -}}
|
||||
{{- T "pageNotFound" | printf "404 %v" }} - {{ .Site.Title -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "content" -}}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{{- define "title" }}
|
||||
{{- .Params.Title | default (T .Section) | default .Section | string | printf (T "allSome" | string) }} - {{ .Site.Title -}}
|
||||
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "content" -}}
|
||||
<div class="page archive">
|
||||
{{- /* Title */ -}}
|
||||
<h2 class="single-title animated pulse faster">
|
||||
{{- .Params.Title | default (T .Section) | default .Section | string | printf (T "allSome" | string) -}}
|
||||
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" -}}
|
||||
</h2>
|
||||
|
||||
{{- /* Paginate */ -}}
|
||||
|
@ -25,7 +25,7 @@
|
|||
{{- .Title -}}
|
||||
</a>
|
||||
<span class="archive-item-date">
|
||||
{{- .Date.Format ($.Site.Params.section.dateFormat | default "01-02") -}}
|
||||
{{- $.Site.Params.section.dateFormat | default "01-02" | .Date.Format -}}
|
||||
</span>
|
||||
</article>
|
||||
{{- end -}}
|
||||
|
|
|
@ -23,22 +23,20 @@
|
|||
{{- partial "plugin/link.html" $options -}}
|
||||
</span>
|
||||
|
||||
{{- $publish_date := .PublishDate.Format (.Site.Params.dateFormat | default "2006-01-02") -}}
|
||||
<span class="post-publish">
|
||||
{{ T "publish" }} <time datetime={{ $publish_date }}>{{ $publish_date }}</time>
|
||||
</span>
|
||||
{{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}}
|
||||
<span class="post-publish">
|
||||
{{- printf `<time datetime="%v">%v</time>` . . | dict "Date" | T "publishedOnDate" | safeHTML -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
|
||||
{{- with .Params.categories -}}
|
||||
|
||||
<span class="post-category">
|
||||
{{- T "included" -}}
|
||||
{{- range $index, $value := . -}}
|
||||
{{- if gt $index 0 }} {{ end -}}
|
||||
{{- $category := $value | anchorize | printf "/categories/%s" | $.Site.GetPage -}}
|
||||
<a href="{{ $category.RelPermalink }}">
|
||||
<i class="far fa-folder fa-fw"></i>{{ $category.Title }}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- $categories := slice -}}
|
||||
{{- range .Params.categories -}}
|
||||
{{- $category := . | anchorize | printf "/categories/%v" | $.Site.GetPage -}}
|
||||
{{- $categories = $categories | append (printf `<a href="%v"><i class="far fa-folder fa-fw"></i>%v</a>` $category.RelPermalink $category.Title) -}}
|
||||
{{- end -}}
|
||||
{{- with delimit $categories " " -}}
|
||||
<span class="post-category">
|
||||
{{- dict "Categories" . | T "includedInCategories" | safeHTML -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
@ -60,7 +58,7 @@
|
|||
<i class="fas fa-tags fa-fw"></i>
|
||||
{{- range $index, $value := . -}}
|
||||
{{- if gt $index 0 }}, {{ end -}}
|
||||
{{- $tag := $value | anchorize | printf "/tags/%s" | $.Site.GetPage -}}
|
||||
{{- $tag := $value | anchorize | printf "/tags/%v" | $.Site.GetPage -}}
|
||||
<a href="{{ $tag.RelPermalink }}">{{ $tag.Title }}</a>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
{{- $uri = .Permalink -}}
|
||||
{{- end -}}
|
||||
{{- $meta := dict "uri" $uri "title" .Title "tags" .Params.tags "categories" .Params.categories -}}
|
||||
{{- $meta = .PublishDate.Format ($.Site.Params.dateFormat | default "2006-01-02") | dict "date" | merge $meta -}}
|
||||
{{- $meta = $.Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format | dict "date" | merge $meta -}}
|
||||
{{- with .Description -}}
|
||||
{{- $index = $index | append (dict "content" . "objectID" $uri | merge $meta) -}}
|
||||
{{- end -}}
|
||||
|
@ -23,11 +23,11 @@
|
|||
{{- $content = $content | replaceRE `<span class="lnt?"> *\d*\n?</span>` "" -}}
|
||||
{{- range $i, $contenti := split $content "<h2 id=" -}}
|
||||
{{- if gt $i 0 -}}
|
||||
{{- $contenti = printf "<h2 id=%s" $contenti -}}
|
||||
{{- $contenti = printf "<h2 id=%v" $contenti -}}
|
||||
{{- end -}}
|
||||
{{- range $j, $contentj := split $contenti "<h3 id=" -}}
|
||||
{{- if gt $j 0 -}}
|
||||
{{- $contentj = printf "<h3 id=%s" $contentj -}}
|
||||
{{- $contentj = printf "<h3 id=%v" $contentj -}}
|
||||
{{- end -}}
|
||||
{{/* Plainify, unescape and remove (\n, \t) */}}
|
||||
{{- $contentj = $contentj | plainify | htmlUnescape | replaceRE `[\n\t ]+` " " -}}
|
||||
|
@ -35,7 +35,7 @@
|
|||
{{- $contentj = substr $contentj 0 $.Site.Params.search.contentLength -}}
|
||||
{{- end -}}
|
||||
{{- if $contentj | and (ne $contentj " ") -}}
|
||||
{{- $one := printf "%s:%d:%d" $uri $i $j | dict "content" $contentj "objectID" | merge $meta -}}
|
||||
{{- $one := printf "%v:%v:%v" $uri $i $j | dict "content" $contentj "objectID" | merge $meta -}}
|
||||
{{- $index = $index | append $one -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{{- $disqus := $comment.disqus | default dict -}}
|
||||
{{- if $disqus.enable -}}
|
||||
<div id="disqus_thread" class="comment"></div>
|
||||
{{- $source := printf "https://%s.disqus.com/embed.js" $disqus.shortname -}}
|
||||
{{- $source := printf "https://%v.disqus.com/embed.js" $disqus.shortname -}}
|
||||
{{- dict "source" $source "defer" true | dict "scratch" .Scratch "data" | partial "scratch/script.html" -}}
|
||||
<noscript>
|
||||
Please enable JavaScript to view the comments powered by <a href="https://disqus.com/?ref_noscript">Disqus</a>.
|
||||
|
@ -51,7 +51,7 @@
|
|||
{{- with $valine.serverURLs -}}
|
||||
{{- $commentConfig = dict "serverURLs" . | dict "valine" | merge $commentConfig -}}
|
||||
{{- end -}}
|
||||
{{- $commentConfig = $valine.emoji | default "google.yml" | printf "data/emoji/%s" | resources.Get | transform.Unmarshal | dict "valine" | merge $commentConfig -}}
|
||||
{{- $commentConfig = $valine.emoji | default "google.yml" | printf "data/emoji/%v" | resources.Get | transform.Unmarshal | dict "valine" | merge $commentConfig -}}
|
||||
<noscript>
|
||||
Please enable JavaScript to view the comments powered by <a href="https://valine.js.org/">Valine</a>.
|
||||
</noscript>
|
||||
|
@ -67,7 +67,7 @@
|
|||
data-width="{{ $facebook.width }}"
|
||||
data-numposts="{{ $facebook.numPosts }}"
|
||||
></div>
|
||||
{{- $source := printf "https://connect.facebook.net/%s/sdk.js#xfbml=1&version=v5.0&appId=%s&autoLogAppEvents=1" ($facebook.languageCode | default (T "facebookLanguageCode")) $facebook.appId -}}
|
||||
{{- $source := printf "https://connect.facebook.net/%v/sdk.js#xfbml=1&version=v5.0&appId=%v&autoLogAppEvents=1" ($facebook.languageCode | default (T "facebookLanguageCode")) $facebook.appId -}}
|
||||
{{- dict "source" $source "defer" true | dict "scratch" .Scratch "data" | partial "scratch/script.html" -}}
|
||||
<noscript>
|
||||
Please enable JavaScript to view the comments powered by <a href="https://developers.facebook.com/docs/plugins/comments/"></a>Facebook</a>.
|
||||
|
@ -78,22 +78,22 @@
|
|||
{{- $telegram := $comment.telegram | default dict -}}
|
||||
{{- if $telegram.enable -}}
|
||||
<div id="telegram-comments" class="comment"></div>
|
||||
{{- $attr := printf `data-comments-app-website="%s"` $telegram.siteID -}}
|
||||
{{- $attr = printf `%s data-limit="%s"` $attr ($telegram.limit | default 5) -}}
|
||||
{{- $attr := printf `data-comments-app-website="%v"` $telegram.siteID -}}
|
||||
{{- $attr = printf `%v data-limit="%v"` $attr ($telegram.limit | default 5) -}}
|
||||
{{- with $telegram.height -}}
|
||||
{{- $attr = printf `%s data-height="%s"` $attr . -}}
|
||||
{{- $attr = printf `%v data-height="%v"` $attr . -}}
|
||||
{{- end -}}
|
||||
{{- with $telegram.color -}}
|
||||
{{- $attr = printf `%s data-color="%s"` $attr . -}}
|
||||
{{- $attr = printf `%v data-color="%v"` $attr . -}}
|
||||
{{- end -}}
|
||||
{{- if $telegram.colorful -}}
|
||||
{{- $attr = printf `%s data-colorful="1"` $attr -}}
|
||||
{{- $attr = printf `%v data-colorful="1"` $attr -}}
|
||||
{{- end -}}
|
||||
{{- if $telegram.dislikes -}}
|
||||
{{- $attr = printf `%s data-dislikes="1"` $attr -}}
|
||||
{{- $attr = printf `%v data-dislikes="1"` $attr -}}
|
||||
{{- end -}}
|
||||
{{- if $telegram.outlined -}}
|
||||
{{- $attr = printf `%s data-outlined="1"` $attr -}}
|
||||
{{- $attr = printf `%v data-outlined="1"` $attr -}}
|
||||
{{- end -}}
|
||||
{{- dict "source" "https://comments.app/js/widget.js?2" "defer" true "attr" $attr | dict "scratch" .Scratch "data" | partial "scratch/script.html" -}}
|
||||
<noscript>
|
||||
|
|
|
@ -11,8 +11,9 @@
|
|||
{{- /* Hugo and LoveIt */ -}}
|
||||
{{- if ne .Site.Params.footer.hugo false -}}
|
||||
<div class="footer-line">
|
||||
{{- $hugo := printf `<a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo %s">Hugo</a>` hugo.Version -}}
|
||||
{{- $hugo | string | printf (T "poweredBySome" | string) | safeHTML }} | {{ T "theme" }} - <a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt {{ .Scratch.Get `version` }}"><i class="far fa-kiss-wink-heart fa-fw"></i> LoveIt</a>
|
||||
{{- $hugo := printf `<a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo %v">Hugo</a>` hugo.Version -}}
|
||||
{{- $theme := .Scratch.Get "version" | printf `<a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt %v"><i class="far fa-kiss-wink-heart fa-fw"></i> LoveIt</a>` -}}
|
||||
{{- dict "Hugo" $hugo "Theme" $theme | T "poweredBySome" | safeHTML }}
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="home-profile">
|
||||
{{- $avatar := $profile.avatarURL -}}
|
||||
{{- with $profile.gravatarEmail -}}
|
||||
{{- $avatar = md5 . | printf "https://www.gravatar.com/avatar/%s?s=240&d=mp" -}}
|
||||
{{- $avatar = md5 . | printf "https://www.gravatar.com/avatar/%v?s=240&d=mp" -}}
|
||||
{{- end -}}
|
||||
{{- if $avatar -}}
|
||||
<div class="home-avatar">
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{- if not .Site.Params.version -}}
|
||||
{{- errorf "Configuration Error 配置文件错误\n\nYou haven't configured the LoveIt version param correctly yet. See https://hugoloveit.com/theme-documentation-basics/#basic-configuration\n你还没有正确配置 LoveIt 的版本参数. 参考 https://hugoloveit.com/zh-cn/theme-documentation-basics/#basic-configuration\n" -}}
|
||||
{{- else if ne .Site.Params.version $VERSION -}}
|
||||
{{- errorf (printf "Compatibility Error 兼容性错误\n\n%s -> %s:\nYou have an incompatible update. See https://github.com/dillonzq/LoveIt/releases\n你进行了一次不兼容的更新. 参考 https://github.com/dillonzq/LoveIt/releases\n" .Site.Params.version $VERSION) -}}
|
||||
{{- errorf (printf "Compatibility Error 兼容性错误\n\n%v -> %v:\nYou have an incompatible update. See https://github.com/dillonzq/LoveIt/releases\n你进行了一次不兼容的更新. 参考 https://github.com/dillonzq/LoveIt/releases\n" .Site.Params.version $VERSION) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
@ -15,11 +15,11 @@
|
|||
{{- if eq hugo.Environment "production" -}}
|
||||
{{- $cdn := .Site.Params.cdn -}}
|
||||
{{- with $cdn.data -}}
|
||||
{{- $cdnData := printf "data/cdn/%s" . | resources.Get | transform.Unmarshal -}}
|
||||
{{- $cdnData := printf "data/cdn/%v" . | resources.Get | transform.Unmarshal -}}
|
||||
{{- $cdn = dict "simpleIconsPrefix" $cdnData.prefix.simpleIcons -}}
|
||||
{{- $prefix := $cdnData.prefix.libFiles | default "" -}}
|
||||
{{- range $key, $value := $cdnData.libFiles -}}
|
||||
{{- $cdn = printf "%s%s" $prefix $value | dict $key | merge $cdn -}}
|
||||
{{- $cdn = printf "%v%v" $prefix $value | dict $key | merge $cdn -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- .Scratch.Set "cdn" $cdn -}}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());
|
||||
gtag('config', '{{ . }}'{{ if $.google.anonymizeIP }}, { 'anonymize_ip': true }{{ end }});
|
||||
</script>
|
||||
{{- printf "https://www.googletagmanager.com/gtag/js?id=%s" . | dict "async" true "source" | partial "plugin/script.html" -}}
|
||||
{{- printf "https://www.googletagmanager.com/gtag/js?id=%v" . | dict "async" true "source" | partial "plugin/script.html" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* Fathom Analytics */ -}}
|
||||
|
@ -15,6 +15,6 @@
|
|||
fathom('set', 'siteId', '{{ . }}');
|
||||
fathom('trackPageview');
|
||||
</script>
|
||||
{{- dict "source" ($.fathom.server | default "cdn.usefathom.com" | printf "https://%s/tracker.js") "async" true "attr" "id=fathom-script" | partial "plugin/script.html" -}}
|
||||
{{- dict "source" ($.fathom.server | default "cdn.usefathom.com" | printf "https://%v/tracker.js") "async" true "attr" "id=fathom-script" | partial "plugin/script.html" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- with $features | uniq -}}
|
||||
{{- delimit . "%2C" | printf "https://polyfill.io/v3/polyfill.min.js?features=%s" | dict "source" | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
|
||||
{{- delimit . "%2C" | printf "https://polyfill.io/v3/polyfill.min.js?features=%v" | dict "source" | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{{- $prefix = . -}}
|
||||
{{- end -}}
|
||||
{{- $prefix = $prefix | strings.TrimSuffix "/" -}}
|
||||
{{- $src = printf "%s/%s.svg" $prefix . -}}
|
||||
{{- $src = printf "%v/%v.svg" $prefix . -}}
|
||||
{{- end -}}
|
||||
{{- if (urls.Parse $src).Host | not -}}
|
||||
{{- $src = (resources.Get $src | minify).RelPermalink -}}
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
{{- with .url -}}
|
||||
{{- $href = . | relLangURL -}}
|
||||
{{- else -}}
|
||||
{{- $template := .template | default "%s" -}}
|
||||
{{- $template := .template | default "%v" -}}
|
||||
{{- with .prefix -}}
|
||||
{{- $template = . | strings.TrimSuffix "/" | printf "%s/%%s" -}}
|
||||
{{- $template = . | strings.TrimSuffix "/" | printf "%v/%%v" -}}
|
||||
{{- end -}}
|
||||
{{- $href = printf (string $template) .id -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
{{- $params := .Scratch.Get "params" -}}
|
||||
{{- $modify_date := .Lastmod.Format (.Site.Params.dateformat | default "2006-01-02") -}}
|
||||
|
||||
<div class="post-footer" id="post-footer">
|
||||
<div class="post-info">
|
||||
<div class="post-info-line">
|
||||
<div class="post-info-mod">
|
||||
<span>
|
||||
{{- $modify_date | string | printf (T "lastMod" | string) -}}
|
||||
{{- if .Site.Params.gitRepo -}}
|
||||
{{- with .GitInfo -}}
|
||||
<a class="git-hash" href="{{ printf `%s/commit/%s` $.Site.Params.gitRepo .Hash }}" target="_blank" title="commit by {{ .AuthorName }}({{ .AuthorEmail }}) {{ .Hash }}: {{ .Subject }}">
|
||||
<i class="fas fa-hashtag fa-fw"></i>{{- .AbbreviatedHash -}}
|
||||
</a>
|
||||
{{- with .Site.Params.dateformat | default "2006-01-02" | .Lastmod.Format -}}
|
||||
{{- dict "Date" . | T "updatedOnDate" -}}
|
||||
{{- if $.Site.Params.gitRepo -}}
|
||||
{{- with $.GitInfo -}}
|
||||
<a class="git-hash" href="{{ printf `%v/commit/%v` $.Site.Params.gitRepo .Hash }}" target="_blank" title="commit by {{ .AuthorName }}({{ .AuthorEmail }}) {{ .Hash }}: {{ .Subject }}">
|
||||
<i class="fas fa-hashtag fa-fw"></i>{{- .AbbreviatedHash -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</span>
|
||||
|
@ -19,7 +20,7 @@
|
|||
<div class="post-info-license">
|
||||
{{- with $params.license | string -}}
|
||||
<span>
|
||||
{{- printf (T "license" | string) . | safeHTML -}}
|
||||
{{- . | safeHTML -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
@ -30,7 +31,7 @@
|
|||
{{- with .OutputFormats.Get "markdown" -}}
|
||||
<span>
|
||||
<a class="link-to-markdown" href="{{ .RelPermalink }}" target="_blank">
|
||||
{{- T "seeMarkdown" -}}
|
||||
{{- T "readMarkdown" -}}
|
||||
</a>
|
||||
</span>
|
||||
{{- end -}}
|
||||
|
@ -50,7 +51,7 @@
|
|||
<i class="fas fa-tags fa-fw"></i>
|
||||
{{- range $index, $value := . -}}
|
||||
{{- if gt $index 0 }}, {{ end -}}
|
||||
{{- $tag := $value | anchorize | printf "/tags/%s" | $.Site.GetPage -}}
|
||||
{{- $tag := $value | anchorize | printf "/tags/%v" | $.Site.GetPage -}}
|
||||
<a href="{{ $tag.RelPermalink }}">{{ $tag.Title }}</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||
<channel>
|
||||
<title>
|
||||
{{- .Params.Title | default (T .Section) | default .Section | string | printf (T "allSome" | string) }} - {{ .Site.Title -}}
|
||||
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}}
|
||||
</title>
|
||||
<link>
|
||||
{{- .Permalink -}}
|
||||
</link>
|
||||
<description>
|
||||
{{- .Params.Title | default (T .Section) | default .Section | string | printf (T "allSome" | string) }} | {{ .Site.Title -}}
|
||||
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} | {{ .Site.Title -}}
|
||||
</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
{{- with .Site.LanguageCode -}}
|
||||
|
|
|
@ -37,23 +37,21 @@
|
|||
{{- partial "plugin/link.html" $options -}}
|
||||
</span>
|
||||
|
||||
{{- with .Params.categories -}}
|
||||
|
||||
<span class="post-category">
|
||||
{{- T "included" -}}
|
||||
{{- range $index, $value := . -}}
|
||||
{{- if gt $index 0 }} {{ end -}}
|
||||
{{- $category := $value | anchorize | printf "/categories/%s" | $.Site.GetPage -}}
|
||||
<a href="{{ $category.RelPermalink }}">
|
||||
<i class="far fa-folder fa-fw"></i>{{ $category.Title }}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- $categories := slice -}}
|
||||
{{- range .Params.categories -}}
|
||||
{{- $category := . | anchorize | printf "/categories/%v" | $.Site.GetPage -}}
|
||||
{{- $categories = $categories | append (printf `<a href="%v"><i class="far fa-folder fa-fw"></i>%v</a>` $category.RelPermalink $category.Title) -}}
|
||||
{{- end -}}
|
||||
{{- with delimit $categories " " -}}
|
||||
<span class="post-category">
|
||||
{{- dict "Categories" . | T "includedInCategories" | safeHTML -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
</div>
|
||||
<div class="post-meta-line">
|
||||
{{- $publish_date := .PublishDate.Format (.Site.Params.dateformat | default "2006-01-02") -}}
|
||||
<i class="far fa-calendar-alt fa-fw"></i> <time datetime={{ $publish_date }}>{{ $publish_date }}</time>
|
||||
{{- with .Site.Params.dateformat | default "2006-01-02" | .PublishDate.Format -}}
|
||||
<i class="far fa-calendar-alt fa-fw"></i> <time datetime="{{ . }}">{{ . }}</time>
|
||||
{{- end -}}
|
||||
<i class="fas fa-pencil-alt fa-fw"></i> {{ T "wordCount" .WordCount }}
|
||||
<i class="far fa-clock fa-fw"></i> {{ T "readingTime" .ReadingTime }}
|
||||
{{- $comment := .Scratch.Get "comment" | default dict -}}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{{- $content := .Inner | .Page.RenderString -}}
|
||||
{{- $id := dict "scratch" .Page.Scratch | partial "function/id.html" -}}
|
||||
{{- $tag := .Get 1 | default "div" -}}
|
||||
{{- printf `<%s id="%s">%s</%s>` $tag $id $content $tag | safeHTML -}}
|
||||
{{- printf `<%v id="%v">%v</%v>` $tag $id $content $tag | safeHTML -}}
|
||||
|
||||
{{- $style := .Get 0 | printf "#%s{%s}" $id -}}
|
||||
{{- $path := printf "style/%s/%s" (md5 .Page.RelPermalink) $id -}}
|
||||
{{- $res := resources.FromString (printf "%s.scss" $path) $style -}}
|
||||
{{- $res = $res | toCSS (dict "targetPath" (printf "%s.css" $path) "outputStyle" "compressed") -}}
|
||||
{{- $style := .Get 0 | printf "#%v{%v}" $id -}}
|
||||
{{- $path := printf "style/%v/%v" (md5 .Page.RelPermalink) $id -}}
|
||||
{{- $res := resources.FromString (printf "%v.scss" $path) $style -}}
|
||||
{{- $res = $res | toCSS (dict "targetPath" (printf "%v.css" $path) "outputStyle" "compressed") -}}
|
||||
{{- $styleArr := (.Page.Scratch.Get "this").styleArr | default slice -}}
|
||||
{{- $styleArr | append $res.Content | .Page.Scratch.SetInMap "this" "styleArr" -}}
|
||||
|
|
|
@ -27,5 +27,5 @@
|
|||
{{- dict $key $group | merge $typeitMap | .Page.Scratch.SetInMap "this" "typeitMap" -}}
|
||||
|
||||
<div class="typeit">
|
||||
{{- printf `<%s id="%s" class="%s"></%s>` $tag $id (delimit $classList " ") $tag | safeHTML -}}
|
||||
{{- printf `<%v id="%v" class="%v"></%v>` $tag $id (delimit $classList " ") $tag | safeHTML -}}
|
||||
</div>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{{- $version := .Get 0 -}}
|
||||
{{- $url := printf "https://github.com/dillonzq/LoveIt/releases/tag/v%s" $version -}}
|
||||
{{- $url := printf "https://github.com/dillonzq/LoveIt/releases/tag/v%v" $version -}}
|
||||
{{- $type := .Get 1 | default "new" | lower -}}
|
||||
{{- $label := T $type -}}
|
||||
{{- $color := cond (eq $type "changed") "ff9101" "00b1ff" | cond (eq $type "deleted") "ff5252" -}}
|
||||
{{- $pathTemplate := cond .Site.IsMultiLingual (printf "svg/version/%%s-%%s.%s.svg" .Page.Language.Lang) "svg/version/%s-%s.svg" -}}
|
||||
{{- $pathTemplate := cond .Site.IsMultiLingual (printf "svg/version/%%v-%%v.%v.svg" .Page.Language.Lang) "svg/version/%v-%v.svg" -}}
|
||||
{{- $path := printf $pathTemplate $version $type -}}
|
||||
{{- $res := resources.Get "svg/version.template.svg" -}}
|
||||
{{- $res = $res | resources.ExecuteAsTemplate $path (dict "version" $version "label" $label "color" $color) | minify -}}
|
||||
{{- $alt := printf "LoveIt %s | %s" $label $version -}}
|
||||
{{- $alt := printf "LoveIt %v | %v" $label $version -}}
|
||||
<a href="{{ $url }}" rel="noopener noreffer" target="_blank">
|
||||
{{- dict "src" $res.RelPermalink "alt" $alt "class" "version" | partial "plugin/image.html" -}}
|
||||
</a>
|
|
@ -12,7 +12,7 @@
|
|||
{{- else if eq $taxonomy "tag" -}}
|
||||
<i class="fas fa-tag fa-fw"></i> {{ .Title }}
|
||||
{{- else -}}
|
||||
{{- printf "%s - %s" (T $taxonomy | default $taxonomy) .Title -}}
|
||||
{{- printf "%v - %v" (T $taxonomy | default $taxonomy) .Title -}}
|
||||
{{- end -}}
|
||||
</h2>
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
{{- .Title -}}
|
||||
</a>
|
||||
<span class="archive-item-date">
|
||||
{{- .Date.Format ($.Site.Params.list.dateFormat | default "01-02") -}}
|
||||
{{- $.Site.Params.list.dateFormat | default "01-02" | .Date.Format -}}
|
||||
</span>
|
||||
</article>
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{- define "title" -}}
|
||||
{{- .Params.Title | default (T .Data.Plural) | default .Data.Plural | string | printf (T "allSome" | string) }} - {{ .Site.Title -}}
|
||||
{{- .Params.Title | default (T .Data.Plural) | default .Data.Plural | dict "Some" | T "allSome" }} - {{ .Site.Title -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "content" -}}
|
||||
|
@ -10,7 +10,7 @@
|
|||
<div class="page archive">
|
||||
{{- /* Title */ -}}
|
||||
<h2 class="single-title animated pulse faster">
|
||||
{{- .Params.Title | default (T $taxonomies) | default $taxonomies | string | printf (T "allSome" | string) -}}
|
||||
{{- .Params.Title | default (T $taxonomies) | default $taxonomies | dict "Some" | T "allSome" -}}
|
||||
</h2>
|
||||
|
||||
{{- /* Categories Page */ -}}
|
||||
|
@ -19,7 +19,7 @@
|
|||
{{- range $terms -}}
|
||||
{{- $term := .Term -}}
|
||||
{{- $pages := .Pages -}}
|
||||
{{- with $.Site.GetPage "taxonomy" (printf "%s/%s" $type $term) -}}
|
||||
{{- with $.Site.GetPage "taxonomy" (printf "%v/%v" $type $term) -}}
|
||||
<div class="card-item">
|
||||
<div class="card-item-wrapper">
|
||||
<h3 class="card-item-title">
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm run build && npm run copy && git add ."
|
||||
"pre-commit": "npm run build && npm run copy && git add resources assets/js"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue