Correction pour validation HTML + CSS + RSS
This commit is contained in:
@@ -225,7 +225,7 @@
|
||||
<p class="article-publication">
|
||||
{{ with $page.Date }}
|
||||
{{- $timePart := . | time.Format "15:04:05" -}}
|
||||
<time datetime="{{ . }}">
|
||||
<time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">
|
||||
{{- if eq $timePart "00:00:00" -}}
|
||||
{{ . | time.Format "02/01/2006" }}
|
||||
{{- else -}}
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
{{- if $showInterestingLinksMeta -}}
|
||||
<footer class="external-link-meta">
|
||||
<p>
|
||||
{{- with $page.Date -}}<time datetime="{{ . }}">{{ . | time.Format "02/01/2006" }}</time>{{- end -}}
|
||||
{{- with $page.Date -}}<time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">{{ . | time.Format "02/01/2006" }}</time>{{- end -}}
|
||||
{{- if and $page.Date $originHost -}}<span>·</span>{{- end -}}
|
||||
{{- with $originHost -}}
|
||||
{{- if $originLink -}}
|
||||
@@ -168,13 +168,13 @@
|
||||
</p>
|
||||
<p>
|
||||
<strong data-state="{{ $statusTone }}"{{ with $statusTitle }} title="{{ . }}"{{ end }}>{{ $statusLabel }}</strong>
|
||||
{{- with $statusChecked -}}<span>·</span><time datetime="{{ . }}">Vérifié {{ . | time.Format "02/01/2006" }}</time>{{- end -}}
|
||||
{{- with $statusChecked -}}<span>·</span><time datetime="{{ time.Format "2006-01-02T15:04:05Z07:00" (time .) }}">Vérifié {{ . | time.Format "02/01/2006" }}</time>{{- end -}}
|
||||
</p>
|
||||
</footer>
|
||||
{{- else -}}
|
||||
<p>
|
||||
{{- with $page.Date -}}
|
||||
<time datetime="{{ . }}">{{ . | time.Format "02/01/2006" }}</time>
|
||||
<time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">{{ . | time.Format "02/01/2006" }}</time>
|
||||
{{- end -}}
|
||||
{{- if $showSection -}}
|
||||
{{- with $page.Parent -}}
|
||||
|
||||
@@ -107,9 +107,9 @@
|
||||
</td>
|
||||
<td>
|
||||
{{- if $manualMarked -}}
|
||||
<del class="link-dead link-dead-marked"><span class="link-dead link-dead-marked" title="URL d'origine : {{ .url }}" aria-label="Lien supprimé. URL d'origine : {{ .url }}">{{ .url }}</span></del>
|
||||
<del class="link-dead link-dead-marked"><span class="link-dead link-dead-marked" title="URL d'origine : {{ .url }}">{{ .url }}</span></del>
|
||||
{{- else -}}
|
||||
<span class="link-dead{{ if eq (printf "%v" .status) "404" }} link-dead-404{{ end }}" title="URL d'origine : {{ .url }}" aria-label="Lien mort. URL d'origine : {{ .url }}">{{ .url }}</span>
|
||||
<span class="link-dead{{ if eq (printf "%v" .status) "404" }} link-dead-404{{ end }}" title="URL d'origine : {{ .url }}">{{ .url }}</span>
|
||||
{{- end -}}
|
||||
</td>
|
||||
<td>{{ with .code }}<code>{{ . }}</code>{{ end }}</td>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<p>
|
||||
{{ with .Date }}
|
||||
<time datetime="{{ . }}">{{ . | time.Format "02/01/2006" }}</time>
|
||||
<time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">{{ . | time.Format "02/01/2006" }}</time>
|
||||
{{ end }}
|
||||
{{ if ge .ReadingTime 5 }}
|
||||
<span>{{ .ReadingTime }} min de lecture</span>
|
||||
|
||||
@@ -221,8 +221,7 @@
|
||||
{{- $classValue := delimit $linkClasses " " -}}
|
||||
{{- if $isMarkedDeadLink -}}
|
||||
{{- $deadTitleValue := printf "URL d'origine : %s" $destination -}}
|
||||
{{- $deadAriaLabel := printf "Lien supprimé. URL d'origine : %s" $destination -}}
|
||||
<del class="link-dead link-dead-marked"><span{{ with $classValue }} class="{{- . -}}"{{ end }} title="{{- $deadTitleValue -}}" aria-label="{{- $deadAriaLabel -}}">{{- strings.TrimSpace .Text | safeHTML -}}</span></del>
|
||||
<del class="link-dead link-dead-marked"><span{{ with $classValue }} class="{{- . -}}"{{ end }} title="{{- $deadTitleValue -}}">{{- strings.TrimSpace .Text | safeHTML -}}</span></del>
|
||||
{{- else -}}
|
||||
<a href="{{- $newURL -}}"{{ with $classValue }} class="{{- . -}}"{{ end }}{{ with $titleValue }} title="{{- . -}}"{{ end }}{{ if $isExternal }} rel="noreferrer noopener"{{ end }}>{{- strings.TrimSpace .Text | safeHTML -}}</a>
|
||||
{{- end -}}{{- "" -}}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<span>{{ .Title }}</span>
|
||||
<span>
|
||||
{{- with .Date -}}
|
||||
<time datetime="{{ . }}">{{ . | time.Format "02/01/2006" }}</time>
|
||||
<time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">{{ . | time.Format "02/01/2006" }}</time>
|
||||
{{- end -}}
|
||||
{{- if $showSection -}}
|
||||
{{- with .Parent -}}
|
||||
@@ -59,7 +59,7 @@
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<p>
|
||||
{{- with .Date -}}
|
||||
<time datetime="{{ . }}">{{ . | time.Format "02/01/2006" }}</time>
|
||||
<time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">{{ . | time.Format "02/01/2006" }}</time>
|
||||
{{- end -}}
|
||||
{{- if $showSection -}}
|
||||
{{- with .Parent -}}
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<header>
|
||||
<p>
|
||||
{{- with $page.Date -}}
|
||||
<time datetime="{{ . }}">{{ . | time.Format "02/01/2006" }}</time>
|
||||
<time datetime="{{ .Format "2006-01-02T15:04:05Z07:00" }}">{{ . | time.Format "02/01/2006" }}</time>
|
||||
{{- end -}}
|
||||
</p>
|
||||
{{- with $dossierFirstPage -}}
|
||||
|
||||
Reference in New Issue
Block a user