forked from rphunt/eleventy-guide-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
to-do.txt
52 lines (40 loc) · 1.27 KB
/
to-do.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
json data **
pagination **
mention YAML **
includes **
--serve **
template languages liquid, nunjucks, ejs. **
filters **
config file **
date formatting **
shortcodes **
postlist urls **
moment timezone **
switch to nunjucks **
pass thru files?
v 10 pagination **
gulp **
v 10 pagination with njk and js **
json with html **
pass through **
clearer explanation of template **
markdown file as a template **
addcollection templateContent **
shortcode examples fix **
{{ content }} in HTML and NJK templates
collection from json - hack?
data contained in collections and objects
transforms?
==================================================
var dateTmp = new Date(dateIn);
var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var yearOut = dateTmp.getFullYear().toString();
var monthOut = months[dateTmp.getMonth()];
var dayOut = ((dateTmp.getDate() < 10) ? '0' : '') + dateTmp.getDate();
var hourOut = ((dateTmp.getHours() < 10) ? '0' : '') + dateTmp.getHours();
var minOut = ((dateTmp.getMinutes() < 10) ? '0' : '') + dateTmp.getMinutes();
var dateOut = monthOut + ' ' + dayOut + ', ' + yearOut + ' - ' + hourOut + ':' + minOut;
return dateOut;
for njk
permalink - pagination + 1
{% include "foot.njk" %}