Publish HTML quickly. https://html.house
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

60 lines
2.2 KiB

  1. {{define "stats"}}<!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>{{.ID}}.html stats | HTMLhouse</title>
  5. <link rel="stylesheet" type="text/css" href="/css/house.css" />
  6. <link rel="shortcut icon" href="/favicon.ico" />
  7. <link rel="icon" type="image/png" href="/img/favicon-chrome.png" sizes="192x192">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  9. <meta name="theme-color" content="#888888" />
  10. <meta name="description" content="Page stats for {{.ID}}.html">
  11. <meta name="application-name" content="HTMLhouse">
  12. <meta name="application-url" content="https://html.house">
  13. <meta itemprop="name" content="{{.ID}}.html stats | HTMLhouse">
  14. <meta itemprop="description" content="Page stats for {{.ID}}.html">
  15. <meta name="twitter:card" content="summary_large_image">
  16. <meta name="twitter:title" content="{{.ID}}.html stats | HTMLhouse">
  17. <meta name="twitter:description" content="Page stats for {{.ID}}.html">
  18. <meta property="og:title" content="{{.ID}}.html stats | HTMLhouse" />
  19. <meta property="og:site_name" content="HTMLhouse" />
  20. <meta property="og:type" content="object" />
  21. <meta property="og:url" content="https://html.house/stats/{{.ID}}.html" />
  22. <meta property="og:description" content="Page stats for {{.ID}}.html" />
  23. </head>
  24. <body>
  25. <header>
  26. <h1>{{.ID}}.html stats</h1>
  27. <nav>
  28. <a class="home" href="/">&lt;&#8962;/&gt;</a>
  29. <a href="/browse">browse</a>
  30. <a href="/about.html">about</a>
  31. <a href="/contact.html">contact</a>
  32. </nav>
  33. <a href="/{{.ID}}.html">view</a>
  34. <a href="/edit/{{.ID}}.html">edit</a>
  35. </header>
  36. <div id="wrapper">
  37. {{ range .Stats }}<div class="stat">
  38. <span class="num">{{.Data}}</span>
  39. <span class="label">{{.Label}}</span>
  40. </div>{{end}}
  41. </div>
  42. <script type="text/javascript">
  43. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  44. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  45. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  46. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  47. ga('create', 'UA-47877053-8', 'auto');
  48. ga('send', 'pageview');
  49. </script>
  50. </body>
  51. </html>{{end}}