A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
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.
 
 
 
 
 

76 lines
2.8 KiB

  1. {{define "password-collection"}}<!DOCTYPE HTML>
  2. <html {{if .Language}}lang="{{.Language}}"{{end}} dir="{{.Direction}}">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>{{.DisplayTitle}}{{if not .SingleUser}} &mdash; {{.SiteName}}{{end}}</title>
  6. <link rel="stylesheet" type="text/css" href="/css/write.css" />
  7. <link rel="shortcut icon" href="/favicon.ico" />
  8. <link rel="canonical" href="{{.CanonicalURL}}">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  10. <meta name="description" content="{{.Description}}">
  11. <meta itemprop="name" content="{{.DisplayTitle}}">
  12. <meta itemprop="description" content="{{.Description}}">
  13. <meta name="twitter:card" content="summary">
  14. <meta name="twitter:title" content="{{.DisplayTitle}}">
  15. <meta name="twitter:description" content="{{.Description}}">
  16. <meta property="og:title" content="{{.DisplayTitle}}" />
  17. <meta property="og:site_name" content="{{.DisplayTitle}}" />
  18. <meta property="og:type" content="article" />
  19. <meta property="og:url" content="{{.CanonicalURL}}" />
  20. <meta property="og:description" content="{{.Description}}" />
  21. {{if .StyleSheet}}<style type="text/css">{{.StyleSheetDisplay}}</style>{{end}}
  22. </head>
  23. <body id="collection" itemscope itemtype="http://schema.org/WebPage">
  24. <header>
  25. <h1 dir="{{.Direction}}" id="blog-title"><a href="/{{.Alias}}/" class="h-card p-author u-url" rel="me author">{{.DisplayTitle}}</a></h1>
  26. </header>
  27. <div id="wrapper">
  28. <div class="access">
  29. <form method="post" action="/api/auth/read">
  30. {{if .Flashes}}<ul class="errors">
  31. {{range .Flashes}}<li class="urgent">{{.}}</li>{{end}}
  32. </ul>{{else}}
  33. <h2>This blog requires a password.</h2>
  34. {{end}}
  35. <input type="hidden" name="alias" value="{{.Alias}}" />
  36. <input type="hidden" name="to" value="{{.Next}}" />
  37. <input type="password" autocomplete="new-password" name="password" tabindex="1" autofocus />
  38. <p><input type="submit" value="Enter" /></p>
  39. </form>
  40. </div>
  41. </div>
  42. <footer>
  43. <hr />
  44. <nav dir="ltr">
  45. <a class="home pubd" href="/">{{.SiteName}}</a> &middot; powered by <a style="margin-left:0" href="https://writefreely.org">writefreely</a>
  46. </nav>
  47. </footer>
  48. </body>
  49. {{if and .Script .CanShowScript}}<script type="text/javascript">{{.ScriptDisplay}}</script>{{end}}
  50. <script src="/js/h.js"></script>
  51. <script src="/js/postactions.js"></script>
  52. <script type="text/javascript">
  53. try {
  54. WebFontConfig = {
  55. custom: { families: [ 'Lora:400,700:latin', 'Open+Sans:400,700:latin' ], urls: [ '/css/fonts.css' ] }
  56. };
  57. (function() {
  58. var wf = document.createElement('script');
  59. wf.src = '/js/webfont.js';
  60. wf.type = 'text/javascript';
  61. wf.async = 'true';
  62. var s = document.getElementsByTagName('script')[0];
  63. s.parentNode.insertBefore(wf, s);
  64. })();
  65. } catch (e) {}
  66. </script>
  67. </html>{{end}}