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.

106 lines
3.8 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="{{.Platform.StyleSheetURL}}" />
  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="{{.Platform.URL}}" class="dim"><img alt="{{.Platform.Name}} - home" src="{{.Platform.LogoURL}}"/></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', '{{.Platform.MatomoID}}']);
  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={{.Platform.MatomoID}}&rec=1" style="border:0;" alt="" /></p></noscript>
  55. </body>
  56. </html>{{end}}
  57. {{define "body-attrs"}}{{end}}
  58. {{define "footer"}}
  59. <footer class="contain-me">
  60. <hr />
  61. <div class="marketing-section">
  62. <div class="clearfix blurbs">
  63. <div class="fourth">
  64. <h3><a class="home" href="/">developers</a></h3>
  65. <ul>
  66. <li><a href="/docs/api/">api</a></li>
  67. <li><a href="https://discuss.write.as/c/development/7">community</a></li>
  68. <li><a href="https://status.write.as">status</a></li>
  69. <li class="icons">
  70. <a href="https://m.abunchtell.com/@writeas_dev" rel="me"><img src="https://write.as/img/mastodon.svg" alt="@writeas_dev on the fediverse" /></a>
  71. </li>
  72. </ul>
  73. </div>
  74. <div class="fourth">
  75. <h3>open source</h3>
  76. <ul>
  77. <li><a href="https://writefreely.org">writefreely</a></li>
  78. <li><a href="https://code.as/{{.Platform.CodeAsName}}">code.as</a></li>
  79. {{if .Platform.GitHubName}}<li><a href="https://github.com/{{.Platform.GitHubName}}">github</a></li>{{end}}
  80. </ul>
  81. </div>
  82. <div class="fourth">
  83. <h3>products</h3>
  84. <ul>
  85. <li><a href="https://developers.write.as/">write.as developers</a></li>
  86. <li><a href="https://developers.snap.as/">snap.as developers</a></li>
  87. </ul>
  88. </div>
  89. <div class="fourth">
  90. <h3><a class="home" style="font-weight: normal; text-transform: lowercase" href="https://write.as">Write.as</a></h3>
  91. <ul>
  92. <li><a href="https://write.as/contact">contact</a></li>
  93. <li><a href="https://write.as/privacy">privacy</a></li>
  94. </ul>
  95. </div>
  96. </div>
  97. </div>
  98. </footer>
  99. {{end}}