mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 18:00:06 +01:00
use custom time element from github
This commit is contained in:
parent
0451a0c27d
commit
19f1ab745b
@ -106,6 +106,9 @@ module.exports = function(grunt){
|
|||||||
'<%= config.site %>/<%= config.assets.js %>/picturefill.min.js': [
|
'<%= config.site %>/<%= config.assets.js %>/picturefill.min.js': [
|
||||||
'bower_components/picturefill/dist/picturefill.js'
|
'bower_components/picturefill/dist/picturefill.js'
|
||||||
],
|
],
|
||||||
|
'<%= config.site %>/<%= config.assets.js %>/CustomElements.min.js': [
|
||||||
|
'bower_components/webcomponentsjs/CustomElements.js'
|
||||||
|
],
|
||||||
'<%= config.site %>/<%= config.assets.js %>/kremalicious3.min.js': [
|
'<%= config.site %>/<%= config.assets.js %>/kremalicious3.min.js': [
|
||||||
'bower_components/jquery/dist/jquery.js',
|
'bower_components/jquery/dist/jquery.js',
|
||||||
'bower_components/jquery-infinite-scroll/jquery.infinitescroll.js',
|
'bower_components/jquery-infinite-scroll/jquery.infinitescroll.js',
|
||||||
@ -113,6 +116,7 @@ module.exports = function(grunt){
|
|||||||
'bower_components/imagesloaded/imagesloaded.js',
|
'bower_components/imagesloaded/imagesloaded.js',
|
||||||
'bower_components/simple-jekyll-search/dest/jekyll-search.js',
|
'bower_components/simple-jekyll-search/dest/jekyll-search.js',
|
||||||
'bower_components/jquery.adaptive-background/index.js',
|
'bower_components/jquery.adaptive-background/index.js',
|
||||||
|
'bower_components/time-elements/time-elements.js',
|
||||||
'<%= config.src %>/<%= config.assets.js %>/app.js'
|
'<%= config.src %>/<%= config.assets.js %>/app.js'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<time class="pubdate" datetime="{{ page.date | date_to_xmlschema }}" pubdate{% if page.updated %} data-updated="true"{% endif %}>{{ page.date | date_to_string }}</time>
|
<time is="time-ago" class="pubdate" datetime="{{ page.date | date_to_xmlschema }}" pubdate{% if page.updated %} data-updated="true"{% endif %}>{{ page.date | date_to_string }}</time>
|
||||||
|
|
||||||
{% if page.updated %}
|
{% if page.updated %}
|
||||||
<time class="updated" datetime="{{ page.updated | date_to_xmlschema }}">Updated {{ page.updated | date_to_string }}</time>
|
<time is="time-ago" class="updated" datetime="{{ page.updated | date_to_xmlschema }}">Updated {{ page.updated | date_to_string }}</time>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</footer>
|
</footer>
|
@ -32,6 +32,7 @@
|
|||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<script src="/assets/js/CustomElements.min.js"></script>
|
||||||
<script async src="/assets/js/kremalicious3.min.js"></script>
|
<script async src="/assets/js/kremalicious3.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -16,7 +16,9 @@
|
|||||||
"imagesloaded": ">=3.1.0",
|
"imagesloaded": ">=3.1.0",
|
||||||
"jquery-infinite-scroll": ">=2.0.2",
|
"jquery-infinite-scroll": ">=2.0.2",
|
||||||
"simple-jekyll-search": ">=1.0.2",
|
"simple-jekyll-search": ">=1.0.2",
|
||||||
"jquery.adaptive-background": "https://raw.github.com/briangonzalez/jquery.adaptive-backgrounds.js/master/src/jquery.adaptive-backgrounds.js"
|
"jquery.adaptive-background": "https://raw.github.com/briangonzalez/jquery.adaptive-backgrounds.js/master/src/jquery.adaptive-backgrounds.js",
|
||||||
|
"time-elements": ">=0.4.0",
|
||||||
|
"webcomponentsjs": ">=0.6.1"
|
||||||
},
|
},
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"**/.*",
|
"**/.*",
|
||||||
|
Loading…
Reference in New Issue
Block a user