UNPKG

md-toy-blog

Version:

Very simple Markdown blog: serves your md as html without fancy databases. You will only spend time writing the actual data.

28 lines (26 loc) 836 B
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>{{ siteTitle }}</title> <meta name="description" content="Simplest Blog in Nodejs"> <meta name="author" content="Guillermo Pages"> <link rel="stylesheet" href="/css/styles.css?v=1.0"> <link rel="stylesheet" href="/css/highlight-js-github.css"> </head> <body> <div id="main-container"> <header> <h1>{{ siteTitle }}</h1> </header> <div id="content"> <ul class="posts-list"> {{posts as post <li><a href="{{ blogUrlPathPrefix }}{{ post.attributes.slug }}">{{ post.attributes.title }}</a><div class="post-preview">{{ post.bodyHtml }}</div></li> posts}} </ul> </div> </div> </body> <script type="text/javascript" src='/js/alert.js'></script> </html>