1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 09:56:51 +01:00

use custom time element from github

This commit is contained in:
Matthias Kretschmann 2015-04-17 23:04:01 +02:00
parent 0451a0c27d
commit 19f1ab745b
5 changed files with 41 additions and 34 deletions

View File

@ -106,6 +106,9 @@ module.exports = function(grunt){
'<%= config.site %>/<%= config.assets.js %>/picturefill.min.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': [
'bower_components/jquery/dist/jquery.js',
'bower_components/jquery-infinite-scroll/jquery.infinitescroll.js',
@ -113,6 +116,7 @@ module.exports = function(grunt){
'bower_components/imagesloaded/imagesloaded.js',
'bower_components/simple-jekyll-search/dest/jekyll-search.js',
'bower_components/jquery.adaptive-background/index.js',
'bower_components/time-elements/time-elements.js',
'<%= config.src %>/<%= config.assets.js %>/app.js'
]
}

View File

@ -9,10 +9,10 @@
</a>
</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 %}
<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 %}
</footer>

View File

@ -32,6 +32,7 @@
</section>
</footer>
<script src="/assets/js/CustomElements.min.js"></script>
<script async src="/assets/js/kremalicious3.min.js"></script>
<script>

View File

@ -1,27 +1,27 @@
<!DOCTYPE html>
<!--
___ ___
/__/\ /__/|
| |::\ | |:|
| |:|:\ | |:|
__|__|:|\:\ __| |:|
___ ___
/__/\ /__/|
| |::\ | |:|
| |:|:\ | |:|
__|__|:|\:\ __| |:|
/__/::::| \:\ /__/\_|:|____
\ \:\~~\__\/ \ \:\/:::::/
\ \:\ \ \::/~~~~
\ \:\ \ \:\
\ \:\ \ \:\
\__\/ \__\/
YOU EARNED THE GEEK ACHIEVEMENT
\ \:\ \ \::/~~~~
\ \:\ \ \:\
\ \:\ \ \:\
\__\/ \__\/
YOU EARNED THE GEEK ACHIEVEMENT
FOR LOOKING AT MY SOURCE
But because of all the minimizing and caching
going on you better check out the code on
But because of all the minimizing and caching
going on you better check out the code on
github
_____________________________________________
https://github.com/kremalicious/kremalicious3
_____________________________________________
-->
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
@ -37,7 +37,7 @@
{{ site.name }} &brvbar; {{ site.description }}
{% endif %}
</title>
{% if page.description %}
<meta name="description" content="{{ page.description }}">
{% elsif page.front_page %}
@ -46,33 +46,33 @@
<meta name="description" content="{{ page.excerpt | strip_html | strip_newlines }}" />
{% endif %}
<meta name="author" content="{% if page.author %}{{ page.author }}{% else %}{{ site.author }}{% endif %}">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="cleartype" content="on">
<link rel="stylesheet" href="/assets/css/kremalicious3.min.css">
{% if page.style %}
<link rel="stylesheet" href="/assets/css/{{ page.style }}">
{% endif %}
<!-- TypeKit -->
<script src="//use.typekit.com/msu4qap.js"></script>
<script>try{Typekit.load();}catch(e){}</script>
<!-- Picturefill -->
<script src="/assets/js/picturefill.min.js" defer></script>
<!-- Canonical URL -->
<link rel="canonical" href="{{ site.url}}{{ page.url | replace:'index.html','' }}">
<link rel="alternate" href="{{ site.url }}/feed/" type="application/rss+xml" title="Posts Feed"/>
<!-- Apple -->
<meta name="apple-mobile-web-app-title" content="kremalicious">
<!-- Touch Icons -->
<!-- <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/apple-touch-icon-152x152-precomposed.png"> -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144x144-precomposed.png">
@ -84,24 +84,24 @@
<!-- <link rel="shortcut icon" sizes="196x196" href="/touch-icon-196x196.png"> -->
<link rel="shortcut icon" href="/apple-touch-icon-precomposed.png">
<link rel="icon" href="/favicon.ico" sizes="16x16">
<!-- Windows 8 Metro Tile Image -->
<meta name="msapplication-TileImage" content="{{ site.url }}/metro-tile.png"/>
<meta name="msapplication-TileColor" content="#015565"/>
{% if paginator %}
<script>
var total = {{ paginator.total_pages }};
</script>
{% endif %}
<!-- OpenGraph -->
{% include opengraph.html %}
<!-- Twitter Cards -->
{% include twittercards.html %}
<!-- Google Authorship -->
<link href="https://plus.google.com/+MatthiasKretschmann" rel="author"/>
</head>

View File

@ -16,7 +16,9 @@
"imagesloaded": ">=3.1.0",
"jquery-infinite-scroll": ">=2.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": [
"**/.*",