This commit is contained in:
Ewen 2023-12-15 17:24:36 +01:00
parent d06d3f03a7
commit de7fa6ab40
13 changed files with 218 additions and 118 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -187,8 +187,10 @@
border: 1px solid $primary-color;
}
}
}
.link-above-article {
padding-bottom: 10px;
}

View file

@ -44,3 +44,6 @@ other = "Pennadoù diwezhañ"
[inLanguage]
other = "E brezhoneg"
[returnToPodcast]
other = "Distreiñ d'ar podkast"

View file

@ -46,3 +46,7 @@ other = "Derniers billets"
[inLanguage]
other = "En français"
[returnToPodcast]
other = "Retourner au balado"

View file

@ -0,0 +1,60 @@
{{ define "main" }}
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-lg-8 mb-10 mb-lg-0">
{{- $pctx := . -}}
{{- $pages := .Site.RegularPages -}}
{{ $paginator := .Paginate (where $pages "Type" "podcasts") }}
{{ range sort .Paginator.Pages }}
<article class="posts featured-post">
<div class="row mb-20">
{{ if .Params.Image }}
{{ $article := .Permalink | relURL }}
{{ $image := .Params.Image | relURL }}
<div class="col-md-4">
<img src="{{ print $article $image }}" class="posts-img" alt="{{ .Title | markdownify }}">
</div>
<div class="col-md-7">
{{ else }}
<div class="col-md-10">
{{ end }}
<div class="card-body pt-0">
{{ range .Params.Categories }}
<a href="{{ `categories/` | relLangURL }}{{ . | urlize | lower }}"
class="text-primary">{{ . | title | humanize }}</a>
{{ end }}
<a href="{{ .Permalink }}" class="h3 my-3 pt-0">{{ .Title | markdownify }}</a>
<div class="mb-3 post-meta">
{{ if not .Params.HideDate }}
<span>{{ (time .Date) | time.Format (.Params.date_format | default "2 January 2006") }}</span>
{{ end }}
</div>
<p class="card-text">{{ .Summary }}</p>
<div class="d-flex justify-content-end">
<a href="{{ .Permalink }}" class="btn btn-outline-primary">{{ i18n "readMore" }}</a>
</div>
</div>
</div>
</div>
</article>
{{ end }}
</div>
<!-- sidebar-->
{{ partial "sidebar.html" . }}
<!-- pagination -->
<div class="col-12 mt-5">
{{ template "_internal/pagination.html" . }}
</div>
</div>
</div>
</section>
{{ end }}

View file

@ -0,0 +1,50 @@
{{ define "main" }}
<!-- podcast post-->
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-lg-8 mb-10 mb-lg-0">
<article>
<div class="link-above-article">
{{ with .Parent }}
<a href="{{ .RelPermalink }}">← {{ i18n "returnToPodcast" }}</a>
{{ end }}
</div>
<div class="tags-list">
{{ if .Params.tags }}
{{ partial "tags" .Params.tags }}
{{ end }}
</div>
<h1 class="mb-0 mt-2">{{ .Title }}</h1>
<p class="mt-2 mb-0">{{ i18n "published" }} {{ i18n "on" }} {{ (time .Date) | time.Format (.Params.date_format | default "2 January 2006") }}. {{ i18n "readingTime" }} {{ i18n "readingTimeValue" .ReadingTime }}.</p>
{{ if .IsTranslated }}
{{ range .Translations }}
<p class="mb-1">{{ .Lang }} : <a href="{{ .Permalink }}">{{ .Title }}</a></p>
{{ end }}
{{ end }}
{{ .Content }}
{{ if .Site.Params.Info.related }}
<div class="related">{{ partial "related" . }}</div>
</article>
{{ if .Site.Params.issoComments }}
{{- partial "isso" . -}}
{{ end }}
{{ end }}
</div>
<!-- sidebar-->
{{ partial "sidebar.html" . }}
</div>
</div>
</section>
{{ end }}

View file

@ -0,0 +1,53 @@
{{ define "main" }}
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-lg-8 mb-10 mb-lg-0">
{{- $pctx := . -}}
{{- $pages := .Site.Pages -}}
{{ $paginator := .Paginate (where $pages "Type" "podcast") }}
{{ range sort .Paginator.Pages }}
<article class="posts featured-post">
<div class="row mb-20">
{{ if .Params.Image }}
{{ $article := .Permalink | relURL }}
{{ $image := .Params.Image | relURL }}
<div class="col-md-4">
<a href="{{.Permalink}}">
<img src="{{ print $article $image }}" class="posts-img" alt="{{ .Title | markdownify }}">
</a>
</div>
<div class="col-md-7">
{{ else }}
<div class="col-md-10">
{{ end }}
<div class="card-body pt-0">
<a href="{{ .Permalink }}" class="h3 my-3 pt-0">{{ .Title | markdownify }}</a>
<p class="card-text">{{ .Summary }}</p>
<div class="d-flex justify-content-end">
<a href="{{ .Permalink }}" class="btn btn-outline-primary">{{ i18n "readMore" }}</a>
</div>
</div>
</div>
</div>
</article>
{{ end }}
</div>
<!-- sidebar-->
{{ partial "sidebar.html" . }}
<!-- pagination -->
<div class="col-12 mt-5">
{{ template "_internal/pagination.html" . }}
</div>
</div>
</div>
</section>
{{ end }}

View file

