mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-12 16:56:06 +00:00
Compare commits
19 Commits
Author | SHA1 | Date | |
---|---|---|---|
c4c276653d | |||
3b5443a97c | |||
60cf743042 | |||
c2fcb94502 | |||
9ef17def42 | |||
bd71951dbb | |||
ded174bab0 | |||
2bd73d696a | |||
aa1fa8b445 | |||
ff9f091cd3 | |||
ca7eb5ad03 | |||
30dce03e86 | |||
9aaa0ec17a | |||
74dfeb37b0 | |||
19ed4267fe | |||
1f1e2062b7 | |||
51634b8059 | |||
13e9620d0f | |||
f1f2b54c07 |
@ -4,11 +4,11 @@ The default theme for [Ghost](http://github.com/tryghost/ghost/).
|
||||
|
||||
## Copyright & License
|
||||
|
||||
Copyright (C) 2013 Ghost Foundation - Released under the MIT Lincense.
|
||||
Copyright (C) 2013 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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
@ -3,9 +3,19 @@
|
||||
========================================================================== */
|
||||
|
||||
/*
|
||||
0. Includes
|
||||
1. General
|
||||
2. Something else
|
||||
|
||||
0. Includes
|
||||
1. Icons
|
||||
2. General
|
||||
3. Utilities
|
||||
4. General
|
||||
5. Single Post
|
||||
6. Third Party Elements
|
||||
7. Pagination
|
||||
8. Footer
|
||||
9. Media Queries (Tablet)
|
||||
10. Media Queries (Mobile)
|
||||
|
||||
*/
|
||||
|
||||
/* ==========================================================================
|
||||
@ -65,7 +75,7 @@
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
1. General - Setting up some base styles
|
||||
2. General - Setting up some base styles
|
||||
========================================================================== */
|
||||
|
||||
html {
|
||||
@ -317,7 +327,7 @@ table.plain {
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
1. Utilities - These things get used a lot
|
||||
3. Utilities - These things get used a lot
|
||||
========================================================================== */
|
||||
|
||||
/* Hides shit */
|
||||
@ -343,7 +353,7 @@ table.plain {
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
1. General
|
||||
4. General - The main styles for the the theme
|
||||
========================================================================== */
|
||||
|
||||
/* Big cover image on the home page */
|
||||
@ -499,7 +509,7 @@ table.plain {
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
1. Single Post - When you click on an individual post
|
||||
5. Single Post - When you click on an individual post
|
||||
========================================================================== */
|
||||
|
||||
/* Tweak the .post wrapper style */
|
||||
@ -574,7 +584,24 @@ table.plain {
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
1. Pagination
|
||||
6. Third Party Elements - Embeds from other services
|
||||
========================================================================== */
|
||||
|
||||
/* Github */
|
||||
|
||||
.gist table {
|
||||
margin: 0;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.gist .line-number {
|
||||
min-width: 25px;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
7. Pagination - Tools to let you flick between pages
|
||||
========================================================================== */
|
||||
|
||||
/* The main wrapper for our pagination links */
|
||||
@ -625,7 +652,7 @@ table.plain {
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
1. Footer - The bottom of every page
|
||||
8. Footer - The bottom of every page
|
||||
========================================================================== */
|
||||
|
||||
.site-footer {
|
||||
@ -743,7 +770,7 @@ table.plain {
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
1. Media Queries - Smaller than 900px
|
||||
9. Media Queries - Smaller than 900px
|
||||
========================================================================== */
|
||||
|
||||
@media only screen and (max-width: 900px) {
|
||||
@ -804,7 +831,7 @@ table.plain {
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
1. Media Queries - Smaller than 500px
|
||||
10. Media Queries - Smaller than 500px
|
||||
========================================================================== */
|
||||
|
||||
|
||||
@ -888,7 +915,18 @@ table.plain {
|
||||
margin: 1.4rem 0.8rem 0 0.8rem;
|
||||
}
|
||||
|
||||
.older-posts,
|
||||
.newer-posts {
|
||||
position: static;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.page-number {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
margin-top: 6rem;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 7.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 59 KiB |
30
default.hbs
30
default.hbs
@ -2,21 +2,21 @@
|
||||
<html>
|
||||
<head>
|
||||
{{! Document Settings }}
|
||||
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
|
||||
{{! Page Meta }}
|
||||
<title>{{@blog.title}}</title>
|
||||
<meta name="description" content="{{@blog.description}}" />
|
||||
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
|
||||
{{! Page Meta }}
|
||||
<title>{{meta_title}}</title>
|
||||
<meta name="description" content="{{meta_description}}" />
|
||||
|
||||
<meta name="HandheldFriendly" content="True" />
|
||||
<meta name="MobileOptimized" content="320" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
{{! Styles'n'Scripts }}
|
||||
<link rel="stylesheet" type="text/css" href="/assets/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="/assets/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" />
|
||||
|
||||
{{! Ghost outputs important style and meta data with this tag }}
|
||||
{{ghost_head}}
|
||||
</head>
|
||||
@ -26,7 +26,7 @@
|
||||
{{{body}}}
|
||||
|
||||
<footer class="site-footer">
|
||||
<a class="subscribe icon-feed" href="#"><span class="tooltip">Subscribe!</span></a>
|
||||
<a class="subscribe icon-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a>
|
||||
<div class="inner">
|
||||
<section class="copyright">All content copyright <a href="/">{{@blog.title}}</a> © 2013 • All rights reserved.</section>
|
||||
<section class="poweredby">Proudly published with <a class="icon-ghost" href="http://tryghost.org">Ghost</a></section>
|
||||
@ -37,7 +37,7 @@
|
||||
{{ghost_foot}}
|
||||
|
||||
{{! The main JavaScript file for Casper }}
|
||||
<script type="text/javascript" src="assets/js/index.js"></script>
|
||||
<script type="text/javascript" src="/assets/js/index.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -4,7 +4,7 @@
|
||||
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 }}
|
||||
<header id="site-head" {{! style="background-image: url()" }}>
|
||||
<header id="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
|
||||
<div class="vertical">
|
||||
<div id="site-head-content" class="inner">
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
<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>
|
||||
<h2 class="post-title"><a href="{{url}}">{{title}}</a></h2>
|
||||
|
||||
|
||||
</header>
|
||||
<section class="post-excerpt">
|
||||
<p>{{excerpt}}…</p>
|
||||
@ -33,7 +33,7 @@
|
||||
</article>
|
||||
|
||||
{{/foreach}}
|
||||
|
||||
|
||||
{{!! After all the posts, we have the previous/next pagination links }}
|
||||
{{pagination}}
|
||||
|
||||
|
21
post.hbs
21
post.hbs
@ -6,7 +6,7 @@
|
||||
<main class="content" role="main">
|
||||
|
||||
<article class="{{post_class}}">
|
||||
|
||||
|
||||
{{! Each post has the blog logo at the top, with a link back to the home page }}
|
||||
<header class="post-header">
|
||||
<a id="blog-logo" href="{{@blog.url}}">
|
||||
@ -20,9 +20,9 @@
|
||||
|
||||
{{! Everything inside the #post tags pulls data from the 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> {{#if tags}}on {{tags}}{{/if}}</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>
|
||||
|
||||
@ -41,9 +41,18 @@
|
||||
|
||||
<section class="share">
|
||||
<h4>Share this post</h4>
|
||||
<a class="icon-twitter" href="http://twitter.com/share?text={{title}}&url={{url absolute}}"><span class="hidden">Twitter</span></a>
|
||||
<a class="icon-facebook" href="http://www.facebook.com/sharer.php?u={{url absolute}}"><span class="hidden">Facebook</span></a>
|
||||
<a class="icon-google-plus" href="#"><span class="hidden">Google+</span></a>
|
||||
<a class="icon-twitter" href="http://twitter.com/share?text={{title}}&url={{url absolute="true"}}"
|
||||
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
||||
<span class="hidden">Twitter</span>
|
||||
</a>
|
||||
<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;">
|
||||
<span class="hidden">Facebook</span>
|
||||
</a>
|
||||
<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;">
|
||||
<span class="hidden">Google+</span>
|
||||
</a>
|
||||
</section>
|
||||
|
||||
</footer>
|
||||
|
Reference in New Issue
Block a user