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.
 
 
 
 

67 lines
2.5 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:site" content="@HTMLhouse">
  17. <meta name="twitter:title" content="{{.ID}}.html stats | HTMLhouse">
  18. <meta name="twitter:description" content="Page stats for {{.ID}}.html">
  19. <meta property="og:title" content="{{.ID}}.html stats | HTMLhouse" />
  20. <meta property="og:site_name" content="HTMLhouse" />
  21. <meta property="og:type" content="object" />
  22. <meta property="og:url" content="https://html.house/stats/{{.ID}}.html" />
  23. <meta property="og:description" content="Page stats for {{.ID}}.html" />
  24. </head>
  25. <body>
  26. <header>
  27. <h1>{{.ID}}.html stats</h1>
  28. <nav>
  29. <a class="home" href="/">&lt;&#8962;/&gt;</a>
  30. <a href="/browse">browse</a>
  31. <a href="/about.html">about</a>
  32. <a href="/contact.html">contact</a>
  33. </nav>
  34. <a href="/{{.ID}}.html">view</a>
  35. <a href="/edit/{{.ID}}.html">edit</a>
  36. </header>
  37. <div id="wrapper">
  38. {{ range .Stats }}<div class="stat">
  39. <span class="num">{{.Data}}</span>
  40. <span class="label">{{.Label}}</span>
  41. </div>{{end}}
  42. </div>
  43. <script type="text/javascript">
  44. var _paq = _paq || [];
  45. _paq.push(["setCookieDomain", "*.html.house"]);
  46. _paq.push(["setDomains", ["*.html.house"]]);
  47. _paq.push(['trackPageView']);
  48. _paq.push(['enableLinkTracking']);
  49. (function() {
  50. var u="//analytics.write.as/";
  51. _paq.push(['setTrackerUrl', u+'piwik.php']);
  52. _paq.push(['setSiteId', 3]);
  53. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  54. g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  55. })();
  56. </script>
  57. <noscript><p><img src="//analytics.write.as/piwik.php?idsite=3" style="border:0;" alt="" /></p></noscript>
  58. </body>
  59. </html>{{end}}