mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-27 16:16:05 +00:00
Compare commits
47 Commits
Author | SHA1 | Date | |
---|---|---|---|
3c1b7d68ec | |||
9a261d1e93 | |||
b7a6f81a18 | |||
61cfb3064b | |||
8b420d01a5 | |||
36fe40b9d7 | |||
0e1329f51f | |||
5c8fc51848 | |||
054f138135 | |||
97e23d1238 | |||
2d539998d4 | |||
f503b7e5eb | |||
5b1e9c590f | |||
657f9fb749 | |||
11ddc30545 | |||
7bc3dfa7e6 | |||
b5819fd970 | |||
e4e8b0d902 | |||
9dcf734f04 | |||
8b38234565 | |||
72c4010f32 | |||
94f98f0d58 | |||
2dcf64a8ce | |||
38be6803b4 | |||
9096fbd977 | |||
4616c5bd1d | |||
0a7074a716 | |||
928e7e3ffe | |||
92ff4f4145 | |||
7aee698a98 | |||
fec0cc6ca6 | |||
23a97124ab | |||
a930d49bc3 | |||
692166bc2a | |||
d504ec0a16 | |||
06aee0b2c5 | |||
6ae7958315 | |||
58efcd6777 | |||
09061d71f0 | |||
2ca7344203 | |||
d70beddd28 | |||
fa41e47672 | |||
8c52f22c9b | |||
4b334adf8a | |||
10beda3f6c | |||
6096654136 | |||
436f94e9a9 |
@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2013 Ghost Foundation - Released under The MIT License.
|
Copyright (c) 2014 Ghost Foundation - Released under The MIT License.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person
|
Permission is hereby granted, free of charge, to any person
|
||||||
obtaining a copy of this software and associated documentation
|
obtaining a copy of this software and associated documentation
|
||||||
@ -19,4 +19,4 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|||||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
OTHER DEALINGS IN THE SOFTWARE.
|
OTHER DEALINGS IN THE SOFTWARE.
|
@ -4,7 +4,7 @@ The default theme for [Ghost](http://github.com/tryghost/ghost/).
|
|||||||
|
|
||||||
## Copyright & License
|
## Copyright & License
|
||||||
|
|
||||||
Copyright (C) 2013 Ghost Foundation - Released under the MIT License.
|
Copyright (C) 2014 Ghost Foundation - Released under the MIT License.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
6
assets/css/normalize.css
vendored
6
assets/css/normalize.css
vendored
@ -1,4 +1,4 @@
|
|||||||
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */
|
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
HTML5 display definitions
|
HTML5 display definitions
|
||||||
@ -339,8 +339,8 @@ html input[disabled] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. Address box sizing set to `content-box` in IE 8/9.
|
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||||
* 2. Remove excess padding in IE 8/9.
|
* 2. Remove excess padding in IE 8/9/10.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
input[type="checkbox"],
|
input[type="checkbox"],
|
||||||
|
@ -42,7 +42,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Apply these base styles to all icons */
|
/* Apply these base styles to all icons */
|
||||||
.icon-ghost, .icon-feed, .icon-twitter, .icon-google-plus, .icon-facebook {
|
.icon-ghost:before,
|
||||||
|
.icon-feed:before,
|
||||||
|
.icon-twitter:before,
|
||||||
|
.icon-google-plus:before,
|
||||||
|
.icon-facebook:before {
|
||||||
font-family: 'icons';
|
font-family: 'icons';
|
||||||
speak: none;
|
speak: none;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@ -87,7 +91,7 @@ html {
|
|||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
font-family: 'Droid Serif', serif;
|
font-family: 'Noto Serif', serif;
|
||||||
font-size: 2.0rem;
|
font-size: 2.0rem;
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
color: #3A4145;
|
color: #3A4145;
|
||||||
@ -158,7 +162,7 @@ h4 a, h5 a, h6 a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
p, ul, ol {
|
p, ul, ol, dl {
|
||||||
margin: 1.6em 0;
|
margin: 1.6em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,6 +171,23 @@ ul ol, ol ul {
|
|||||||
margin: 0.4em 0;
|
margin: 0.4em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dl dt {
|
||||||
|
float: left;
|
||||||
|
width: 180px;
|
||||||
|
overflow: hidden;
|
||||||
|
clear: left;
|
||||||
|
text-align: right;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 1em
|
||||||
|
}
|
||||||
|
|
||||||
|
dl dd {
|
||||||
|
margin-left: 200px;
|
||||||
|
margin-bottom: 1em
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
display: block;
|
display: block;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
@ -191,7 +212,7 @@ blockquote p {
|
|||||||
|
|
||||||
blockquote small {
|
blockquote small {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0.8em 0 0.8em 1.5em;;
|
margin: 0.8em 0 0.8em 1.5em;
|
||||||
font-size:0.9em;
|
font-size:0.9em;
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
@ -204,28 +225,6 @@ blockquote cite {
|
|||||||
|
|
||||||
blockquote cite a { font-weight: normal; }
|
blockquote cite a { font-weight: normal; }
|
||||||
|
|
||||||
|
|
||||||
dl {
|
|
||||||
margin: 1.6em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl dt {
|
|
||||||
float: left;
|
|
||||||
width: 180px;
|
|
||||||
overflow: hidden;
|
|
||||||
clear: left;
|
|
||||||
text-align: right;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
font-weight: bold;
|
|
||||||
margin-bottom: 1em
|
|
||||||
}
|
|
||||||
|
|
||||||
dl dd {
|
|
||||||
margin-left: 200px;
|
|
||||||
margin-bottom: 1em
|
|
||||||
}
|
|
||||||
|
|
||||||
mark {
|
mark {
|
||||||
background-color: #ffc336;
|
background-color: #ffc336;
|
||||||
}
|
}
|
||||||
@ -234,7 +233,7 @@ code, tt {
|
|||||||
padding: 1px 3px;
|
padding: 1px 3px;
|
||||||
font-family: Inconsolata, monospace, sans-serif;
|
font-family: Inconsolata, monospace, sans-serif;
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
white-space: pre;
|
white-space: pre-wrap;
|
||||||
border: 1px solid #E3EDF3;
|
border: 1px solid #E3EDF3;
|
||||||
background: #F7FAFB;
|
background: #F7FAFB;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
@ -318,11 +317,20 @@ table tbody > tr:nth-child(odd) > th {
|
|||||||
background-color: #f6f6f6;
|
background-color: #f6f6f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.plain {
|
table.plain tbody > tr:nth-child(odd) > td,
|
||||||
tbody > tr:nth-child(odd) > td,
|
table.plain tbody > tr:nth-child(odd) > th {
|
||||||
tbody > tr:nth-child(odd) > th {
|
background: transparent;
|
||||||
background: transparent;
|
}
|
||||||
}
|
|
||||||
|
iframe, .fluid-width-video-wrapper {
|
||||||
|
display: block;
|
||||||
|
margin: 1.6em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* When a video is inside the fitvids wrapper, drop the
|
||||||
|
margin on the iframe, cause it breaks stuff. */
|
||||||
|
.fluid-width-video-wrapper iframe {
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -357,7 +365,7 @@ table.plain {
|
|||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
/* Big cover image on the home page */
|
/* Big cover image on the home page */
|
||||||
#site-head {
|
.site-head {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -369,8 +377,12 @@ table.plain {
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.blog-logo {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* Yo-logo. Yolo-go. Upload one in ghost/settings/ */
|
/* Yo-logo. Yolo-go. Upload one in ghost/settings/ */
|
||||||
#blog-logo img {
|
.blog-logo img {
|
||||||
display: block;
|
display: block;
|
||||||
max-height: 100px;
|
max-height: 100px;
|
||||||
width: auto;
|
width: auto;
|
||||||
@ -378,20 +390,14 @@ table.plain {
|
|||||||
line-height: 0;
|
line-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#back {
|
|
||||||
color: rgba(0,0,0,0.2);
|
|
||||||
position: fixed;
|
|
||||||
top: 8px;
|
|
||||||
left: 8px;
|
|
||||||
padding: 6px;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The details of your blog. Defined in ghost/settings/ */
|
/* The details of your blog. Defined in ghost/settings/ */
|
||||||
.blog-title {
|
.blog-title {
|
||||||
margin: 10px 0 10px 0;
|
margin: 10px 0 10px 0;
|
||||||
font-size: 5rem;
|
font-size: 5rem;
|
||||||
letter-spacing: -1px;
|
letter-spacing: -1px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: 'Open Sans', sans-serif;
|
||||||
|
text-shadow: 0 1px 6px rgba(0,0,0,0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-description {
|
.blog-description {
|
||||||
@ -399,8 +405,9 @@ table.plain {
|
|||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-family: 'Droid Serif', serif;
|
font-family: 'Noto Serif', serif;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
|
text-shadow: 0 1px 3px rgba(0,0,0,0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Every post, on every page, gets this style on its <article> tag */
|
/* Every post, on every page, gets this style on its <article> tag */
|
||||||
@ -527,6 +534,12 @@ table.plain {
|
|||||||
/* Insert some mad padding up in the header for better spacing */
|
/* Insert some mad padding up in the header for better spacing */
|
||||||
.post-template .post-header {
|
.post-template .post-header {
|
||||||
padding: 60px 0;
|
padding: 60px 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-template .blog-title {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 2.5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Keep large images within the bounds of the post-width */
|
/* Keep large images within the bounds of the post-width */
|
||||||
@ -534,6 +547,7 @@ table.plain {
|
|||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The author credit area after the post */
|
/* The author credit area after the post */
|
||||||
@ -576,6 +590,7 @@ table.plain {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 1.4rem 1.6rem 1.6rem 0;
|
margin: 1.4rem 1.6rem 1.6rem 0;
|
||||||
color: #BBC7CC;
|
color: #BBC7CC;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-footer .share a:hover {
|
.post-footer .share a:hover {
|
||||||
@ -712,7 +727,7 @@ table.plain {
|
|||||||
color: #D2DEE3;
|
color: #D2DEE3;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 2px;
|
top: 9px;
|
||||||
left: 9px;
|
left: 9px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
transition: color 0.5s ease;
|
transition: color 0.5s ease;
|
||||||
@ -735,10 +750,9 @@ table.plain {
|
|||||||
padding: 4px 8px 5px 8px;
|
padding: 4px 8px 5px 8px;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top: -23px;
|
top: -23px;
|
||||||
left: -23px;
|
left: -21px;
|
||||||
color: rgba(255,255,255,0.9);
|
color: rgba(255,255,255,0.9);
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
font-weight: bold;
|
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: #50585D;
|
background: #50585D;
|
||||||
@ -779,7 +793,7 @@ table.plain {
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#site-head {
|
.site-head {
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -837,7 +851,7 @@ table.plain {
|
|||||||
|
|
||||||
@media only screen and (max-width: 500px) {
|
@media only screen and (max-width: 500px) {
|
||||||
|
|
||||||
#blog-logo img {
|
.blog-logo img {
|
||||||
max-height: 80px;
|
max-height: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -856,7 +870,7 @@ table.plain {
|
|||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#site-head {
|
.site-head {
|
||||||
padding: 10% 0;
|
padding: 10% 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -935,4 +949,4 @@ table.plain {
|
|||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
End of file. Media queries should be the last thing here. Do not add stuff
|
End of file. Media queries should be the last thing here. Do not add stuff
|
||||||
below this point, or it will probably fuck everything up.
|
below this point, or it will probably fuck everything up.
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
@ -8,10 +8,7 @@
|
|||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
// On the home page, move the blog icon inside the header
|
$(".post-content").fitVids();
|
||||||
// for better relative/absolute positioning.
|
|
||||||
|
|
||||||
//$("#blog-logo").prependTo("#site-head-content");
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
74
assets/js/jquery.fitvids.js
Executable file
74
assets/js/jquery.fitvids.js
Executable file
@ -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 );
|
19
default.hbs
19
default.hbs
@ -2,8 +2,8 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
{{! Document Settings }}
|
{{! Document Settings }}
|
||||||
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
|
||||||
{{! Page Meta }}
|
{{! Page Meta }}
|
||||||
<title>{{meta_title}}</title>
|
<title>{{meta_title}}</title>
|
||||||
@ -13,9 +13,11 @@
|
|||||||
<meta name="MobileOptimized" content="320" />
|
<meta name="MobileOptimized" content="320" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|
||||||
|
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
|
||||||
|
|
||||||
{{! Styles'n'Scripts }}
|
{{! Styles'n'Scripts }}
|
||||||
<link rel="stylesheet" type="text/css" href="/assets/css/screen.css" />
|
<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />
|
||||||
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic|Open+Sans:700,400" />
|
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Noto+Serif:400,700,400italic|Open+Sans:700,400" />
|
||||||
|
|
||||||
{{! Ghost outputs important style and meta data with this tag }}
|
{{! Ghost outputs important style and meta data with this tag }}
|
||||||
{{ghost_head}}
|
{{ghost_head}}
|
||||||
@ -28,8 +30,8 @@
|
|||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<a class="subscribe icon-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a>
|
<a class="subscribe icon-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> © 2013 • All rights reserved.</section>
|
<section class="copyright">All content copyright <a href="{{@blog.url}}/">{{@blog.title}}</a> © {{date format="YYYY"}} • All rights reserved.</section>
|
||||||
<section class="poweredby">Proudly published with <a class="icon-ghost" href="http://tryghost.org">Ghost</a></section>
|
<section class="poweredby">Proudly published with <a class="icon-ghost" href="http://ghost.org">Ghost</a></section>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
@ -37,7 +39,8 @@
|
|||||||
{{ghost_foot}}
|
{{ghost_foot}}
|
||||||
|
|
||||||
{{! The main JavaScript file for Casper }}
|
{{! The main JavaScript file for Casper }}
|
||||||
<script type="text/javascript" src="/assets/js/index.js"></script>
|
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
|
||||||
|
<script type="text/javascript" src="{{asset "js/index.js"}}"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
11
index.hbs
11
index.hbs
@ -4,11 +4,10 @@
|
|||||||
the {body} of the default.hbs template, which contains our header/footer. }}
|
the {body} of the default.hbs template, which contains our header/footer. }}
|
||||||
|
|
||||||
{{! The big featured header on the homepage, with the site logo and description }}
|
{{! The big featured header on the homepage, with the site logo and description }}
|
||||||
<header id="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
|
<header class="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
|
||||||
<div class="vertical">
|
<div class="vertical">
|
||||||
<div id="site-head-content" class="inner">
|
<div class="site-head-content inner">
|
||||||
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||||
{{#if @blog.logo}}<a id="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
|
||||||
<h1 class="blog-title">{{@blog.title}}</h1>
|
<h1 class="blog-title">{{@blog.title}}</h1>
|
||||||
<h2 class="blog-description">{{@blog.description}}</h2>
|
<h2 class="blog-description">{{@blog.description}}</h2>
|
||||||
</div>
|
</div>
|
||||||
@ -23,8 +22,8 @@
|
|||||||
|
|
||||||
<article class="{{post_class}}">
|
<article class="{{post_class}}">
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{#if tags}}on {{tags}}{{/if}}</span>
|
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{tags prefix="on "}}</span>
|
||||||
<h2 class="post-title"><a href="{{url}}">{{title}}</a></h2>
|
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
<section class="post-excerpt">
|
<section class="post-excerpt">
|
||||||
|
32
page.hbs
Normal file
32
page.hbs
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{{!< default}}
|
||||||
|
|
||||||
|
{{! This is a page template. A page outputs content just like any other post, and has all the same
|
||||||
|
attributes by default, but you can also customise it to behave differently if you prefer. }}
|
||||||
|
|
||||||
|
<main class="content" role="main">
|
||||||
|
|
||||||
|
<article class="{{post_class}}">
|
||||||
|
|
||||||
|
<header class="post-header">
|
||||||
|
<a class="blog-logo" href="{{@blog.url}}">
|
||||||
|
{{#if @blog.logo}}
|
||||||
|
<img src="{{@blog.logo}}" alt="Blog Logo" />
|
||||||
|
{{else}}
|
||||||
|
<span class="blog-title">{{@blog.title}}</span>
|
||||||
|
{{/if}}
|
||||||
|
</a>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{{#post}}
|
||||||
|
|
||||||
|
<h1 class="post-title">{{{title}}}</h1>
|
||||||
|
|
||||||
|
<section class="post-content">
|
||||||
|
{{content}}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{{/post}}
|
||||||
|
|
||||||
|
</article>
|
||||||
|
|
||||||
|
</main>
|
51
post.hbs
51
post.hbs
@ -9,11 +9,11 @@
|
|||||||
|
|
||||||
{{! Each post has the blog logo at the top, with a link back to the home page }}
|
{{! Each post has the blog logo at the top, with a link back to the home page }}
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<a id="blog-logo" href="{{@blog.url}}">
|
<a class="blog-logo" href="{{@blog.url}}">
|
||||||
{{#if @blog.logo}}
|
{{#if @blog.logo}}
|
||||||
<img src="{{@blog.logo}}" alt="Blog Logo" />
|
<img src="{{@blog.logo}}" alt="Blog Logo" />
|
||||||
{{else}}
|
{{else}}
|
||||||
{{@blog.title}}
|
<span class="blog-title">{{@blog.title}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</a>
|
</a>
|
||||||
</header>
|
</header>
|
||||||
@ -21,41 +21,38 @@
|
|||||||
{{! Everything inside the #post tags pulls data from the post }}
|
{{! Everything inside the #post tags pulls data from the post }}
|
||||||
{{#post}}
|
{{#post}}
|
||||||
|
|
||||||
{{! Everything below outputs content of the the post which has been published }}
|
<span class="post-meta"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time> {{tags prefix="on " separator=" | "}}</span>
|
||||||
<span class="post-meta"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time> {{#if tags}}on {{tags separator=" | "}}{{/if}}</span>
|
|
||||||
|
|
||||||
<h1 class="post-title">{{title}}</h1>
|
<h1 class="post-title">{{{title}}}</h1>
|
||||||
|
|
||||||
<section class="post-content">
|
<section class="post-content">
|
||||||
{{content}}
|
{{content}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer class="post-footer">
|
<footer class="post-footer">
|
||||||
|
|
||||||
{{#if author}}
|
|
||||||
<section class="author">
|
<section class="author">
|
||||||
<h4>{{author.name}}</h4>
|
<h4>{{author.name}}</h4>
|
||||||
<p>{{author.bio}}</p>
|
<p>{{author.bio}}</p>
|
||||||
</section>
|
</section>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<section class="share">
|
<section class="share">
|
||||||
<h4>Share this post</h4>
|
<h4>Share this post</h4>
|
||||||
<a class="icon-twitter" href="http://twitter.com/share?text={{title}}&url={{url absolute="true"}}"
|
<a class="icon-twitter" href="http://twitter.com/share?text={{encode title}}&url={{url absolute="true"}}"
|
||||||
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
||||||
<span class="hidden">Twitter</span>
|
<span class="hidden">Twitter</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}"
|
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}"
|
||||||
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
|
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
|
||||||
<span class="hidden">Facebook</span>
|
<span class="hidden">Facebook</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="icon-google-plus" href="https://plus.google.com/share?url={{url absolute="true"}}"
|
<a class="icon-google-plus" href="https://plus.google.com/share?url={{url absolute="true"}}"
|
||||||
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
|
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
|
||||||
<span class="hidden">Google+</span>
|
<span class="hidden">Google+</span>
|
||||||
</a>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{{/post}}
|
{{/post}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user