diff --git a/assets/creative-commons-icons/by.jpg b/assets/creative-commons-icons/by.jpg new file mode 100644 index 0000000..466730d Binary files /dev/null and b/assets/creative-commons-icons/by.jpg differ diff --git a/assets/creative-commons-icons/cc.jpg b/assets/creative-commons-icons/cc.jpg new file mode 100644 index 0000000..d700962 Binary files /dev/null and b/assets/creative-commons-icons/cc.jpg differ diff --git a/assets/creative-commons-icons/nc.jpg b/assets/creative-commons-icons/nc.jpg new file mode 100644 index 0000000..2fa248c Binary files /dev/null and b/assets/creative-commons-icons/nc.jpg differ diff --git a/assets/creative-commons-icons/sa.jpg b/assets/creative-commons-icons/sa.jpg new file mode 100644 index 0000000..f27695b Binary files /dev/null and b/assets/creative-commons-icons/sa.jpg differ diff --git a/assets/scss/templates/_main.scss b/assets/scss/templates/_main.scss index 134870d..49c032a 100644 --- a/assets/scss/templates/_main.scss +++ b/assets/scss/templates/_main.scss @@ -187,8 +187,10 @@ border: 1px solid $primary-color; } } +} - +.link-above-article { + padding-bottom: 10px; } diff --git a/i18n/br.toml b/i18n/br.toml index 8ac05a8..bbb84d5 100644 --- a/i18n/br.toml +++ b/i18n/br.toml @@ -44,3 +44,6 @@ other = "Pennadoù diwezhañ" [inLanguage] other = "E brezhoneg" + +[returnToPodcast] +other = "Distreiñ d'ar podkast" diff --git a/i18n/fr.toml b/i18n/fr.toml index 6c54a6b..1639e22 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -46,3 +46,7 @@ other = "Derniers billets" [inLanguage] other = "En français" + + +[returnToPodcast] +other = "Retourner au balado" \ No newline at end of file diff --git a/layouts/podcast-episode/list.html b/layouts/podcast-episode/list.html new file mode 100644 index 0000000..0a0cdd1 --- /dev/null +++ b/layouts/podcast-episode/list.html @@ -0,0 +1,60 @@ +{{ define "main" }} +
+
+
+
+ + + {{- $pctx := . -}} + {{- $pages := .Site.RegularPages -}} + {{ $paginator := .Paginate (where $pages "Type" "podcasts") }} + {{ range sort .Paginator.Pages }} + +
+
+ + {{ if .Params.Image }} + {{ $article := .Permalink | relURL }} + {{ $image := .Params.Image | relURL }} +
+ {{ .Title | markdownify }} +
+
+ {{ else }} +
+ {{ end }} + +
+ {{ range .Params.Categories }} + {{ . | title | humanize }} + {{ end }} + {{ .Title | markdownify }} + +

{{ .Summary }}

+ + +
+
+
+
+ {{ end }} +
+ + + {{ partial "sidebar.html" . }} + + +
+ {{ template "_internal/pagination.html" . }} +
+
+
+
+{{ end }} diff --git a/layouts/podcast-episode/single.html b/layouts/podcast-episode/single.html new file mode 100644 index 0000000..b15ba7c --- /dev/null +++ b/layouts/podcast-episode/single.html @@ -0,0 +1,50 @@ +{{ define "main" }} + + +
+
+
+
+
+
+ {{ with .Parent }} + ← {{ i18n "returnToPodcast" }} + {{ end }} +
+
+ {{ if .Params.tags }} + {{ partial "tags" .Params.tags }} + {{ end }} +
+

{{ .Title }}

+

{{ i18n "published" }} {{ i18n "on" }} {{ (time .Date) | time.Format (.Params.date_format | default "2 January 2006") }}. {{ i18n "readingTime" }} {{ i18n "readingTimeValue" .ReadingTime }}.

+ {{ if .IsTranslated }} + {{ range .Translations }} +

{{ .Lang }} : {{ .Title }}

