Add index.html to links

This commit is contained in:
Thomas Schwery 2020-02-08 21:46:01 +01:00
parent c3c169a557
commit c778fa675e
7 changed files with 8 additions and 8 deletions

View file

@ -16,7 +16,7 @@ var searchFunction = function(event) {
var templateDefinition = ` var templateDefinition = `
<div id="summary-{{ key }}"> <div id="summary-{{ key }}">
<h4><a href="{{ link }}">{{ title }}</a> <small>{{ categories }}</small></h4> <h4><a href="{{ link }}index.html">{{ title }}</a> <small>{{ categories }}</small></h4>
<p>{{ content }}</p> <p>{{ content }}</p>
</div> </div>
`; `;

View file

@ -5,7 +5,7 @@
{{ range .Data.Pages }} {{ range .Data.Pages }}
<article itemscope itemtype="http://schema.org/Blog"> <article itemscope itemtype="http://schema.org/Blog">
<h2 class="entry-title" itemprop="headline"> <h2 class="entry-title" itemprop="headline">
<a href="{{ .Permalink }}">{{ .Title }}</a> <a href="{{ .Permalink }}index.html">{{ .Title }}</a>
</h2> </h2>
</article> </article>
{{ end }} {{ end }}

View file

@ -9,7 +9,7 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}index.html</link>
<description>Les dernières recettes</description> <description>Les dernières recettes</description>
<generator>Hugo - {{ .Hugo.Version }} - gohugo.io</generator>{{ with .Site.LanguageCode }} <generator>Hugo - {{ .Hugo.Version }} - gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Copyright }} <language>{{.}}</language>{{end}}{{ with .Site.Copyright }}
@ -22,7 +22,7 @@
{{ range $pages }} {{ range $pages }}
<item> <item>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}index.html</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
</item> </item>

View file

@ -1,6 +1,6 @@
<article itemscope itemtype="http://schema.org/Blog"> <article itemscope itemtype="http://schema.org/Blog">
<h4 class="list-content-title pb-3"> <h4 class="list-content-title pb-3">
<a href="{{ .RelPermalink }}index.html">{{ .Title }}</a> <a href="{{ .Permalink }}index.html">{{ .Title }}</a>
<small class="text-muted font-weight-light"> <small class="text-muted font-weight-light">
{{ with .Date }} {{ with .Date }}
<time itemprop="datePublished" datetime="{{ .Format "2006-01-02" }}"> <time itemprop="datePublished" datetime="{{ .Format "2006-01-02" }}">

View file

@ -6,7 +6,7 @@
{{ if eq $parentPage.File.UniqueID .File.UniqueID }} {{ if eq $parentPage.File.UniqueID .File.UniqueID }}
{{ $active := "active" }} {{ $active := "active" }}
{{ end }} {{ end }}
<a class="list-group-item d-flex justify-content-between list-group-item-action align-items-center $active" href="{{ .Permalink }}"> <a class="list-group-item d-flex justify-content-between list-group-item-action align-items-center $active" href="{{ .Permalink }}index.html">
{{ .Title }} {{ .Title }}
<span class="badge badge-secondary badge-pill">{{ len .Pages }}</span> <span class="badge badge-secondary badge-pill">{{ len .Pages }}</span>
</a> </a>

View file

@ -8,7 +8,7 @@
</h2> </h2>
<div class="header-container row"> <div class="header-container row">
<div class="header-category col-sm-4"> <div class="header-category col-sm-4">
<a href="{{ .CurrentSection.Permalink }}"> <a href="{{ .CurrentSection.Permalink }}index.html">
{{ .CurrentSection.Title }} {{ .CurrentSection.Title }}
</a> </a>
</div> </div>

View file

@ -7,7 +7,7 @@
<h2 class="list-title">Catégories</h2> <h2 class="list-title">Catégories</h2>
{{ range sort .Sections ".Title" "asc"}} {{ range sort .Sections ".Title" "asc"}}
<h4 class="entry-title" itemprop="headline"> <h4 class="entry-title" itemprop="headline">
<a href="{{ .Permalink }}">{{ .Title }}</a> <a href="{{ .Permalink }}index.html">{{ .Title }}</a>
<small class="text-muted">{{ len .Pages }} recettes</small> <small class="text-muted">{{ len .Pages }} recettes</small>
</h4> </h4>
{{ end }} {{ end }}