diff options
author | navanchauhan <navanchauhan@gmail.com> | 2023-01-21 18:31:05 -0700 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2023-01-21 18:31:05 -0700 |
commit | 047f64463ad9104f650cac10dac7ab0d4d4d62ca (patch) | |
tree | 0b3d7e06ea8ee507bd3058ac559b32e2b45a2073 /templates | |
parent | 79b857b93a7331eeb0abd61d9e7ce874c6abd87a (diff) |
moved plausible to head
Diffstat (limited to 'templates')
-rw-r--r-- | templates/components/header.html | 1 | ||||
-rw-r--r-- | templates/document_details.html | 1 | ||||
-rw-r--r-- | templates/home.html | 1 | ||||
-rw-r--r-- | templates/results.gtpl | 6 | ||||
-rw-r--r-- | templates/search.gtpl | 5 | ||||
-rw-r--r-- | templates/search_results.html | 1 |
6 files changed, 11 insertions, 4 deletions
diff --git a/templates/components/header.html b/templates/components/header.html index 7ec672b..8537f95 100644 --- a/templates/components/header.html +++ b/templates/components/header.html @@ -7,4 +7,5 @@ <link href="/static/assets/fontawesome/css/solid.min.css" rel="stylesheet"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <link rel="manifest" href="/static/manifest.json"> +<script defer data-domain="fda510k.navan.dev" src="https://plausible.io/js/script.js"></script> {{ end }}
\ No newline at end of file diff --git a/templates/document_details.html b/templates/document_details.html index 17e7135..99b077b 100644 --- a/templates/document_details.html +++ b/templates/document_details.html @@ -96,6 +96,5 @@ navigator.serviceWorker.register('/static/pwabuilder-sw.js') } </script> - <script defer data-domain="fda510k.navan.dev" src="https://plausible.io/js/script.js"></script> </body> </html>
\ No newline at end of file diff --git a/templates/home.html b/templates/home.html index d031380..06fe2e8 100644 --- a/templates/home.html +++ b/templates/home.html @@ -27,6 +27,5 @@ navigator.serviceWorker.register('/static/pwabuilder-sw.js') } </script> - <script defer data-domain="fda510k.navan.dev" src="https://plausible.io/js/script.js"></script> </body> </html>
\ No newline at end of file diff --git a/templates/results.gtpl b/templates/results.gtpl index 5b30ca9..4df4c3a 100644 --- a/templates/results.gtpl +++ b/templates/results.gtpl @@ -1,6 +1,10 @@ <!DOCTYPE html> <html> <body> +<head> + <title>Search Results</title> + <script defer data-domain="fda510k.navan.dev" src="https://plausible.io/js/script.js"></script> +</head> <h1>Search Results</h1> <p>Showing results for <b>{{.OriginalQuery.Query}}</b></p> <p>Go <a href="/">home</a></p> @@ -34,6 +38,6 @@ {{ if .MoreResults }} <a href="/classic/search?query={{.OriginalQuery.Query}}&page={{.PrevPage}}&maxHits={{.MaxResults}}"> <p>Next Page</p></a> {{ end }} - <script defer data-domain="fda510k.navan.dev" src="https://plausible.io/js/script.js"></script> + </body> </html>
\ No newline at end of file diff --git a/templates/search.gtpl b/templates/search.gtpl index 65442c7..9da6f12 100644 --- a/templates/search.gtpl +++ b/templates/search.gtpl @@ -1,7 +1,12 @@ <!DOCTYPE html> <html> +<head> + <title>{{.GlobalVars.Name}} - Classic Mode</title> + <script defer data-domain="fda510k.navan.dev" src="https://plausible.io/js/script.js"></script> +</head> <body> <h1>{{.GlobalVars.Name}} - Classic Mode</h1> + <p>Classic mode makes it easier to scrap results and is intended for powerusers. Not updated often, but will always work without any JS</p> <form action="/classic/search" method="GET"> <input type="text" name="query" placeholder="Search Query" spellcheck="false"> <input type="submit"> diff --git a/templates/search_results.html b/templates/search_results.html index a4c94dc..c3ea86d 100644 --- a/templates/search_results.html +++ b/templates/search_results.html @@ -113,6 +113,5 @@ navigator.serviceWorker.register('/static/pwabuilder-sw.js') } </script> - <script defer data-domain="fda510k.navan.dev" src="https://plausible.io/js/script.js"></script> </body> </html>
\ No newline at end of file |