+ {{ end }} + {{ end }} + + {{ .Content }} + {{ if .Site.Params.Info.related }} + + +
+ + + {{ if .Site.Params.issoComments }} + {{- partial "isso" . -}} + {{ end }} + {{ end }} +
+ + + {{ partial "sidebar.html" . }} +
+ + +
+ + + +
+{{ end }} diff --git a/layouts/podcast-home/list.html b/layouts/podcast-home/list.html new file mode 100644 index 0000000..ecfb931 --- /dev/null +++ b/layouts/podcast-home/list.html @@ -0,0 +1,53 @@ +{{ define "main" }} +
+
+
+
+ + {{- $pctx := . -}} + {{- $pages := .Site.Pages -}} + {{ $paginator := .Paginate (where $pages "Type" "podcast") }} + {{ range sort .Paginator.Pages }} + + + + {{ end }} +
+ + + {{ partial "sidebar.html" . }} + + +
+ {{ template "_internal/pagination.html" . }} +
+
+
+
+{{ end }} diff --git a/layouts/podcasts/list.html b/layouts/podcasts/list.html deleted file mode 100644 index f91f6c3..0000000 --- a/layouts/podcasts/list.html +++ /dev/null @@ -1,99 +0,0 @@ -{{ define "main" }} -
-
- {{ .Page.Content }} -
-
- {{ $cv_sections := where .Pages "Params.Widget" "cv"}} - {{ range $ids, $item := sort $cv_sections ".Params.weight" "asc" }} - {{ $items_len := len .Params.items }} -
-

{{ .Title | markdownify }}

- {{ range $idx, $key := .Params.items }} -
-
- {{- if .logo -}} - - {{- end -}} - -

{{ .title | markdownify }}{{- with .details }}{{ i18n "details" | default "Details" }}{{- end -}}

- {{ with .subtitle }}
{{ . | markdownify }}
{{ end }} - - {{ with .description }}
{{ . | markdownify | emojify }}
{{ end }} -
- {{ if .date_start }} - - {{ end }} -
- {{ end }} -
- {{ end }} - {{/* - - < class="col-12 {{if eq $columns "2"}}col-lg-8{{end}}"> -

{{ .Title | markdownify }}

- {{ range $idx, $key := .Params.experience }} -
- */}} - {{/*
-
-
 
-
 
-
-
-   -
-
-
 
-
 
-
-
- - -
-
-
-
{{ .title | markdownify }}
-
- {{- with .company_url}}{{end}}{{ .company | markdownify }}{{ with .company_url}}{{end -}} -
-
- {{ (time .date_start) | time.Format (.Params.date_format | default "January 2006") }} − - {{ if .date_end }} - {{ (time .date_end) | time.Format (.Params.date_format | default "January 2006") }} - {{ else }} - {{ i18n "present" | default "Present" }} - {{ end }} - {{ with .location }} - - {{ . }} - {{ end }} -
-
- {{ with .description}} -
{{ . | markdownify | emojify }}
- {{ end }} -
-
-
- - {{ end }} */}} -
- {{ partial "sidebar.html" . }} -
-
-
-{{ end }} \ No newline at end of file diff --git a/layouts/podcasts/single.html b/layouts/podcasts/single.html deleted file mode 100644 index dd65326..0000000 --- a/layouts/podcasts/single.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ define "main" }} -
-
-
-
- {{ if .Params.Image }} - Author - {{ end }} -
-

{{ .Title | markdownify }}

-
- {{ .Content }} -
- -
-
-
-{{ end }} \ No newline at end of file diff --git a/layouts/shortcodes/cc.html b/layouts/shortcodes/cc.html new file mode 100644 index 0000000..3bbdd71 --- /dev/null +++ b/layouts/shortcodes/cc.html @@ -0,0 +1,45 @@ +{{/* Source:https://gitlab.com/Roneo/hugo-shortcode-roneo-collection */}} + +{{ $options := (.Get 0) | default "by-nc-sa" }} + + + +{{/* Build the URL according to selected license options */}} +{{ $urlOptions := replace $options " " "-" }} +{{ $url := printf "%v%v%v" "https://creativecommons.org/licenses/" $urlOptions "/4.0" }} + + + + + {{ with resources.Get "/creative-commons-icons/cc.jpg" }} + + {{ end }} + + {{ if in $options "by"}} + {{ with resources.Get "/creative-commons-icons/by.jpg" }} + + {{ end }} + {{ end }} + + {{ if in $options "nc"}} + {{ with resources.Get "/creative-commons-icons/nc.jpg" }} + + {{ end }} + {{ end }} + + {{ if in $options "sa"}} + {{ with resources.Get "/creative-commons-icons/sa.jpg" }} + + {{ end }} + {{ end }} + + \ No newline at end of file