The web design and pages for my personal website.
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.
 
 
 
 

209 lines
7.2 KiB

  1. {{ define "title" }}{{ end }}
  2. {{ define "scripts" }}{{ end }}
  3. {{ define "layout" }}
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7. <meta charset="utf-8">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <title>{{ template "title" . }} - {{ .Title }}</title>
  11. <!-- Bootstrap -->
  12. <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
  13. <!-- FontAwesome -->
  14. <link rel="stylesheet" type="text/css" href="/vendor/FontAwesome/css/fa-svg-with-js.css">
  15. <!-- Kirsle.net Flare -->
  16. <link rel="stylesheet" type="text/css" href="/flare/ui.css">
  17. <link rel="stylesheet" type="text/css" href="/solar/monokai.css">
  18. <link rel="stylesheet" type="text/css" href="/solar/vim-syntax.css">
  19. <link rel="alternate" type="application/rss+xml" title="Kirsle's RSS Feed" href="/blog/rss">
  20. </head>
  21. <body>
  22. <div class="mobile-nav">
  23. <a href="#navbar" class="btn btn-primary"><i class="fas fa-bars"></i></a>
  24. </div>
  25. <div class="brand d-lg-none">
  26. <a href="/">
  27. <img src="/flare/cjk-48.png" width="48" height="48" alt="Kirsle.net logo">
  28. Kirsle.net
  29. </a>
  30. </div>
  31. <div class="wallpaper"></div>
  32. <div class="container-fluid">
  33. <div class="row">
  34. <div class="order-1 order-lg-12 col-12 col-lg-10 col-xl-8">
  35. <div class="content-panel mb-4">
  36. {{ if .SetupNeeded }}
  37. <div class="alert alert-success">
  38. Your web blog needs to be set up!
  39. Please <a href="/initial-setup">click here</a> to
  40. configure your blog.
  41. </div>
  42. {{ end }}
  43. {{ range .Flashes }}
  44. <div class="alert alert-success">
  45. {{ . }}
  46. </div>
  47. {{ end }}
  48. {{ if .Error }}
  49. <div class="alert alert-danger">
  50. <strong>Error:</strong> {{ .Error }}
  51. </div>
  52. {{ end }}
  53. {{ template "content" . }}
  54. {{ if and .CurrentUser.Admin .Editable (ne .TemplatePath ".markdown.gohtml") }}
  55. <p>
  56. <strong>Admin:</strong> [<a href="/admin/editor?file={{ .TemplatePath }}">edit this page</a>]
  57. </p>
  58. {{ end }}
  59. <div class="mt-4 copyright">
  60. Copyright &copy; {{ Now.Format "2006" }} Noah Petherbridge &mdash; All rights reserved<br>
  61. Hosted by <a href="https://www.digitalocean.com/?refcode=ea01734d3fc7">DigitalOcean</a><br>
  62. Page generated in <code>{{ printf "%.4f" .RequestDuration.Seconds }}s</code>.
  63. </div>
  64. </div>
  65. </div>
  66. <div id="navbar" class="nav-panel order-12 order-lg-1 col-12 col-lg-2">
  67. <div class="brand">
  68. <a href="/">
  69. <img src="/flare/cjk-48.png" width="48" height="48" alt="Kirsle.net logo">
  70. Kirsle.net
  71. </a>
  72. </div>
  73. <div class="mb-4 center d-lg-none">
  74. <a href="#"><i class="fa fa-arrow-up"></i> Back to Top</a>
  75. </div>
  76. <div class="mb-4">
  77. <ul class="list-unstyled">
  78. <li>&#0187; <a href="/">Homepage</a> (<a href="/blog.rss">RSS</a>)</li>
  79. <li>&#0187; <a href="/about">About Me</a></li>
  80. <!-- <li>&#0187; <a href="/photos/albums">Photo Albums</a></li> -->
  81. <li>&#0187; <a href="/wiki/Main-Page">My Wiki</a></li>
  82. <li>&#0187; <a href="/guestbook">Guestbook</a></li>
  83. <li>&#0187; <a href="/contact">Contact Me</a></li>
  84. <li>&#0187; <a href="/tagged">Blog Tags</a></li>
  85. <li>&#0187; <a href="/archive">Archive</a></li>
  86. </ul>
  87. <h2>Creativity</h2>
  88. <ul class="list-unstyled">
  89. <li>&#0187; <a href="/rendering">3D Renderings</a></li>
  90. <li>&#0187; <a href="/flash">Flash Animations</a></li>
  91. <li>&#0187; <a href="/javascript">JavaScript Games</a></li>
  92. <li>&#0187; <a href="/fonts">TrueType Fonts</a></li>
  93. <li>&#0187; <a href="/designs">Past Web Designs</a></li>
  94. </ul>
  95. <h2>Web Tools</h2>
  96. <ul class="list-unstyled">
  97. <li>&#0187; <a href="/wizards/ttf2eot.cgi">TTF to EOT Font Converter</a></li>
  98. <li>&#0187; <a href="/wizards/ps1.html">Bash $PS1 Prompt Generator</a></li>
  99. <li>&#0187; <a href="/wizards/fader.cgi">Text Color Fader</a></li>
  100. <li>&#0187; <a href="/wizards/translator.html">Azulian Translater</a></li>
  101. <li>&#0187; <a href="/wizards/flask-session.cgi">Flask Session Viewer</a></li>
  102. </ul>
  103. <h2>Software</h2>
  104. <ul class="list-unstyled">
  105. <li>&#0187; <a href="/tagged/rivescript">RiveScript</a></li>
  106. <li>&#0187; <a href="/errorgen">Error Message Generator</a></li>
  107. <li>&#0187; <a href="/tkcalc">Perl/Tk Calculator</a></li>
  108. <li>&#0187; <a href="/pccc">CyanChat Client</a></li>
  109. </ul>
  110. <h2>Out of Network</h2>
  111. <ul class="list-unstyled">
  112. <li>&#0187; <a href="https://www.google.com/+NoahPetherbridge" rel="me">Google+</a></li>
  113. <li>&#0187; <a href="https://www.facebook.com/noah.lee.petherbridge" rel="me">Facebook</a></li>
  114. <li>&#0187; <a href="https://twitter.com/kirsle" rel="me">Twitter</a></li>
  115. <li>&#0187; <a href="https://www.instagram.com/kirsle" rel="me">Instagram</a></li>
  116. <li>&#0187; <a href="https://myspace.com/kirsle" rel="me">MySpace</a></li>
  117. <li>&#0187; <a href="https://github.com/kirsle" rel="me">Github</a></li>
  118. <li>&#0187; <a href="http://search.cpan.org/~kirsle" rel="me">CPAN</a></li>
  119. <li>&#0187; <a href="https://www.npmjs.org/~kirsle" rel="me">npm</a></li>
  120. </ul>
  121. <div class="center">
  122. <a href="https://validator.w3.org/check?uri=referer">
  123. <img src="/static/images/html5.png" width="80" height="15" alt="W3C Valid HTML5">
  124. </a><br>
  125. <a href="https://jigsaw.w3.org/css-validator/validator?uri=http://www.kirsle.com/solar/screen.css">
  126. <img src="/static/images/css3.png" width="80" height="15" alt="W3C Valid CSS3">
  127. </a><p>
  128. <a href="https://www.digitalocean.com/?refcode=ea01734d3fc7" target="_blank">
  129. <img src="/static/images/digital-ocean.png" width="140" height="39" alt="Proudly hosted by DigitalOcean">
  130. </a>
  131. </div>
  132. <ul class="list-unstyled">
  133. {{ if .LoggedIn }}
  134. <li>&#0164; Hi, <big><a href="/account">{{ or .CurrentUser.Name .CurrentUser.Username }}</a></big></li>
  135. {{ if .CurrentUser.Admin }}
  136. <li>&#0187; <a href="/admin">Admin Center</a></li>
  137. {{ end }}
  138. <li>&#0187; <a href="/blog/edit">Update Blog</a></li>
  139. <li>&#0187; <a href="/blog/drafts">Drafts</a>/<a href="/blog/private">Private</a></li>
  140. <li>&#0187; <a href="/logout">Log Out</a>
  141. {{ else }}
  142. <li id="login-link">
  143. <small><a href="/login" class="login-link text-muted">Log In</a></small>
  144. </li>
  145. {{ end }}
  146. </ul>
  147. <div id="login-inline" style="display: none">
  148. <form action="/login" method="POST">
  149. <input type="hidden" name="_csrf" value="{{ .CSRF }}">
  150. <input type="hidden" name="next" value="{{ .Path }}">
  151. <input type="text" class="form-control" size="4" name="username" style="display: inline; width: 46%">
  152. <input type="password" class="form-control" size="4" name="password" style="display: inline; width: 46%">
  153. <br>
  154. <button type="submit" class="btn btn-primary" style="width: 100%">Log In</button>
  155. </form>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <script src="/js/jquery-2.1.0.min.js"></script>
  162. <script src="/js/offsite.js"></script>
  163. <script src="/js/bootstrap.min.js"></script>
  164. <script src="/vendor/FontAwesome/js/fontawesome-all.min.js"></script>
  165. <script>
  166. $(document).ready(function() {
  167. $(".login-link").click(function() {
  168. $("#login-link").hide();
  169. $("#login-inline").show(500);
  170. return false;
  171. });
  172. });
  173. </script>
  174. {{ template "scripts" }}
  175. </body>
  176. </html>
  177. {{ end }}