layouts/devlog.shtml

main
befree/layouts/devlog.shtml history · blame · raw

45 lines · 882 bytes

 1<extend template="base.shtml">
 2<head id="head">
 3	<style>
 4		.feed {
 5			margin-top: 2em;
 6		}
 7		
 8		.feed>div {
 9			margin: 0 -20px;
10			padding: 5px 20px;
11			margin-bottom: 1em;
12		}
13		
14		.feed>div>h2 {
15			margin-top: 0.4em;
16		}
17		
18		.feed>div[id]:target {
19			animation: pulse-div 2s ease-in-out 1 forwards;
20		}
21		
22		@keyframes pulse-div {
23			
24			0%,
25			100% {
26				background-color: #222;
27			}
28			
29			50% {
30				background-color: #111;
31			}
32		}
33	</style>
34</head>
35<body id="body">
36	<h1 class="title" :text="$page.title"></h1>
37	<div :html="$page.contentSection('about')"></div>
38	<div class="feed" :loop="$page.contentSections().slice(1)">
39		<div id="$loop.it.id">
40			<span :text="$loop.it.id.parseDate().format('January 02, 2006')"></span>
41			<h2><a href="$loop.it.id.prefix('#')" :html="$loop.it.heading()"></a></h2>
42			<ctx :html="$loop.it.htmlNoHeading()"></ctx>
43		</div>
44	</div>
45</body>