feat: translate the site in french
This commit is contained in:
parent
3e98ac15b6
commit
b47b193b20
81 changed files with 1327 additions and 251 deletions
6
layouts/_markup/render-heading.html
Normal file
6
layouts/_markup/render-heading.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
|
||||
{{ .Text }}
|
||||
<a href="#{{ .Anchor }}">
|
||||
{{- partial "icon.html" (dict "icon" "links-line" "label" (T "permalink_section")) -}}
|
||||
</a>
|
||||
</h{{ .Level }}>
|
8
layouts/_markup/render-link.html
Normal file
8
layouts/_markup/render-link.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{- $u := urls.Parse .Destination -}}
|
||||
<a href="{{ .Destination | safeURL }}"
|
||||
{{- with .Title }} title="{{ . }}"{{ end -}}
|
||||
{{- if $u.IsAbs }} rel="external"{{ end -}}
|
||||
>
|
||||
{{- with .Text }}{{ . }}{{ end -}}
|
||||
</a>
|
||||
{{- /* chomp trailing newline */ -}}
|
Loading…
Add table
Add a link
Reference in a new issue