diff options
| author | 2026-03-31 00:06:46 +0700 | |
|---|---|---|
| committer | 2026-03-31 00:06:46 +0700 | |
| commit | a0ace41ad3b0f4661e98d8fa8ef254369cc80d1e (patch) | |
| tree | b5b5c58d42918bab94fd3a6980268ef55dc71f40 /views/layouts/general-page.html | |
| parent | be906e1cc4ec3e92bcb14ee08256b53f3a4b44e2 (diff) | |
| download | web-a0ace41ad3b0f4661e98d8fa8ef254369cc80d1e.tar.gz web-a0ace41ad3b0f4661e98d8fa8ef254369cc80d1e.zip | |
feat: specify canonical hrefs for each page
feat: specify more meta properties for search engines
fix: correct user and catalogue meta
format: specify og property names in property field
feat: user profile description
Diffstat (limited to 'views/layouts/general-page.html')
| -rw-r--r-- | views/layouts/general-page.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/views/layouts/general-page.html b/views/layouts/general-page.html index 3f5bcfd..2114b1c 100644 --- a/views/layouts/general-page.html +++ b/views/layouts/general-page.html @@ -3,8 +3,14 @@ <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - {{- range $k, $v := .Meta }} - <meta name="{{ $k }}" content="{{ $v }}"> + {{- range .Meta }} + <meta {{with .Name}}name="{{.}}" {{end}}{{with .Property}}property="{{.}}" {{end}}{{with .Content}}content="{{.}}"{{end}}> + {{- if eq .Property "og:description" }} + <meta name="description" href="{{.Content}}"> + {{- end }} + {{- if eq .Property "og:url" }} + <link rel="canonical" href="{{.Content}}"> + {{- end }} {{- end }} <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"> <link rel="stylesheet" href="https://f003.backblazeb2.com/file/sayana-static/libs/leaflet/1.9.4/leaflet.css"> |