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.
 
 
 
 
 

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