Browse Source

Start actually filling out mustache templates

Getty Ritter 1 year ago
parent
commit
79f1fb29cd
3 changed files with 16 additions and 1 deletions
  1. 10 0
      templates/link.mustache
  2. 5 0
      templates/linklist.mustache
  3. 1 1
      templates/main.mustache

+ 10 - 0
templates/link.mustache

@@ -0,0 +1,10 @@
+<div class="link">
+  <div class="text"><a href="{{url}}">{{name}}</a></div>
+  <div class="url"><a href="{{url}}">{{url}}</a></div>
+  <div class="taglist">{{#tags}}
+    {{#tag}}
+      <span class="tag"><a href="{{url}}">{{name}}</a></span>
+    {{/tag}}
+  {{/tags}}</div>
+  <div class="datetime"><a href="{{link_url}}">{{created}}</a></div>
+</div>

+ 5 - 0
templates/linklist.mustache

@@ -0,0 +1,5 @@
+<div class="linklist">
+  {{#links}}
+    {{>link}}
+  {{/links}}
+</div>

+ 1 - 1
templates/main.mustache

@@ -10,5 +10,5 @@
     <div class="content">
       {{{ content }}}
     </div>
-  </body>
+ </body>
 </html>