Add index.html to links
This commit is contained in:
parent
c3c169a557
commit
c778fa675e
7 changed files with 8 additions and 8 deletions
|
@ -16,7 +16,7 @@ var searchFunction = function(event) {
|
|||
|
||||
var templateDefinition = `
|
||||
<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>
|
||||
</div>
|
||||
`;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{ range .Data.Pages }}
|
||||
<article itemscope itemtype="http://schema.org/Blog">
|
||||
<h2 class="entry-title" itemprop="headline">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
<a href="{{ .Permalink }}index.html">{{ .Title }}</a>
|
||||
</h2>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<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>
|
||||
<generator>Hugo - {{ .Hugo.Version }} - gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Copyright }}
|
||||
|
@ -22,7 +22,7 @@
|
|||
{{ range $pages }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<link>{{ .Permalink }}index.html</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
</item>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<article itemscope itemtype="http://schema.org/Blog">
|
||||
<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">
|
||||
{{ with .Date }}
|
||||
<time itemprop="datePublished" datetime="{{ .Format "2006-01-02" }}">
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{ if eq $parentPage.File.UniqueID .File.UniqueID }}
|
||||
{{ $active := "active" }}
|
||||
{{ 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 }}
|
||||
<span class="badge badge-secondary badge-pill">{{ len .Pages }}</span>
|
||||
</a>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</h2>
|
||||
<div class="header-container row">
|
||||
<div class="header-category col-sm-4">
|
||||
<a href="{{ .CurrentSection.Permalink }}">
|
||||
<a href="{{ .CurrentSection.Permalink }}index.html">
|
||||
{{ .CurrentSection.Title }}
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<h2 class="list-title">Catégories</h2>
|
||||
{{ range sort .Sections ".Title" "asc"}}
|
||||
<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>
|
||||
</h4>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue