diff options
| author | William Hergès <william@herges.fr> | 2025-10-03 20:47:55 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-10-03 20:47:55 +0200 |
| commit | 97045512306ed91b690a0d4c20bbb8fe84d7dbfe (patch) | |
| tree | d3e6689c65999cfb91aef886424832b6ba3d52fe /backend/templates | |
| parent | 12efe4691b85bf7b1933ac993b01ac7f0a06b06c (diff) | |
feat(backend): set default image and public folder in config
Diffstat (limited to 'backend/templates')
| -rw-r--r-- | backend/templates/base.html | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/backend/templates/base.html b/backend/templates/base.html index a79f4c1..f0ae617 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -11,7 +11,7 @@ <meta property="og:title" content="{{ .Title }}" /> <meta property="og:type" content="website" /> <meta property="og:url" content="https://{{ .Domain }}{{ .URL }}" /> - <meta property="og:image" content="https://{{ .Domain }}{{ static .Image }}" /> + <meta property="og:image" content="{{ fullStatic .Image }}" /> <meta property="og:description" content="{{ .Description }}" /> <meta property="og:local" content="fr_FR" /> <meta property="og:site_name" content="{{ .Name }}" /> @@ -19,20 +19,16 @@ <!-- Twitter --> <meta name="twitter:card" content="summary_large_image" /> <meta property="twitter:domain" content="{{ .Domain }}" /> - <meta property="twitter:url" content="https://{{ .Domain }}{{ .URL }}/" /> + <meta property="twitter:url" content="https://{{ .Domain }}{{ .URL }}" /> <meta name="twitter:title" content="{{ .Title }}" /> <meta name="twitter:description" content="{{ .Description }}" /> - <meta name="twitter:image" content="https://{{ .Domain }}{{ static .Image }}" /> + <meta name="twitter:image" content="{{ fullStatic .Image }}" /> </head> <body> <header> <img src="{{ static .Logo.Header }}" alt="Logo"> <nav> - {{ range .Links }} - <a href="{{ .URL }}"> - {{ .Name }} - </a> - {{end}} + {{ range .Links }}<a href="{{ .URL }}">{{ .Name }}</a>{{end}} </nav> </header> {{ template "body" . }} |
