diff options
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/feed.html | 8 | ||||
-rw-r--r-- | src/templates/footer.html | 6 | ||||
-rw-r--r-- | src/templates/header.html | 2 | ||||
-rw-r--r-- | src/templates/misc.html | 5 | ||||
-rw-r--r-- | src/templates/navigation.html | 18 |
5 files changed, 23 insertions, 16 deletions
diff --git a/src/templates/feed.html b/src/templates/feed.html index 2158f3e..3ea4f16 100644 --- a/src/templates/feed.html +++ b/src/templates/feed.html @@ -1,6 +1,9 @@ <div class="feed"> {{#each posts}} <div class="card"> + {{#if this.showTitle}} + <h1 class="card-title">{{this.title}}</h1> + {{/if}} <p class="card-text">{{{this.description}}}</p> <div class="card-img"> {{#each this.images}} @@ -18,7 +21,10 @@ <a class="tag" href="/tags/{{this}}">{{this}}</a> {{/each}} </span> + <span class="cool btn btn-secondary" onclick="likePost('{{this.type}}', {{this.id}})" id="btn_{{this.type}}_{{this.id}}"> + 👍 ({{this.likes}}) + </span> </p> </div> {{/each}} -</div>
\ No newline at end of file +</div> diff --git a/src/templates/footer.html b/src/templates/footer.html index 617b5fa..6dc5a48 100644 --- a/src/templates/footer.html +++ b/src/templates/footer.html @@ -11,4 +11,8 @@ <span class="spacer"></span> <br> </div> -</footer>
\ No newline at end of file + <div> + <noscript>Enable javascript for a background image</noscript> + <script src="/js/background.js"></script> + </div> +</footer> diff --git a/src/templates/header.html b/src/templates/header.html index 2ceebfd..1989b04 100644 --- a/src/templates/header.html +++ b/src/templates/header.html @@ -2,4 +2,4 @@ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="icon" href="/favicon.svg"> <link rel="alternate icon" href="/favicon.ico"> - +<script src="/js/like.js"></script> diff --git a/src/templates/misc.html b/src/templates/misc.html index ee641d1..3f0aee8 100644 --- a/src/templates/misc.html +++ b/src/templates/misc.html @@ -8,16 +8,13 @@ </head> <body> - + <h1> <a class="navigation" href="/" title="marks.kitchen"><</a> Miscellany </h1> {{> navigation}} <div> - <a href="projects" class="btn btn-primary">Projects</a> - </div> - <div> <a href="chess" class="btn btn-primary">Chess</a> </div> <div> diff --git a/src/templates/navigation.html b/src/templates/navigation.html index 6bb10f1..b101bab 100644 --- a/src/templates/navigation.html +++ b/src/templates/navigation.html @@ -1,10 +1,10 @@ <nav class="titlebar"> - <div> - <a href="/" class="btn btn-primary">Home</a> - <a href="/bread" class="btn btn-primary">Bread</a> - <a href="/blog" class="btn btn-primary">Blog</a> - <a href="https://games.marks.kitchen" class="btn btn-primary">Games</a> - <a href="/email" class="btn btn-primary">Email</a> - <a href="/misc" class="btn btn-primary">Misc</a> - </div> -</nav>
\ No newline at end of file + <a href="/" class="btn btn-primary">Home</a> + <a href="/bread" class="btn btn-primary">Bread</a> + <a href="/blog" class="btn btn-primary">Blog</a> + <a href="https://games.marks.kitchen" class="btn btn-primary">Games</a> + <a href="/email" class="btn btn-primary">Email</a> + <a href="/projects" class="btn btn-primary">Projects</a> + <a href="https://wiki.marks.kitchen/public" class="btn btn-primary">Wiki</a> + <a href="/misc" class="btn btn-primary">Misc</a> +</nav> |