Developer Center website. https://developers.write.as
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.

77 lines
2.6 KiB

  1. {{define "base"}}<!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. {{ template "head" . }}
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <link rel="stylesheet" type="text/css" href="https://write.as/css/write.css" />
  7. <link rel="stylesheet" type="text/css" href="/css/dev.css" />
  8. </head>
  9. <body {{template "body-attrs" .}}>
  10. <header style="margin: 1rem;">
  11. <nav id="full-nav" class="solutionize">
  12. <div class="left-side">
  13. <a href="https://write.as" class="dim"><img alt="Write.as - home" src="https://write.as/img/w-sq.svg"/></a>
  14. </div>
  15. <nav id="user-nav">
  16. <nav class="tabs" aria-label="Main Navigation">
  17. <a href="/"{{if eq .Path "index"}} class="selected"{{end}}>Developers</a>
  18. <a href="/docs/api/">API</a>
  19. <a href="https://discuss.write.as/c/development/7">Community</a>
  20. </nav>
  21. </nav>
  22. <div class="right-side tabs">
  23. </div>
  24. </nav>
  25. </header>
  26. <div id="official-writing">
  27. {{ template "content" . }}
  28. </div>
  29. {{ template "footer" . }}
  30. <script type="text/javascript">
  31. var _paq = _paq || [];
  32. /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  33. _paq.push(['trackPageView']);
  34. _paq.push(['enableLinkTracking']);
  35. (function() {
  36. var u="https://analytics.write.as/";
  37. _paq.push(['setTrackerUrl', u+'piwik.php']);
  38. _paq.push(['setSiteId', '7']);
  39. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  40. g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  41. })();
  42. WebFontConfig = {
  43. custom: { families: [ 'Lora:400,700:latin', 'Open+Sans:400,700:latin' ], urls: [ 'https://write.as/css/fonts.css' ] }
  44. };
  45. (function() {
  46. var wf = document.createElement('script');
  47. wf.src = 'https://write.as/js/webfont.js';
  48. wf.type = 'text/javascript';
  49. wf.async = 'true';
  50. var s = document.getElementsByTagName('script')[0];
  51. s.parentNode.insertBefore(wf, s);
  52. })();
  53. </script>
  54. <noscript><p><img src="https://analytics.write.as/piwik.php?idsite=7&rec=1" style="border:0;" alt="" /></p></noscript>
  55. </body>
  56. </html>{{end}}
  57. {{define "body-attrs"}}{{end}}
  58. {{define "footer"}}
  59. <footer>
  60. <hr />
  61. <nav>
  62. <a class="home" href="https://write.as">write.as</a>
  63. <a href="https://code.as/writeas">code.as</a>
  64. <a href="https://github.com/writeas">github</a>
  65. <a href="https://write.as/writefreely">writefreely</a>
  66. <a href="https://write.as/privacy">privacy</a>
  67. <a href="https://status.write.as">status</a>
  68. </nav>
  69. </footer>
  70. {{end}}