add new templates
This commit is contained in:
parent
5de6840532
commit
5c8aea9277
6 changed files with 45 additions and 20 deletions
|
@ -1,10 +1,10 @@
|
||||||
running
|
running
|
||||||
<a href="{{bingus_info.repository}}" target="_blank">{{bingus_info.name}}</a>
|
<a href="{{bingus_info.repository}}" target="_blank">{{bingus_info.name}}</a>
|
||||||
v{{bingus_info.version}}
|
v{{bingus_info.version}}
|
||||||
{{#if rendered_in}}
|
{{#if perf}}
|
||||||
<b> - </b>
|
<b> - </b>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#each rendered_in}}
|
{{#each perf}}
|
||||||
{{#if (eq @key "Rendered")}}
|
{{#if (eq @key "Rendered")}}
|
||||||
<span class="tooltipped" title="parsing metadata took {{duration this.parsed}}">parsed meta</span>
|
<span class="tooltipped" title="parsing metadata took {{duration this.parsed}}">parsed meta</span>
|
||||||
and
|
and
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="description" content="{{title}}" />
|
<meta name="description" content="{{style.title}}" />
|
||||||
<meta property="og:title" content="{{title}}" />
|
<meta property="og:title" content="{{style.title}}" />
|
||||||
<meta property="og:description" content="{{description}}" />
|
<meta property="og:description" content="{{style.description}}" />
|
||||||
<meta name="keywords" content="{{joined_tags}}" />
|
<meta name="keywords" content="{{joined_tags}}" />
|
||||||
{{#if (ne color null)}}
|
{{#if (ne color null)}}
|
||||||
<meta name="theme-color" content="{{style.color}}" />
|
<meta name="theme-color" content="{{style.color}}" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<title>{{title}}</title>
|
<title>{{style.title}}</title>
|
||||||
<link rel="stylesheet" href="/static/style.css" />
|
<link rel="stylesheet" href="/static/style.css" />
|
||||||
{{#if rss}}
|
{{#if rss}}
|
||||||
<link rel="alternate" type="application/rss+xml" title="{{title}}" href="/feed.xml" />
|
<link rel="alternate" type="application/rss+xml" title="{{style.title}}" href="/feed.xml" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if js}}
|
{{#if js}}
|
||||||
<script src="/static/date.js" defer></script>
|
<script src="/static/date.js" defer></script>
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
<script src="/static/main.js" defer></script>
|
<script src="/static/main.js" defer></script>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="cool">
|
||||||
<main>
|
<main>
|
||||||
{{>title}}
|
{{>title}}
|
||||||
<h2>posts</h2>
|
<h2>posts</h2>
|
||||||
|
@ -36,15 +36,7 @@
|
||||||
</form>
|
</form>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div id="posts">
|
<div id="posts">
|
||||||
{{#each posts}}
|
{{>post_list}}
|
||||||
<div class="post">
|
|
||||||
<a href="/posts/{{name}}"><b>{{title}}</b></a>
|
|
||||||
<span class="post-author">- by {{author}}</span>
|
|
||||||
<br />
|
|
||||||
{{description}}<br />
|
|
||||||
{{>post_table post style=@root.style}}
|
|
||||||
</div>
|
|
||||||
{{else}} there are no posts right now. check back later! {{/each}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
<a href="/">back to home</a>
|
<a href="/">back to home</a>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
{{{rendered}}}
|
{{{body}}}
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
{{>footer}}
|
{{>footer}}
|
||||||
|
|
10
templates/post_list.hbs
Normal file
10
templates/post_list.hbs
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{{#each posts}}
|
||||||
|
<div class="post">
|
||||||
|
<section>
|
||||||
|
<a href="/posts/{{name}}"><b>{{title}}</b></a>
|
||||||
|
<span class="post-author">- by {{author}}</span>
|
||||||
|
</section>
|
||||||
|
<section role="paragraph">{{description}}</section>
|
||||||
|
{{>post_table post style=@root.style}}
|
||||||
|
</div>
|
||||||
|
{{else}} there are no posts right now. check back later! {{/each}}
|
23
templates/posts.hbs
Normal file
23
templates/posts.hbs
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>{{title}}</title>
|
||||||
|
<link rel="stylesheet" href="/static/style.css" />
|
||||||
|
{{#if rss}}
|
||||||
|
<link rel="alternate" type="application/rss+xml" title="{{title}}" href="/feed.xml" />
|
||||||
|
{{/if}}
|
||||||
|
{{#if js}}
|
||||||
|
<script src="/static/date.js" defer></script>
|
||||||
|
<script src="/static/sort.js" defer></script>
|
||||||
|
<script src="/static/main.js" defer></script>
|
||||||
|
{{/if}}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<div id="posts">
|
||||||
|
{{>post_list}}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -1,2 +1,2 @@
|
||||||
<h1>{{title}}</h1>
|
<h1>{{style.title}}</h1>
|
||||||
<p>{{description}}</p>
|
<p>{{style.description}}</p>
|
||||||
|
|
Loading…
Reference in a new issue