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.
 
 
 
 

222 lines
8.0 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 Solar -->
  16. <link rel="stylesheet" type="text/css" media="screen" href="/solar/ui.css">
  17. <link rel="stylesheet" type="text/css" media="print" href="/solar/print.css">
  18. <link rel="stylesheet" type="text/css" href="/solar/monokai.css">
  19. <link rel="stylesheet" type="text/css" href="/solar/vim-syntax.css">
  20. <link rel="alternate" type="application/rss+xml" title="Kirsle's RSS Feed" href="/blog/rss">
  21. </head>
  22. <body>
  23. <div class="mobile-nav">
  24. <a href="#navbar" class="btn btn-primary"><i class="fas fa-bars"></i></a>
  25. </div>
  26. <div class="k-supernova"></div>
  27. <div class="container-fluid">
  28. <div class="row">
  29. <div class="col-12 col-lg-10 col-xl-8">
  30. <div class="k-kirsle" onclick="self.location='/'"></div>
  31. </div>
  32. </div>
  33. <div class="row">
  34. <div class="order-1 order-lg-12 col-12 col-lg-10 col-xl-8">
  35. <div class="k-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 }}
  55. <p>
  56. <strong>Admin:</strong> [<a href="/admin/editor?file={{ or .Data.MarkdownFile TemplateName }}">edit this page</a>]
  57. </p>
  58. {{ end }}
  59. <div class="k-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 {{ printf "%.4f" .RequestDuration.Seconds }}s.
  63. </div>
  64. </div>
  65. </div>
  66. <div class="order-12 order-xl-1 col-12 col-xl-2">
  67. <div class="k-navpanel mb-4" id="navbar">
  68. <div class="k-section">Kirsle</div>
  69. <ul>
  70. <li>&#0187; <a href="/">Homepage</a> (<a href="/blog.rss">RSS</a>)</li>
  71. <li>&#0187; <a href="/about">About Me</a></li>
  72. <!-- <li>&#0187; <a href="/photos/albums">Photo Albums</a></li> -->
  73. <li>&#0187; <a href="/wiki/Main-Page">Wiki</a></li>
  74. <li>&#0187; <a href="/guestbook">Guestbook</a></li>
  75. <li>&#0187; <a href="/contact">Contact Me</a></li>
  76. </ul>
  77. <div class="k-section">Blog Tags</div>
  78. {{ RenderTags .Request false }}
  79. <div class="k-section">Creativity</div>
  80. <ul>
  81. <li>&#0187; <a href="/rendering">3D Renderings</a></li>
  82. <li>&#0187; <a href="/flash">Flash Animation</a></li>
  83. <li>&#0187; <a href="/javascript">JavaScript</a></li>
  84. <li>&#0187; <a href="/fonts">Fonts</a></li>
  85. <li>&#0187; <a href="/doc/">Tutorials</a></li>
  86. <li>&#0187; <a href="/designs">Web Design</a></li>
  87. </ul>
  88. <div class="k-section">Software</div>
  89. <ul>
  90. <li>&#0187; <a href="/rivescript">RiveScript</a></li>
  91. <li>&#0187; <a href="/errorgen">Error Generator</a></li>
  92. <li>&#0187; <a href="/tkcalc">Tk Calculator</a></li>
  93. <li>&#0187; <a href="http://sh.kirsle.net/" target="_blank">Terminal Apps</a></li>
  94. <li>&#0187; <a href="/pccc">CyanChat Client</a></li>
  95. </ul>
  96. <div class="k-section">Web Tools</div>
  97. <ul>
  98. <li>&#0187; <a href="/wizards/ttf2eot.cgi">TTF to EOT</a></li>
  99. <li>&#0187; <a href="/wizards/ps1.html">Bash $PS1 Prompt</a></li>
  100. <li>&#0187; <a href="/wizards/fader.cgi">Text Fader</a></li>
  101. <li>&#0187; <a href="/wizards/favicon.cgi">Favicons</a></li>
  102. <li>&#0187; <a href="/wizards/distance.cgi">Distance Calc</a></li>
  103. <li>&#0187; <a href="/wizards/translator.html">Azulian Translater</a></li>
  104. <li>&#0187; <a href="/wizards/xbmask.cgi">XBM Masks</a></li>
  105. <li>&#0187; <a href="/wizards/flask-session.cgi">Flask Session</a></li>
  106. </ul>
  107. <div class="k-section">Subdomains</div>
  108. <ul>
  109. <li>&#0187; <a href="https://rophako.kirsle.net/">Rophako CMS</a></li>
  110. <li>&#0187; <a href="https://mc.kirsle.net/">Minecraft Server</a></li>
  111. <li>&#0187; <a href="https://rpm.kirsle.net/">Linux RPMs</a></li>
  112. </ul>
  113. <div class="k-section">Miscellany</div>
  114. <ul>
  115. <li>&#0187; <a href="/firered">Pok&#0233;mon Fuchsia City</a></li>
  116. <li>&#0187; <a href="/msdos">DOS and Windows</a></li>
  117. <li>&#0187; <a href="/raspberrypi">Raspberry Pi</a></li>
  118. </ul>
  119. <div class="k-section">Social Links</div>
  120. <ul>
  121. <li>&#0187; <a href="https://www.google.com/+NoahPetherbridge" rel="me">Google+</a></li>
  122. <li>&#0187; <a href="https://www.facebook.com/noah.lee.petherbridge" rel="me">Facebook</a></li>
  123. <li>&#0187; <a href="https://twitter.com/kirsle" rel="me">Twitter</a></li>
  124. <li>&#0187; <a href="https://www.instagram.com/kirsle" rel="me">Instagram</a></li>
  125. <li>&#0187; <a href="https://myspace.com/kirsle" rel="me">MySpace</a></li>
  126. <li>&#0187; <a href="https://github.com/kirsle" rel="me">Github</a></li>
  127. <li>&#0187; <a href="http://search.cpan.org/~kirsle" rel="me">CPAN</a></li>
  128. <li>&#0187; <a href="https://www.npmjs.org/~kirsle" rel="me">npm</a></li>
  129. </ul>
  130. <div class="k-section">Fan Club</div>
  131. <ul>
  132. {{ if .LoggedIn }}
  133. <li>&#0164; Hi, <big><a href="/account">{{ or .CurrentUser.Name .CurrentUser.Username }}</a></big></li>
  134. {{ if .CurrentUser.Admin }}
  135. <li>&#0187; <a href="/admin">Admin Center</a></li>
  136. {{ end }}
  137. <li>&#0187; <a href="/blog/edit">Update Blog</a></li>
  138. <li>&#0187; <a href="/blog/drafts">Drafts</a>/<a href="/blog/private">Private</a></li>
  139. <li>&#0187; <a href="/logout">Log Out</a>
  140. {{ else }}
  141. <li id="login-link">&#0187; <a href="/login" class="login-link">Log In</a></li>
  142. {{ end }}
  143. </ul>
  144. <div id="login-inline" style="display: none">
  145. <form action="/login" method="POST">
  146. <input type="hidden" name="_csrf" value="{{ .CSRF }}">
  147. <input type="hidden" name="next" value="{{ .Path }}">
  148. <input type="text" class="form-control" size="4" name="username" style="display: inline; width: 45%">
  149. <input type="password" class="form-control" size="4" name="password" style="display: inline; width: 45%">
  150. <br>
  151. <button type="submit" class="btn btn-primary" style="width: 100%">Log In</button>
  152. </form>
  153. </div>
  154. <div class="center">
  155. <a href="https://www.python.org/" target="_blank">
  156. <img src="/static/images/python.png" width="80" height="15" alt="Python powered">
  157. </a><br>
  158. <a href="https://validator.w3.org/check?uri=referer">
  159. <img src="/static/images/html5.png" width="80" height="15" alt="W3C Valid HTML5">
  160. </a><br>
  161. <a href="https://jigsaw.w3.org/css-validator/validator?uri=http://www.kirsle.com/solar/screen.css">
  162. <img src="/static/images/css3.png" width="80" height="15" alt="W3C Valid CSS3">
  163. </a><p>
  164. <a href="https://www.digitalocean.com/?refcode=ea01734d3fc7" target="_blank">
  165. <img src="/static/images/digital-ocean.png" width="140" height="39" alt="Proudly hosted by DigitalOcean">
  166. </a>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. <script type="text/javascript" src="/js/jquery-2.1.0.min.js"></script>
  173. <script type="text/javascript" src="/js/offsite.js"></script>
  174. <script type="text/javascript" src="/js/bootstrap.min.js"></script>
  175. <script type="text/javascript" src="/vendor/FontAwesome/js/fontawesome-all.min.js"></script>
  176. <script type="text/javascript">
  177. $(document).ready(function() {
  178. $(".login-link").click(function() {
  179. $("#login-link").hide();
  180. $("#login-inline").show(500);
  181. return false;
  182. });
  183. });
  184. </script>
  185. {{ template "scripts" }}
  186. </body>
  187. </html>
  188. {{ end }}