-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
howardchi
committed
Aug 8, 2015
0 parents
commit 24afc8b
Showing
61 changed files
with
1,927 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
twstat-genghis.chilijung.me |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Taiwanstat Genghis theme | ||
========= | ||
|
||
This is a test Repo using [Genghis](https://github.com/Genghis-canner/genghis), which is a blog engine developed by [Canner team](https://github.com/Canner) | ||
|
||
And the theme is used to use in [Taiwanstat Official Site](http://taiwanstat.com/) | ||
|
||
## Usage | ||
|
||
#### Prerequisite | ||
|
||
- node | ||
- npm | ||
|
||
Install `genghis`, `canner-core` | ||
|
||
``` | ||
$ sudo npm install -g genghis | ||
$ sudo npm install -g canner-core | ||
``` | ||
|
||
run build blog | ||
|
||
``` | ||
genghis blog.json [-w option for watch changes] | ||
``` | ||
|
||
build pages | ||
|
||
``` | ||
canner-core build page.js | ||
``` | ||
|
||
[More Genghis Information](https://github.com/Genghis-canner/genghis) | ||
|
||
## License | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
生長在台灣的我們,很少從一個宏觀的角度看整個台灣的經濟、法律、交通、教育... ,而我們相信數據可以幫我們更了解我們身長在的這片土地上的一切。 | ||
|
||
讓我們來用數據看台灣! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<html><head> | ||
<meta charset="utf-8"> | ||
<!-- (1) Optimize for mobile versions: http://goo.gl/EOpFl --> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<!-- (1) force latest IE rendering engine: bit.ly/1c8EiC9 --> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
|
||
<title>關於我們</title> | ||
<meta name="description" content="生長在台灣的我們,很少從一個宏觀的角度看整個台灣的經濟、法律、交通、教育... ,而我們相信數據可以幫我們更了解我們身長在的這片土地上的一切。讓我們來用數據看台灣!"> | ||
<meta property="og:title" content="關於我們"> | ||
<meta property="og:site_name" content="關於我們"> | ||
<meta property="og:description" content="生長在台灣的我們,很少從一個宏觀的角度看整個台灣的經濟、法律、交通、教育... ,而我們相信數據可以幫我們更了解我們身長在的這片土地上的一切。讓我們來用數據看台灣!"> | ||
<meta property="og:image" content=" http://i.imgur.com/04AFcnA.png?1 "> | ||
<meta property="og:image:type" content="image/png"> | ||
<meta property="og:image:width" content="300"> | ||
<meta property="og:image:height" content="300"> | ||
|
||
<meta name="HandheldFriendly" content="True"> | ||
<meta name="MobileOptimized" content="320"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> | ||
|
||
<link rel="shortcut icon" href="/assets/images/favicon.ico"> | ||
<link rel="stylesheet" href="http://brick.a.ssl.fastly.net/Linux+Libertine:400,400i,700,700i/Open+Sans:400,400i,700,700i"> | ||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> | ||
|
||
<link rel="stylesheet" type="text/css" media="screen" href="/css/main.css"> | ||
<link rel="stylesheet" type="text/css" media="print" href="/css/print.css}}"> | ||
<link rel="stylesheet" href="/bower_components/semantic/dist/semantic.min.css" type="text/css" media="all"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | ||
<script src="/bower_components/semantic/dist/semantic.min.js"></script> | ||
</head> | ||
<body> | ||
<!-- header start --> | ||
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header" id="layout-header"> | ||
<main class="mdl-layout__content" id="main-content"> | ||
<!-- header end --> | ||
<p>生長在台灣的我們,很少從一個宏觀的角度看整個台灣的經濟、法律、交通、教育... ,而我們相信數據可以幫我們更了解我們身長在的這片土地上的一切。</p> | ||
<p>讓我們來用數據看台灣!</p> | ||
|
||
<!-- footer start --> | ||
|
||
</main> | ||
</div> | ||
<script src="/js/header.js"></script> | ||
|
||
<!-- footer end --> | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-61023469-1', 'auto');ga('send', 'pageview'); | ||
</script> | ||
<div id="fb-root"></div> | ||
<script> | ||
(function(d, s, id) { | ||
var js, fjs = d.getElementsByTagName(s)[0]; | ||
if (d.getElementById(id)) return; | ||
js = d.createElement(s); js.id = id; | ||
js.src = "//connect.facebook.net/zh_TW/sdk.js#xfbml=1&appId=600079286760117&version=v2.0"; | ||
fjs.parentNode.insertBefore(js, fjs); | ||
}(document, 'script', 'facebook-jssdk')); | ||
</script> | ||
|
||
|
||
</body></html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Main JS file for Casper behaviours | ||
*/ | ||
|
||
/*globals jQuery, document */ | ||
(function ($) { | ||
"use strict"; | ||
|
||
$(document).ready(function(){ | ||
|
||
$(".post-content").fitVids(); | ||
|
||
// Calculates Reading Time | ||
$('.post-content').readingTime({ | ||
readingTimeTarget: '.post-reading-time', | ||
wordCountTarget: '.post-word-count', | ||
}); | ||
|
||
// Creates Captions from Alt tags | ||
$(".post-content img").each(function() { | ||
// Let's put a caption if there is one | ||
if($(this).attr("alt")) | ||
$(this).wrap('<figure class="image"></figure>') | ||
.after('<figcaption>'+$(this).attr("alt")+'</figcaption>'); | ||
}); | ||
|
||
}); | ||
|
||
}(jQuery)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/*global jQuery */ | ||
/*jshint multistr:true browser:true */ | ||
/*! | ||
* FitVids 1.0.3 | ||
* | ||
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com | ||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ | ||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ | ||
* | ||
* Date: Thu Sept 01 18:00:00 2011 -0500 | ||
*/ | ||
|
||
(function( $ ){ | ||
|
||
"use strict"; | ||
|
||
$.fn.fitVids = function( options ) { | ||
var settings = { | ||
customSelector: null | ||
}; | ||
|
||
if(!document.getElementById('fit-vids-style')) { | ||
|
||
var div = document.createElement('div'), | ||
ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0], | ||
cssStyles = '­<style>.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>'; | ||
|
||
div.className = 'fit-vids-style'; | ||
div.id = 'fit-vids-style'; | ||
div.style.display = 'none'; | ||
div.innerHTML = cssStyles; | ||
|
||
ref.parentNode.insertBefore(div,ref); | ||
|
||
} | ||
|
||
if ( options ) { | ||
$.extend( settings, options ); | ||
} | ||
|
||
return this.each(function(){ | ||
var selectors = [ | ||
"iframe[src*='player.vimeo.com']", | ||
"iframe[src*='youtube.com']", | ||
"iframe[src*='youtube-nocookie.com']", | ||
"iframe[src*='kickstarter.com'][src*='video.html']", | ||
"object", | ||
"embed" | ||
]; | ||
|
||
if (settings.customSelector) { | ||
selectors.push(settings.customSelector); | ||
} | ||
|
||
var $allVideos = $(this).find(selectors.join(',')); | ||
$allVideos = $allVideos.not("object object"); // SwfObj conflict patch | ||
|
||
$allVideos.each(function(){ | ||
var $this = $(this); | ||
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } | ||
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), | ||
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), | ||
aspectRatio = height / width; | ||
if(!$this.attr('id')){ | ||
var videoID = 'fitvid' + Math.floor(Math.random()*999999); | ||
$this.attr('id', videoID); | ||
} | ||
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%"); | ||
$this.removeAttr('height').removeAttr('width'); | ||
}); | ||
}); | ||
}; | ||
// Works with either jQuery or Zepto | ||
})( window.jQuery || window.Zepto ); |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.