desirae.js/partials.yml

59 lines
1.5 KiB
YAML

---
pages_list: >
<li{{# active }} class="active"{{/ active }}><a{{# active }} class="active"{{/ active }}
href="{{{ path }}}"
>{{ title }}</a></li>
# [{ 'year': year,
# 'months' : [{ 'month' : month,
# 'pages': [{}, {}, ..] }, ..] }, ..]
posts_collate: |
{{# years }}
<h2>{{ year }}</h2>
{{> posts_collate_year }}
{{/ years }}
posts_collate_year: |
{{# months }}
<h3>{{ month }}</h3>
{{> posts_collate_month }}
{{/ months }}
posts_collate_month: |
<ul>
{{# pages }}
{{> posts_collate_pages }}
{{/ pages }}
</ul>
posts_collate_pages: |
<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>