diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-07-18 16:04:06 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-07-18 16:04:06 -0400 |
| commit | f2082a0d72f9359be02182883a1e1190d8b1b215 (patch) | |
| tree | 7856590caa92fe0e71861c85546cdabe0bea16ca /example-site/inc | |
| parent | 8b1d8bf26452f3ce8b38228a39755a6b8e18775a (diff) | |
| download | go-website-f2082a0d72f9359be02182883a1e1190d8b1b215.tar.gz go-website-f2082a0d72f9359be02182883a1e1190d8b1b215.tar.xz | |
More changes to how the website functions
Diffstat (limited to 'example-site/inc')
| -rw-r--r-- | example-site/inc/base.html | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/example-site/inc/base.html b/example-site/inc/base.html index 959c7d6..2f93ec7 100644 --- a/example-site/inc/base.html +++ b/example-site/inc/base.html @@ -6,15 +6,13 @@ <link id="maincss" rel="stylesheet" href="/static/style.css" defer> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <meta name="author" content="{{.Global.App.Author.Name}}"> - <meta name="description" content="{{.Global.App.Description}}"> - - <!-- - <link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png"> - <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png"> - <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png"> - <link rel="manifest" href="/static/site.webmanifest"> - --> + + {{if .AuthorName }} + <meta name="author" content="{{.AuthorName}}"> + {{else if .Global.App.Author.Name }} + <meta name="author" content="{{.Global.App.Author.Name}}"> + {{else}} + {{end}} {{if .Title}} <title>{{.Title}}</title> |