@ -1,99 +0,0 @@
{{ define "main" }}
<section class="section-sm">
<div class="container">
{{ .Page.Content }}
<div class="row">
<div class="col-lg-8 mb-100 mb-lg-0">
{{ $cv_sections := where .Pages "Params.Widget" "cv"}}
{{ range $ids, $item := sort $cv_sections ".Params.weight" "asc" }}
{{ $items_len := len .Params.items }}
<div class="col-12 mb-5">
<h3 class="section-header">{{ .Title | markdownify }}</h3>
{{ range $idx, $key := .Params.items }}
<div class="card mt-3">
<div class="card-body">
{{- if .logo -}}
<div class="card-logo">
<img src="./{{ .logo | relURL }}" alt="Logo">
</div>
{{- end -}}
<h4 class="card-title">{{ .title | markdownify }}{{- with .details }}<a class="btn btn-outline-primary btn-xsm ms-2 px-1 py-0" href="{{ . }}">{{ i18n "details" | default "Details" }}</a>{{- end -}}</h4>
{{ with .subtitle }}<h6 class="card-subtitle text-muted">{{ . | markdownify }}</h6>{{ end }}
{{ with .description }}<div class="card-text details mt-2">{{ . | markdownify | emojify }}</div>{{ end }}
</div>
{{ if .date_start }}
<div class="card-footer">
{{ (time .date_start) | time.Format ($item.Params.date_format | default "January 2006") }}
{{ if .date_end }}
{{ (time .date_end) | time.Format ($item.Params.date_format | default "January 2006") }}
{{ else }}
{{ i18n "present" | default "Present" }}
{{ end }}
{{ with .location }}
·
<span>{{ . }}</span>
{{ end }}
</div>
{{ end }}
</div>
{{ end }}
</div>
{{ end }}
{{/*
< class="col-12 {{if eq $columns "2"}}col-lg-8{{end}}">
<h4 class="widget-title">{{ .Title | markdownify }}</h4>
{{ range $idx, $key := .Params.experience }}
<div class="row experience">
<!-- Timeline --> */}}
{{/* <div class="col-auto text-center flex-column d-none d-sm-flex">
<div class="row h-50">
<div class="col {{ if gt $idx 0}}border-right{{end}}">&nbsp;</div>
<div class="col">&nbsp;</div>
</div>
<div class="m-2">
<span class="badge badge-pill border {{if not .date_end}}exp-fill{{end}}">&nbsp;</span>
</div>
<div class="row h-50">
<div class="col {{if lt $idx (sub $exp_len 1)}}border-right{{end}}">&nbsp;</div>
<div class="col">&nbsp;</div>
</div>
</div>
<!-- Content -->
<div class="col py-2">
<div class="card">
<div class="card-body">
<div class="section-subheading card-title exp-title text-muted my-0">{{ .title | markdownify }}</div>
<div class="section-subheading card-title exp-company text-muted my-0">
{{- with .company_url}}<a href="{{.}}" target="_target">{{end}}{{ .company | markdownify }}{{ with .company_url}}</a>{{end -}}
</div>
<div class="text-muted exp-meta">
{{ (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 }}
<span class="middot-divider"></span>
<span>{{ . }}</span>
{{ end }}
</div>
</div>
{{ with .description}}
<div class="card-text">{{ . | markdownify | emojify }}</div>
{{ end }}
</div>
</div>
</div>
{{ end }} */}}
</div>
{{ partial "sidebar.html" . }}
</div>
</div>
</section>
{{ end }}

View file

@ -1,18 +0,0 @@
{{ define "main" }}
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
{{ if .Params.Image }}
<img src="{{ .Params.Image | absURL }}" alt="Author" class="img-fluid d-block mx-auto rounded-circle mb-4">
{{ end }}
</div>
<h4 class="widget-title">{{ .Title | markdownify }}</h4>
<div class="content">
{{ .Content }}
</div>
</div>
</div>
</section>
{{ end }}

View file

@ -0,0 +1,45 @@
{{/* Source:https://gitlab.com/Roneo/hugo-shortcode-roneo-collection */}}
{{ $options := (.Get 0) | default "by-nc-sa" }}
<style>
.license img {
width: 24px;
height: 24px;
}
a.license {
text-decoration: none;
border-bottom: none;
}
</style>
{{/* Build the URL according to selected license options */}}
{{ $urlOptions := replace $options " " "-" }}
{{ $url := printf "%v%v%v" "https://creativecommons.org/licenses/" $urlOptions "/4.0" }}
<a class="license" href="{{ $url }}">
{{ with resources.Get "/creative-commons-icons/cc.jpg" }}
<img src="{{ .RelPermalink }}" alt="Creative Commons logo" class="license-logo">
{{ end }}
{{ if in $options "by"}}
{{ with resources.Get "/creative-commons-icons/by.jpg" }}
<img src="{{ .RelPermalink }}" alt="Creative Commons logo" class="license-logo">
{{ end }}
{{ end }}
{{ if in $options "nc"}}
{{ with resources.Get "/creative-commons-icons/nc.jpg" }}
<img src="{{ .RelPermalink }}" alt="Creative Commons logo" class="license-logo">
{{ end }}
{{ end }}
{{ if in $options "sa"}}
{{ with resources.Get "/creative-commons-icons/sa.jpg" }}
<img src="{{ .RelPermalink }}" alt="Creative Commons logo" class="license-logo">
{{ end }}
{{ end }}
</a>