Skip to content

Commit

Permalink
Add meta data for preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceu committed Aug 23, 2024
1 parent a3d90ee commit 2239a5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/webserver/web/templates/html_header.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">


<script src="./assets/dist/js/jquery.min.js"></script>
Expand Down Expand Up @@ -39,8 +38,12 @@
{{ if .IsDownloadView }}
{{ if .IsPasswordView }}
<title>{{.PublicName}}: Password required</title>
<meta name="title" content="{{.PublicName}}">
<meta name="description" content="Password required">
{{ else }}
<title>{{.PublicName}}: {{.Name}}</title>
<meta name="title" content="{{.PublicName}}">
<meta name="description" content="{{.Name}}">
{{end }}
{{ else }}
<title>{{.PublicName}}</title>
Expand Down

0 comments on commit 2239a5d

Please sign in to comment.