feat: ouzhpennet ar podkastoù

This commit is contained in:
Ewen 2023-12-19 09:55:32 +01:00
parent de7fa6ab40
commit ece5e51652
5 changed files with 5 additions and 133 deletions

View file

@ -60,14 +60,14 @@
data-toggle="collapse" data-target="#lang-dropdown" data-toggle="collapse" data-target="#lang-dropdown"
aria-expanded="false" aria-controls="lang-dropdown"> aria-expanded="false" aria-controls="lang-dropdown">
<li class=""> <li class="">
<a class="nav-link"><img class="flag grayscale-60" src="/img/flag_{{- .Lang -}}.svg"></a> <a class="nav-link">{{- .Lang -}}</a>
</li> </li>
</label> </label>
<div id="lang-dropdown" class="collapse"> <div id="lang-dropdown" class="collapse">
<ul class="mydropdown-menu"> <ul class="mydropdown-menu">
{{- range .AllTranslations -}} {{- range .AllTranslations -}}
<li><a href="{{- .Permalink -}}"><img class="flag" src="/img/flag_{{- .Lang -}}.svg"></a></li> <li><a href="{{- .Permalink -}}">{{- .Language.LanguageName -}}</a></li>
{{- end -}} {{- end -}}
</ul> </ul>
</div> </div>

View file

@ -1,67 +0,0 @@
<!-- Top navbar -->
<nav class="navbar pb-0 pt-0 pr-0 border-bottom navbar-light bg-light fixed-top navbar-expand-md">
<div id="brand" class="navbar-brand pd-0 pt-0">
<a href="{{ "/" | absLangURL }}" class="text-dark router-link-exact-active router-link-active" target="_self" aria-current="page">
{{ .Site.Title }}
</a>
</div>
<button type="button" aria-label="Toggle navigation"
class="navbar-toggler ml-auto collapsed" aria-expanded="false" aria-controls="nav-collapse"
style="overflow-anchor: none;">
<span class="navbar-toggler-icon"></span>
</button>
<div id="nav-collapse" class="navbar-collapse collapse" style="display: none;">
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a href="/fr/"
class="nav-link router-link-exact-active router-link-active active" target="_self"
aria-current="page"> Accueil </a></li>
<li id="cv" class="nav-item"><a href="/fr/cv" class="nav-link"
target="_self"> CV </a></li>
<li id="portfolio" class="nav-item"><a href="#" target="_self"
tabindex="-1" aria-disabled="true" class="nav-link disabled"> Portfolio </a></li>
<li id="blog" class="nav-item"><a href="#" target="_self"
tabindex="-1" aria-disabled="true" class="nav-link disabled"> Blog </a></li>
</ul>
<ul class="navbar-nav ml-auto">
<div class="dropdown b-dropdown btn-group" value="fr" id="__BVID__23">
<button aria-haspopup="true" aria-expanded="false" type="button"
class="btn dropdown-toggle btn-light" id="toggle_menu">fr</button>
<ul role="menu" tabindex="-1" class="dropdown-menu dropdown-menu-right"
aria-labelledby="toggle_menu">
<li role="presentation"><a role="menuitem" href="#" target="_self"
class="dropdown-item active"> fr </a></li>
<li role="presentation"><a role="menuitem" href="#" target="_self" class="dropdown-item"> br
</a></li>
<li role="presentation"><a role="menuitem" href="#" target="_self" class="dropdown-item"> en
</a></li>
</ul>
</div>
</ul>
</div>
</nav>
<div class="nav-top nav-right">
<nav class="nav-item level is-mobile">
{{- range $.Site.Home.AllTranslations }}
<a class="level-item" href="{{ .Permalink }}">{{ .Language.Lang }}</a>
{{- end }}
</nav>
</div>
</nav>
<!-- toujours présent -->
<header id="header">
<div class="inner"><img src="" alt="" class="avatar image">
<h1 id="name">Ewen Corre</h1>
<h1>Introduction</h1>
</div>
{{ partial "footer" . }}
</header>
</aside>

View file

@ -1,60 +0,0 @@
{{ 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

@ -4,10 +4,9 @@
<div class="row"> <div class="row">
<div class="col-lg-8 mb-10 mb-lg-0"> <div class="col-lg-8 mb-10 mb-lg-0">
{{- $pctx := . -}} {{ .Content }}
{{- $pages := .Site.Pages -}}
{{ $paginator := .Paginate (where $pages "Type" "podcast") }} {{ range sort .Pages }}
{{ range sort .Paginator.Pages }}
<article class="posts featured-post"> <article class="posts featured-post">