Compare commits

...

35 Commits

Author SHA1 Message Date
Wonderfall ad99ef818a Merge remote-tracking branch 'upstream/master' 2023-06-16 14:26:10 +02:00
Léo Vincent 4a924cef54
chore: update french translations (#1222)
Related to #914
2023-06-04 18:29:55 +05:30
Maciej Bromirski 07759b794f
updated pl.yaml for #914 (#1229) 2023-06-04 18:29:28 +05:30
Aditya Telange bacb763071
Bump minimum Hugo version to 0.97.1
required for #1187
2023-05-07 17:40:58 +05:30
Aditya Telange 3fd9888f43
Update README 2023-04-28 21:38:05 +05:30
Timon Back d6f911cc05
Allow loading cover from assets folder (#1187)
By default, the cover is loaded from the page resources folder (same folder).
If the image is not found, the (global) assets folder is searched as well. If found, the same processing is done.
Otherwise, the fallback remains with linking to the image directly.
2023-04-28 20:13:57 +05:30
Aditya Telange be5badf317
Add RSS icon to archives page 2023-04-23 20:15:10 +05:30
Alexander Zhang 8d1e45a42a
Fix RSS link for paginated list pages (#1192)
The link was previously hard-coded to index.html, which doesn't work on
paginated list pages because it would go to something like
/section/pages/2/index.html instead of /section/index.html.
2023-04-23 19:47:46 +05:30
Shivan Sivakumaran a34784c3ed
Add social icon for substack (#1197) 2023-04-23 19:17:29 +05:30
Douglas Tofoli 031e2ba57e
Add condition to disable edit post on single pages (#1143)
editPost:
    disabled: true

---------

Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2023-04-02 00:34:56 +05:30
Geeqla 5d2c036624
Add social icon for VK (#1171) 2023-04-02 00:19:49 +05:30
Aditya Telange 1d151a4a02
Revert "Add RSS icon to archive pages (#1156)" (#1183)
This reverts commit a636c9eaee.
2023-04-02 00:17:01 +05:30
Clément Joly a636c9eaee
Add RSS icon to archive pages (#1156)
If the setting “ShowRssButtonInSectionTermList” is true, I think it
makes sense to also show the RSS icon by the title in archive pages, as
we do for other article lists.

This reuses the code of `layouts/_default/list.html`.
2023-04-01 23:58:19 +05:30
Hauke 2210bf20b3
change del element decoration to line-through (#1181)
According to caniuse.com only around 69% of mobile user and 22% desktop users use a browser that supports this element. Therefore this change uses text-decoration: line-through to archive the same effect across browsers.
2023-03-31 21:33:56 +05:30
Aditya Telange d67462d0f3
Fix incorrect 'it' translations
https://github.com/adityatelange/hugo-PaperMod/pull/1166#discussion_r1125504542
2023-03-04 23:12:18 +05:30
Matteo Contrini 494d6d5dff
Improve Italian translation (#1166) 2023-03-04 22:32:34 +05:30
Sawa b43af19b11
change i18n next prev in japanese (#1167) 2023-03-04 18:57:37 +05:30
Michail Angelos Tsiantakis e6b697f365
Add support for Greek, Modern el.yaml (#1160) 2023-02-18 12:41:12 +05:30
Aditya Telange 25e5b4d298
Tag Release 7.0 2023-02-12 12:23:08 +05:30
Aditya Telange 8efba34fa9
Update License year 2023-02-12 12:21:40 +05:30
Aditya Telange 35643680d2
Update README 2023-02-04 17:58:07 +05:30
Jingchao a35a33c2e1
Add douban and zhihu icon (#1084) 2023-02-04 17:42:27 +05:30
k-yone 4d42965bb5
Add title to the image tag in rss.xml (#1105)
Ref: https://cyber.harvard.edu/rss/rss.html#ltimagegtSubelementOfLtchannelgt
2023-02-04 17:34:21 +05:30
Bohao Jing f5320cd336
Add netease cloud music icon (#1093) 2023-02-04 17:22:53 +05:30
Nathan Fradet 7250994280
Google scholar svg icon fixed, now unfilled curved line (#1064) 2023-02-04 12:52:02 +05:30
rais ilham 2347bb9c11
Add codeforces icon (#1092)
From https://github.com/simple-icons/simple-icons
2023-02-04 12:50:27 +05:30
Josh Müller 33085a8b23
Add TryHackMe Icon (#1113)
from Simple Icons https://github.com/simple-icons/simple-icons/blob/develop/icons/tryhackme.svg
2023-02-04 12:36:22 +05:30
Axel Wagner db75cdc9b8
Add Tumblr Icon (#1115) 2023-02-04 12:31:25 +05:30
Karpfly d47a7d67fa
updated Polish translation (#1148) 2023-02-04 12:13:43 +05:30
Andrey Mukamolov ec01777341
Added Belarusian translations i18n/be.yaml (#1144) 2023-02-04 12:13:10 +05:30
Igor Rodriguez 2b5f00640d
PT translation updated (#1124)
Signed-off-by: igorr0driguez <42983358+igorr0driguez@users.noreply.github.com>
2023-02-04 12:11:54 +05:30
Essa Alshammri 4152dc75e8
update arabic pagination translation (#1137) 2023-02-04 12:10:27 +05:30
Nikita d3d90be8a4
Improve Turkish Translation tr.yaml (#1098) 2022-12-24 20:51:10 +05:30
Eran Israeli bf0883adb5
Update Hebrew translation (#1104)
Signed-off-by: Eran Israeli <eisraeli@redhat.com>
2022-12-24 20:49:02 +05:30
Aditya Telange 5ca2d29537
Fix multi-line anchor tags not highlighted/underlined.
fixes: #1107
2022-12-20 21:13:51 +05:30
23 changed files with 220 additions and 36 deletions

View File

@ -26,7 +26,7 @@ Please fill the template below
- Device/Os: [e.g. Android 10]
- Type: [e.g. Desktop/Mobile]
- Browser and version [e.g. Chrome 86.0]:
- Hugo Version [ >=0.83.0 expected]:
- Hugo Version [ >=0.97.1 expected]:
- Theme Version [e.g. v4.0, master, or commit-id ]:
**Steps to reproduce the behavior:**

View File

@ -15,7 +15,7 @@ on:
hugoVersion:
description: "Hugo Version"
required: false
default: "0.83.0"
default: "0.97.1"
# Allow one concurrent deployment
concurrency:
@ -38,7 +38,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: "0.83.0"
HUGO_VERSION: "0.97.1"
steps:
- name: Check version
if: ${{ github.event.inputs.hugoVersion }}

View File

@ -1,7 +1,7 @@
MIT License
Copyright (c) 2020 nanxiaobei and adityatelange
Copyright (c) 2021-2022 adityatelange
Copyright (c) 2021-2023 adityatelange
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -81,8 +81,7 @@
}
.post-content del {
text-decoration: none;
background: linear-gradient(to right, var(--primary) 100%, transparent 0) 0 50%/1px 1px repeat-x;
text-decoration: line-through;
}
.post-content dl,
@ -417,4 +416,4 @@ h1>a>svg {
img.in-text {
display: inline;
margin: auto;
}
}

View File

@ -1,6 +1,6 @@
/*
PaperMod v6
PaperMod v7
License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE
Copyright (c) 2020 nanxiaobei and adityatelange
Copyright (c) 2021-2022 adityatelange
Copyright (c) 2021-2023 adityatelange
*/

View File

@ -1,6 +1,6 @@
/*
PaperMod v6
PaperMod v7
License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE
Copyright (c) 2020 nanxiaobei and adityatelange
Copyright (c) 2021-2022 adityatelange
Copyright (c) 2021-2023 adityatelange
*/

View File

@ -1,8 +1,8 @@
- id: prev_page
translation: "الصفحة السابقة"
translation: "السابق"
- id: next_page
translation: "الصفحة التالية"
translation: "التالي"
- id: read_time
translation:
@ -20,3 +20,9 @@
- id: home
translation: "الصفحة الرئيسية"
- id: code_copied
translation: "تم النسخ!"
- id: code_copy
translation: "نسخ الكود"

39
i18n/be.yaml Normal file
View File

@ -0,0 +1,39 @@
- id: prev_page
translation: "Папярэдняя"
- id: next_page
translation: "Наступная"
- id: read_time
translation:
zero: "0 хвілін"
one: "1 хвіліна"
few: "{{ .Count }} хвіліны"
many: "{{ .Count }} хвілін"
other: "{{ .Count }} хвілін"
- id: words
translation:
zero: "няма слоў"
one: "1 слова"
few: "{{ .Count }} слова"
many: "{{ .Count }} слоў"
other: "{{ .Count }} слова"
- id: toc
translation: "Змест"
- id: translations
translation: "Пераклады"
- id: home
translation: "Галоўная"
- id: edit_post
translation: "Рэдагаваць"
- id: code_copy
translation: "капіяваць"
- id: code_copied
translation: "скапіявана!"

33
i18n/el.yaml Normal file
View File

@ -0,0 +1,33 @@
- id: prev_page
translation: "Προηγούμενο"
- id: next_page
translation: "Επόμενο"
- id: read_time
translation:
one: "1 λεπτό"
other: "{{ .Count }} λεπτά"
- id: words
translation:
one: "λέξη"
other: "{{ .Count }} λέξεις"
- id: toc
translation: "Πίνακας Περιεχομένων"
- id: translations
translation: "Μεταφράσεις"
- id: home
translation: "Αρχική"
- id: edit_post
translation: "Επεξεργασία"
- id: code_copy
translation: "αντιγραφή"
- id: code_copied
translation: "αντιγράφηκε!"

View File

@ -1,8 +1,8 @@
- id: prev_page
translation: "Page précédente"
translation: "Précédent"
- id: next_page
translation: "Page suivante"
translation: "Suivant"
- id: read_time
translation:

View File

@ -1,19 +1,33 @@
- id: prev_page
translation: "לעמוד הקודם"
translation: "קודם"
- id: next_page
translation: "לעמוד הבא"
translation: "הבא"
- id: read_time
translation:
one : "דקה אחת"
other: "{{ .Count }} דקות"
other: "דקות {{ .Count }}"
- id: words
translation:
one : "word"
other: "מילים {{ .Count }} "
- id: toc
translation: "תוכן עניינים"
translation: "תוכן העניינים"
- id: translations
translation: "תרגומים"
- id: home
translation: "דף בית"
translation: "בית"
- id: edit_post
translation: "ערוך"
- id: code_copy
translation: "העתק"
- id: code_copied
translation: "!הועתק"

View File

@ -1,8 +1,8 @@
- id: prev_page
translation: "Pag Prec"
translation: "Precedente"
- id: next_page
translation: "Pag Succ"
translation: "Successivo"
- id: read_time
translation:
@ -15,11 +15,17 @@
other: "{{ .Count }} parole"
- id: toc
translation: "Tabella dei Contenuti"
translation: "Indice contenuti"
- id: translations
translation: "Traduzioni"
- id: home
translation: "Home"
- id: edit_post
translation: "Modifica"
- id: code_copy
translation: "copia"

View File

@ -1,8 +1,8 @@
- id: prev_page
translation: "前のページ"
translation: "前"
- id: next_page
translation: "次のページ"
translation: "次"
- id: read_time
translation:

View File

@ -1,14 +1,19 @@
- id: prev_page
translation: "Poprzednia strona"
translation: "Poprzednia"
- id: next_page
translation: "Następna strona"
translation: "Następna"
- id: read_time
translation:
one: "1 min"
other: "{{ .Count }} min"
- id: words
translation:
one : "słowo"
other: "{{ .Count }} słów"
- id: toc
translation: "Spis treści"

View File

@ -19,3 +19,15 @@
- id: translations
translation: "Traduções"
- id: home
translation: "Início"
- id: edit_post
translation: "Editar"
- id: code_copy
translation: "copiar"
- id: code_copied
translation: "copiado!"

View File

@ -1,14 +1,19 @@
- id: prev_page
translation: "Önceki Sayfa"
translation: "Önceki"
- id: next_page
translation: "Sonraki Sayfa"
translation: "Sonraki"
- id: read_time
translation:
one : "1 dk"
other: "{{ .Count }} dk"
- id: words
translation:
one : "kelime"
other: "{{ .Count }} kelime"
- id: toc
translation: "İçindekiler"
@ -18,6 +23,9 @@
- id: home
translation: "Anasayfa"
- id: edit_post
translation: "Düzenle"
- id: code_copy
translation: "Kopyala"

View File

@ -1,7 +1,25 @@
{{- define "main" }}
<header class="page-header">
<h1>{{ .Title }}</h1>
<h1>
{{ .Title }}
{{- if (.Param "ShowRssButtonInSectionTermList") }}
{{- $rss := (.OutputFormats.Get "rss") }}
{{- if (eq .Kind `page`) }}
{{- $rss = (.Parent.OutputFormats.Get "rss") }}
{{- end }}
{{- with $rss }}
<a href="{{ .RelPermalink }}" title="RSS" aria-label="RSS">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" height="23">
<path d="M4 11a9 9 0 0 1 9 9" />
<path d="M4 4a16 16 0 0 1 16 16" />
<circle cx="5" cy="19" r="1" />
</svg>
</a>
{{- end }}
{{- end }}
</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}

View File

@ -10,7 +10,8 @@
<h1>
{{ .Title }}
{{- if and (or (eq .Kind `term`) (eq .Kind `section`)) (.Param "ShowRssButtonInSectionTermList") }}
<a href="index.xml" title="RSS" aria-label="RSS">
{{- with .OutputFormats.Get "rss" }}
<a href="{{ .RelPermalink }}" title="RSS" aria-label="RSS">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" height="23">
<path d="M4 11a9 9 0 0 1 9 9" />
@ -19,6 +20,7 @@
</svg>
</a>
{{- end }}
{{- end }}
</h1>
{{- if .Description }}
<div class="post-description">

View File

@ -18,6 +18,7 @@
<description>Recent content {{ if ne .Title site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ site.Title }}</description>
{{- with site.Params.images }}
<image>
<title>{{ site.Title }}</title>
<url>{{ index . 0 | absURL }}</url>
<link>{{ index . 0 | absURL }}</link>
</image>

View File

@ -4,7 +4,9 @@
<figure class="entry-cover">
{{- $responsiveImages := (.Params.cover.responsiveImages | default site.Params.cover.responsiveImages) | default true }}
{{- $addLink := (and site.Params.cover.linkFullImages (not $.IsHome)) }}
{{- $cover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
{{- $pageBundleCover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
{{- $globalResourcesCover := (resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
{{- $cover := (or $pageBundleCover $globalResourcesCover)}}
{{- if $cover -}}{{/* i.e it is present in page bundle */}}
{{- if $addLink }}<a href="{{ (path.Join .RelPermalink .Params.cover.image) | absURL }}"
rel="noopener noreferrer">{{ end -}}

View File

@ -1,4 +1,4 @@
{{- if or .Params.editPost.URL site.Params.editPost.URL -}}
{{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}}
{{- $fileUrlPath := path.Join .File.Path }}
{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }}&nbsp;|&nbsp;{{- end -}}

File diff suppressed because one or more lines are too long

View File

@ -37,7 +37,7 @@ features = [
"scroll-to-top",
"search"
]
min_version = "0.83.0"
min_version = "0.97.1"
[author]
name = "Wonderfall"