Merge branch 'ppoffice-master'

This commit is contained in:
Nofated095 2024-01-12 10:03:43 +08:00
commit b62f3004de
5 changed files with 89 additions and 21 deletions

View File

@ -23,7 +23,7 @@ widget:
catalogue: 'Catalogue'
subscribe_email: 'Abonnez-vous aux mises à jour'
subscribe: 'Abonnez-vous'
adsense: 'Annonce'
adsense: 'Publicités'
followit: 'follow.it'
article:
created_at: 'Publié il y a %s'
@ -35,10 +35,10 @@ article:
one: 'Environ %d mot'
other: 'Environ %d mots'
licensing:
author: 'Author'
created_at: 'Posted on'
updated_at: 'Updated on'
licensed_under: 'Licensed under'
author: 'Auteur'
created_at: 'Posté le'
updated_at: 'Mis à jour le'
licensed_under: 'Licencié sous'
donate:
title: "Vous aimez cet article? Soutenez l'auteur avec"
afdian: 'Afdian.net'
@ -48,19 +48,19 @@ donate:
patreon: 'Patreon'
buymeacoffee: 'Achetez-moi un café'
plugin:
backtotop: 'Retour au sommet'
backtotop: 'Retour en haut'
visit_count: '%s visites'
visitor_count: 'Visité par %s utilisateurs'
cookie_consent:
message: Ce site Web utilise des cookies pour améliorer votre expérience.
dismiss: Je l'ai!
allow: Autorise les cookies
deny: Déclin
link: Apprendre encore plus
policy: Politique relative aux cookies
message: 'Ce site Web utilise des cookies pour améliorer votre expérience.'
dismiss: "C'est bon"
allow: 'Autoriser les cookies'
deny: 'Refuser'
link: 'En savoir plus'
policy: 'Politique relative aux cookies'
search:
search: 'Search'
hint: 'Type something...'
search: 'Rechercher'
hint: 'Ecrivez quelque chose...'
no_result: 'Aucun résultat pour'
untitled: '(Sans titre)'
empty_preview: '(Pas de prévisualisation)'

66
languages/it.yml Normal file
View File

@ -0,0 +1,66 @@
common:
archive:
one: 'Archivio'
other: 'Archivi'
category:
one: 'Categoria'
other: 'Categorie'
tag:
one: 'Tag'
other: 'Tag'
post:
one: 'Articolo'
other: 'Articoli'
page:
one: 'Pagina'
other: 'Pagine'
prev: 'Precedente'
next: 'Successivo'
widget:
follow: 'Segui'
recents: 'Recenti'
links: 'Collegamenti'
catalogue: 'Catalogo'
subscribe_email: 'Iscriviti per aggiornamenti'
subscribe: 'Iscriviti'
adsense: 'Pubblicità'
followit: 'follow.it'
article:
created_at: 'Pubblicato il %s'
updated_at: 'Aggiornato il %s'
more: 'Di più'
comments: 'Commenti'
read_time: '%s di lettura'
word_count:
one: 'Circa %d parola'
other: 'Circa %d parole'
licensing:
author: 'Autore'
created_at: 'Pubblicato il'
updated_at: 'Aggiornato il'
licensed_under: 'Licenza'
donate:
title: "Ti è piaciuto questo articolo? Supporta l'autore con"
afdian: 'Afdian.net'
alipay: 'Alipay'
wechat: 'Wechat'
paypal: 'Paypal'
patreon: 'Patreon'
buymeacoffee: 'Buy me a coffee'
plugin:
backtotop: 'Torna su'
visit_count: '%s visite'
visitor_count: 'Visto da %s usenti'
cookie_consent:
message: Questo sito usa i cookie per migliorare la tua esperienza.
dismiss: "D'accordo!"
allow: Accetta i cookie
deny: Rifiuta
link: Più informazioni
policy: Politica dei cookie
search:
search: 'Cerca'
hint: 'Digita qualcosa...'
no_result: 'Nessun risultato per'
untitled: '(Senza titolo)'
empty_preview: '(Senza anteprima)'

View File

@ -24,8 +24,10 @@ module.exports = class extends Component {
const { article, plugins } = config;
const { url_for, date, date_xml, __, _p } = helper;
const indexLaunguage = toMomentLocale(config.language || 'en');
const language = toMomentLocale(page.lang || page.language || config.language || 'en');
const defaultLanguage = Array.isArray(config.language) && config.language.length ? config.language[0] : config.language;
const indexLanguage = toMomentLocale(defaultLanguage || 'en');
const language = toMomentLocale(page.lang || page.language || defaultLanguage || 'en');
const cover = page.cover ? url_for(page.cover) : null;
const updateTime = article && article.update_time !== undefined ? article.update_time : true;
const isUpdated = page.updated && !moment(page.date).isSame(moment(page.updated));
@ -37,9 +39,9 @@ module.exports = class extends Component {
{/* Thumbnail */}
{cover ? <div class="card-image">
{index ? <a href={url_for(page.link || page.path)} class="image is-7by3">
<img class="fill" src={cover} alt={page.title || cover} />
<img class="fill" src={cover} alt={page.title || cover} loading="lazy" />
</a> : <span class="image is-7by3">
<img class="fill" src={cover} alt={page.title || cover} />
<img class="fill" src={cover} alt={page.title || cover} loading="lazy" />
</span>}
</div> : null}
<article class={`card-content article${'direction' in page ? ' ' + page.direction : ''}`} role="article">
@ -74,7 +76,7 @@ module.exports = class extends Component {
{(() => {
const words = getWordCount(page._content);
const time = moment.duration((words / 150.0) * 60, 'seconds');
return `${_p('article.read_time', time.locale(index ? indexLaunguage : language).humanize())} (${_p('article.word_count', words)})`;
return `${_p('article.read_time', time.locale(index ? indexLanguage : language).humanize())} (${_p('article.word_count', words)})`;
})()}
</span> : null}
{/* Visitor counter */}

View File

@ -35,7 +35,7 @@ class Profile extends Component {
<div class="level-item has-text-centered flex-shrink-1">
<div>
<figure class="image is-128x128 mx-auto mb-2">
<img class={'avatar' + (avatarRounded ? ' is-rounded' : '')} src={avatar} alt={author} />
<img class={'avatar' + (avatarRounded ? ' is-rounded' : '')} src={avatar} alt={author} loading="lazy" />
</figure>
{author ? <p class="title is-size-4 is-block" style={{'line-height': 'inherit'}}>{author}</p> : null}
{authorTitle ? <p class="is-size-6 is-block">{authorTitle}</p> : null}

View File

@ -1,6 +1,6 @@
{
"name": "hexo-theme-amane",
"version": "0.0.42",
"version": "0.0.43",
"author": "Nofated095 <nofated095@users.noreply.github.com>",
"license": "MIT",
"description": "A simple, delicate, and modern theme for Hexo",