Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Agroclim
AgroMetInfo
Documentation
Commits
3e665936
Commit
3e665936
authored
1 year ago
by
Olivier Maury
Browse files
Options
Downloads
Patches
Plain Diff
Ajouter des entêtes HTML
parent
7df0a59c
No related branches found
No related tags found
1 merge request
!15
Ajouter des entêtes HTML
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
themes/hugo-theme-relearn/layouts/home/index.html
+13
-5
13 additions, 5 deletions
themes/hugo-theme-relearn/layouts/home/index.html
themes/hugo-theme-relearn/layouts/partials/meta.html
+2
-1
2 additions, 1 deletion
themes/hugo-theme-relearn/layouts/partials/meta.html
with
15 additions
and
6 deletions
themes/hugo-theme-relearn/layouts/home/index.html
+
13
−
5
View file @
3e665936
{{- $assetBusting := not .Site.Params.disableAssetsBusting }}
{{- $page := . }}
{{- $themevariants := slice | append (.Site.Params.themeVariant | default "auto" ) }}
{{- $assetBusting := not .Site.Params.disableAssetsBusting
-
}}
{{- $page := .
-
}}
{{- $themevariants := slice | append (.Site.Params.themeVariant | default "auto" )
-
}}
<!DOCTYPE html>
<html
lang=
"{{ .Page.Language | default "
en
"
}}"
dir=
"{{ T "
Reading-direction
"
|
default
"
ltr
"
}}"
>
<head>
{{- partial "meta.html" . }}
{{- partialCached "favicon.html" . }}
<link
href=
"{{"
css
/
fontawesome-all.min.css
"
|
relURL
}}{{
if
$
assetBusting
}}?{{
now.Unix
}}{{
end
}}"
rel=
"stylesheet"
media=
"print"
onload=
"this.media='all';this.onload=null;"
>
<link
href=
"{{"
css
/
home.css
"
|
relURL
}}{{
if
$
assetBusting
}}?{{
now.Unix
}}{{
end
}}"
rel=
"stylesheet"
>
<link
href=
"{{"
css
/
fonts.css
"
|
relURL
}}{{
if
$
assetBusting
}}?{{
now.Unix
}}{{
end
}}"
rel=
"stylesheet"
media=
"print"
onload=
"this.media='all';this.onload=null;"
>
<title>
{{ .Page.Title }}
</title>
{{ with .OutputFormats.Get "rss" -}}
{{- printf `
<link
rel=
%q
type=
%q
href=
%q
title=
%q
>
` .Rel .MediaType.Type .Permalink site.Title | safeHTML -}}
{{ end }}
<link
rel=
"alternate"
hreflang=
"fr"
href=
"{{"
fr
"
|
relURL
}}"
>
<link
rel=
"alternate"
hreflang=
"en"
href=
"{{"
en
"
|
relURL
}}"
>
<meta
property=
"og:description"
content=
"{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}"
>
<meta
property=
"og:title"
content=
"{{ .Site.Title }}"
>
<meta
property=
"og:type"
content=
"website"
>
<title>
{{ .Site.Title }}
</title>
<base
href=
"{{ .Site.BaseURL }}"
>
{{- partialCached "favicon.html" . }}
<script>
const
baseUriFull
=
'
{{ trim .Site.BaseURL "/" | safeJS }}/
'
;
const
localStorageThemeKey
=
baseUriFull
+
'
variant
'
;
...
...
This diff is collapsed.
Click to expand it.
themes/hugo-theme-relearn/layouts/partials/meta.html
+
2
−
1
View file @
3e665936
...
...
@@ -16,4 +16,5 @@
<meta
name=
"description"
content=
"{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}"
>
{{- with .Site.Params.author }}
<meta
name=
"author"
content=
"{{ . }}"
>
{{- end }}
\ No newline at end of file
{{- end }}
<link
rel=
"license"
href=
"https://www.etalab.gouv.fr/licence-ouverte-open-licence/"
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment