|
- {{define "base"}}<!DOCTYPE HTML>
- <html>
- <head>
- {{ template "head" . }}
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link rel="stylesheet" type="text/css" href="https://write.as/css/write.css" />
- <link rel="stylesheet" type="text/css" href="/css/dev.css" />
- </head>
- <body {{template "body-attrs" .}}>
- <header style="margin: 1rem;">
- <nav id="full-nav" class="solutionize">
- <div class="left-side">
- <a href="https://write.as" class="dim"><img alt="Write.as - home" src="https://write.as/img/w-sq.svg"/></a>
- </div>
- <nav id="user-nav">
- <nav class="tabs" aria-label="Main Navigation">
- <a href="/"{{if eq .Path "index"}} class="selected"{{end}}>Developers</a>
- <a href="/docs/api/">API</a>
- <a href="https://discuss.write.as/c/development/7">Community</a>
- </nav>
- </nav>
- <div class="right-side tabs">
- </div>
- </nav>
- </header>
-
- <div id="official-writing">
- {{ template "content" . }}
- </div>
-
- {{ template "footer" . }}
-
- <script type="text/javascript">
- var _paq = _paq || [];
- /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
- (function() {
- var u="https://analytics.write.as/";
- _paq.push(['setTrackerUrl', u+'piwik.php']);
- _paq.push(['setSiteId', '7']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
- })();
-
- WebFontConfig = {
- custom: { families: [ 'Lora:400,700:latin', 'Open+Sans:400,700:latin' ], urls: [ 'https://write.as/css/fonts.css' ] }
- };
- (function() {
- var wf = document.createElement('script');
- wf.src = 'https://write.as/js/webfont.js';
- wf.type = 'text/javascript';
- wf.async = 'true';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(wf, s);
- })();
- </script>
-
- <noscript><p><img src="https://analytics.write.as/piwik.php?idsite=7&rec=1" style="border:0;" alt="" /></p></noscript>
- </body>
- </html>{{end}}
-
- {{define "body-attrs"}}{{end}}
-
- {{define "footer"}}
- <footer>
- <hr />
- <nav>
- <a class="home" href="https://write.as">write.as</a>
- <a href="https://code.as/writeas">code.as</a>
- <a href="https://github.com/writeas">github</a>
- <a href="https://write.as/writefreely">writefreely</a>
- <a href="https://write.as/privacy">privacy</a>
- <a href="https://status.write.as">status</a>
- </nav>
- </footer>
- {{end}}
|