desirae.js/partials.yml

59 lines
1.5 KiB
YAML
Raw Normal View History

2015-01-08 22:26:55 +00:00
---
2015-01-09 04:44:11 +00:00
pages_list: >
<li{{# active }} class="active"{{/ active }}><a{{# active }} class="active"{{/ active }}
href="{{{ path }}}"
>{{ title }}</a></li>
2015-01-08 22:26:55 +00:00
# [{ 'year': year,
# 'months' : [{ 'month' : month,
# 'pages': [{}, {}, ..] }, ..] }, ..]
posts_collate: |
{{# years }}
2015-01-09 03:29:58 +00:00
<h2>{{ year }}</h2>
2015-01-08 22:26:55 +00:00
{{> posts_collate_year }}
{{/ years }}
posts_collate_year: |
{{# months }}
2015-01-09 03:29:58 +00:00
<h3>{{ month }}</h3>
2015-01-08 22:26:55 +00:00
{{> posts_collate_month }}
{{/ months }}
posts_collate_month: |
<ul>
2015-01-09 03:29:58 +00:00
{{# pages }}
2015-01-08 22:26:55 +00:00
{{> posts_collate_pages }}
{{/ pages }}
2015-01-09 03:29:58 +00:00
</ul>
2015-01-08 22:26:55 +00:00
posts_collate_pages: |
2015-01-09 03:29:58 +00:00
<li><span>{{ year }}-{{ month }}-{{ day }}</span> »
<a href="{{{url}}}"
>{{ title }}</a></li>
google_prettify: |
<script src="http://cdnjs.cloudflare.com/ajax/libs/prettify/188.0.0/prettify.js"></script>
<script>
var pres = document.getElementsByTagName("pre");
for (var i=0; i < pres.length; ++i) {
pres[i].className = "prettyprint {{#linenums}}linenums{{/linenums}}";
}
prettyPrint();
</script>
<!-- end Google Prettify -->
google_ads: |
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', {{#id}}'{{.}}'{{/id}}]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>