diff options
author | Martin Ashby <martin@ashbysoft.com> | 2024-08-10 20:19:17 +0100 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2024-08-10 20:19:17 +0100 |
commit | e05f4b47ecd0cb0dac273afc420b51768bedcc5e (patch) | |
tree | 5d6dac85388af71e30a032670f3b9622e6535604 /layouts/templates | |
parent | 8a0464bcf2582084bd765f67de6f283545af2c7d (diff) | |
download | mfashby.net-e05f4b47ecd0cb0dac273afc420b51768bedcc5e.tar.gz mfashby.net-e05f4b47ecd0cb0dac273afc420b51768bedcc5e.tar.bz2 mfashby.net-e05f4b47ecd0cb0dac273afc420b51768bedcc5e.tar.xz mfashby.net-e05f4b47ecd0cb0dac273afc420b51768bedcc5e.zip |
Migrate to zine 0.3.0
Diffstat (limited to 'layouts/templates')
-rw-r--r-- | layouts/templates/main.shtml (renamed from layouts/templates/main.html) | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/layouts/templates/main.html b/layouts/templates/main.shtml index 5d99d63..c9369fc 100644 --- a/layouts/templates/main.html +++ b/layouts/templates/main.shtml @@ -4,32 +4,29 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title var="$page.title.suffix('|', $site.title)"></title> - <link rel="stylesheet" href="/css/style.css"/> - <link rel="stylesheet" href="/css/fonts.css"/> + <link rel="stylesheet" href="/css/style.css"> + <link rel="stylesheet" href="/css/fonts.css"> </head> - <body> <nav> - <ul class="menu"> - <li><a href="/posts">home</a></li> - <li><a href="/about">about</a></li> - <li><a href="/projects">projects</a></li> - <li><a href="/index.xml">rss</a></li> - </ul> - <hr/> + <ul class="menu"> + <li><a href="/posts">home</a></li> + <li><a href="/about">about</a></li> + <li><a href="/projects">projects</a></li> + <li><a href="/index.xml">rss</a></li> + </ul> + <hr> </nav> - <div id="main"> - <super/> + <super> </div> - <footer> - <div if="$page.custom.get('comments', false)"> + <div if="$page.custom.get('comments', false)"> <h2>comments</h2> <div style="visibility: hidden" id="comments">comments go here</div> <div style="visibility: hidden" id="comment_form">comment form goes here</div> <script> - let comments = document.getElementById("comments"); + let comments = document.getElementById("comments"); let urlParam = new URLSearchParams(); urlParam.append("url", document.location.href); fetch(document.location.origin + "/api/comment?" + urlParam.toString()) @@ -47,7 +44,7 @@ }); </script> <noscript>Comments disabled without javascript!</noscript> - </div> + </div> </footer> </body> -</html> +</html>
\ No newline at end of file |