|
- {{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="{{.Platform.StyleSheetURL}}" />
- <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="{{.Platform.URL}}" class="dim"><img alt="{{.Platform.Name}} - home" src="{{.Platform.LogoURL}}"/></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', '{{.Platform.MatomoID}}']);
- 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={{.Platform.MatomoID}}&rec=1" style="border:0;" alt="" /></p></noscript>
- </body>
- </html>{{end}}
-
- {{define "body-attrs"}}{{end}}
-
- {{define "footer"}}
- <footer class="contain-me">
- <hr />
- <div class="marketing-section">
- <div class="clearfix blurbs">
- <div class="fourth">
- <h3><a class="home" href="/">developers</a></h3>
- <ul>
- <li><a href="/docs/api/">api</a></li>
- <li><a href="https://discuss.write.as/c/development/7">community</a></li>
- <li><a href="https://status.write.as">status</a></li>
- <li class="icons">
- <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>
- </li>
- </ul>
- </div>
- <div class="fourth">
- <h3>open source</h3>
- <ul>
- <li><a href="https://writefreely.org">writefreely</a></li>
- <li><a href="https://code.as/{{.Platform.CodeAsName}}">code.as</a></li>
- {{if .Platform.GitHubName}}<li><a href="https://github.com/{{.Platform.GitHubName}}">github</a></li>{{end}}
- </ul>
- </div>
- <div class="fourth">
- <h3>products</h3>
- <ul>
- <li><a href="https://developers.write.as/">write.as developers</a></li>
- <li><a href="https://developers.snap.as/">snap.as developers</a></li>
- </ul>
- </div>
- <div class="fourth">
- <h3><a class="home" style="font-weight: normal; text-transform: lowercase" href="https://write.as">Write.as</a></h3>
- <ul>
- <li><a href="https://write.as/contact">contact</a></li>
- <li><a href="https://write.as/privacy">privacy</a></li>
- </ul>
- </div>
- </div>
- </div>
- </footer>
- {{end}}
|