mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-14 17:56:05 +00:00
Compare commits
34 Commits
Author | SHA1 | Date | |
---|---|---|---|
de91a4006b | |||
1c3803352f | |||
7d9c5ea1fc | |||
1196a13aef | |||
1c092c7be0 | |||
834f0bc4ff | |||
6f46594d36 | |||
ede6b03afa | |||
31025f2f15 | |||
dfd94ece96 | |||
8f6f4a962b | |||
c4f631b28d | |||
dd9d027709 | |||
1a3dd91f81 | |||
01c46dd225 | |||
8fda6ac74f | |||
c1443a6e04 | |||
cd4563935a | |||
53c6d32849 | |||
2f45eda1ca | |||
cfbb7842a9 | |||
6f5138dcd2 | |||
6c04f651aa | |||
f81730e108 | |||
c06a731384 | |||
2773ac926a | |||
cc59624ba4 | |||
6b42e9535c | |||
bc38e7df61 | |||
ab2a8261d7 | |||
ffea9590ea | |||
d32e9db4cb | |||
88666559f6 | |||
c94651d8fb |
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2013-2015 Ghost Foundation
|
Copyright (c) 2013-2016 Ghost Foundation
|
||||||
|
|
||||||
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
|
||||||
|
@ -6,7 +6,7 @@ To download, visit the [releases](https://github.com/TryGhost/Casper/releases) p
|
|||||||
|
|
||||||
## Copyright & License
|
## Copyright & License
|
||||||
|
|
||||||
Copyright (c) 2013-2015 Ghost Foundation - Released under the MIT License.
|
Copyright (c) 2013-2016 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:
|
||||||
|
|
||||||
|
@ -107,11 +107,11 @@ table { border-collapse: collapse; border-spacing: 0; }
|
|||||||
/* Import the font file with the icons in it */
|
/* Import the font file with the icons in it */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "casper-icons";
|
font-family: "casper-icons";
|
||||||
src:url("../fonts/casper-icons.eot");
|
src:url("../fonts/casper-icons.eot?v=1");
|
||||||
src:url("../fonts/casper-icons.eot?#iefix") format("embedded-opentype"),
|
src:url("../fonts/casper-icons.eot?v=1#iefix") format("embedded-opentype"),
|
||||||
url("../fonts/casper-icons.woff") format("woff"),
|
url("../fonts/casper-icons.woff?v=1") format("woff"),
|
||||||
url("../fonts/casper-icons.ttf") format("truetype"),
|
url("../fonts/casper-icons.ttf?v=1") format("truetype"),
|
||||||
url("../fonts/casper-icons.svg#icons") format("svg");
|
url("../fonts/casper-icons.svg?v=1#icons") format("svg");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@ -164,6 +164,11 @@ table { border-collapse: collapse; border-spacing: 0; }
|
|||||||
.icon-menu:before {
|
.icon-menu:before {
|
||||||
content: "\f609";
|
content: "\f609";
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
IMPORTANT: When making any changes to the icon font, be sure to increment
|
||||||
|
the version number by 1 in the @font-face rule. `?v=1` becomes `?v=2`
|
||||||
|
This forces browsers to download the new font file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
@ -916,10 +921,6 @@ body.nav-opened .nav {
|
|||||||
padding-bottom: 4rem;
|
padding-bottom: 4rem;
|
||||||
border-bottom: #EBF2F6 1px solid;
|
border-bottom: #EBF2F6 1px solid;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
-moz-hyphens: auto;
|
|
||||||
-ms-hyphens: auto;
|
|
||||||
-webkit-hyphens: auto;
|
|
||||||
hyphens: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add a little circle in the middle of the border-bottom on our .post
|
/* Add a little circle in the middle of the border-bottom on our .post
|
||||||
@ -1099,6 +1100,7 @@ body:not(.post-template) .post-title {
|
|||||||
.footnotes {
|
.footnotes {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
|
line-height: 1.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footnotes li {
|
.footnotes li {
|
||||||
@ -1109,6 +1111,10 @@ body:not(.post-template) .post-title {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footnotes p a:last-child {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* The author credit area after the post */
|
/* The author credit area after the post */
|
||||||
.post-footer {
|
.post-footer {
|
||||||
@ -1180,8 +1186,14 @@ body:not(.post-template) .post-title {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-footer .share a:hover {
|
.post-footer .share .icon-twitter:hover {
|
||||||
color: #50585D;
|
color: #55acee;
|
||||||
|
}
|
||||||
|
.post-footer .share .icon-facebook:hover {
|
||||||
|
color: #3b5998;
|
||||||
|
}
|
||||||
|
.post-footer .share .icon-google-plus:hover {
|
||||||
|
color: #dd4b39;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1322,9 +1334,6 @@ body:not(.post-template) .post-title {
|
|||||||
7. Read More - Next/Prev Post Links
|
7. Read More - Next/Prev Post Links
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
.middle {
|
|
||||||
|
|
||||||
}
|
|
||||||
.read-next {
|
.read-next {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
@ -1335,7 +1344,6 @@ body:not(.post-template) .post-title {
|
|||||||
-ms-flex-align: stretch;
|
-ms-flex-align: stretch;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
margin-top: 10rem;
|
margin-top: 10rem;
|
||||||
margin-bottom: calc(-8rem - 37px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.read-next-story {
|
.read-next-story {
|
||||||
@ -1347,6 +1355,7 @@ body:not(.post-template) .post-title {
|
|||||||
-webkit-flex-grow: 1;
|
-webkit-flex-grow: 1;
|
||||||
-ms-flex-positive: 1;
|
-ms-flex-positive: 1;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
min-width: 50%;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -1432,8 +1441,19 @@ body:not(.post-template) .post-title {
|
|||||||
/* if there are two posts without covers, put a border between them */
|
/* if there are two posts without covers, put a border between them */
|
||||||
.read-next-story.no-cover + .read-next-story.no-cover {
|
.read-next-story.no-cover + .read-next-story.no-cover {
|
||||||
border-left: rgba(0,0,100,0.04) 1px solid;
|
border-left: rgba(0,0,100,0.04) 1px solid;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Correctly position site-footer when next to the .read-next container */
|
||||||
|
.read-next + .site-footer {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
8. Third Party Elements - Embeds from other services
|
8. Third Party Elements - Embeds from other services
|
||||||
@ -1443,6 +1463,7 @@ body:not(.post-template) .post-title {
|
|||||||
.gist table {
|
.gist table {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
|
text-rendering: auto;
|
||||||
}
|
}
|
||||||
.gist td {
|
.gist td {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
@ -1756,7 +1777,7 @@ body:not(.post-template) .post-title {
|
|||||||
.menu-button {
|
.menu-button {
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
border-color: transparent;
|
border-width: 0;
|
||||||
color: #2e2e2e;
|
color: #2e2e2e;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
{{#author}}
|
{{#author}}
|
||||||
<header class="main-header author-head {{#if cover}}" style="background-image: url({{cover}}){{else}}no-cover{{/if}}">
|
<header class="main-header author-head {{#if cover}}" style="background-image: url({{cover}}){{else}}no-cover{{/if}}">
|
||||||
<nav class="main-nav overlay clearfix">
|
<nav class="main-nav overlay clearfix">
|
||||||
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
|
||||||
{{#if @blog.navigation}}
|
{{#if @blog.navigation}}
|
||||||
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -37,11 +37,13 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{!-- jQuery needs to come before `{{ghost_foot}}` so that jQuery can be used in code injection --}}
|
||||||
|
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||||
{{! Ghost outputs important scripts and data with this tag }}
|
{{! Ghost outputs important scripts and data with this tag }}
|
||||||
{{ghost_foot}}
|
{{ghost_foot}}
|
||||||
|
|
||||||
{{! The main JavaScript file for Casper }}
|
|
||||||
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
|
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
|
||||||
|
{{! The main JavaScript file for Casper }}
|
||||||
<script type="text/javascript" src="{{asset "js/index.js"}}"></script>
|
<script type="text/javascript" src="{{asset "js/index.js"}}"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{{! The big featured header }}
|
{{! The big featured header }}
|
||||||
<header class="main-header {{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}">
|
<header class="main-header {{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}">
|
||||||
<nav class="main-nav overlay clearfix">
|
<nav class="main-nav overlay clearfix">
|
||||||
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
|
||||||
{{#if @blog.navigation}}
|
{{#if @blog.navigation}}
|
||||||
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"name": "Casper",
|
"name": "Casper",
|
||||||
"version": "1.2.0"
|
"version": "1.2.7"
|
||||||
}
|
}
|
||||||
|
2
page.hbs
2
page.hbs
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
||||||
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
||||||
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
|
||||||
{{#if @blog.navigation}}
|
{{#if @blog.navigation}}
|
||||||
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<p>{{excerpt words="26"}} <a class="read-more" href="{{url}}">»</a></p>
|
<p>{{excerpt words="26"}} <a class="read-more" href="{{url}}">»</a></p>
|
||||||
</section>
|
</section>
|
||||||
<footer class="post-meta">
|
<footer class="post-meta">
|
||||||
{{#if author.image}}<img class="author-thumb" src="{{author.image}}" alt="Author image" nopin="nopin" />{{/if}}
|
{{#if author.image}}<img class="author-thumb" src="{{author.image}}" alt="{{author.name}}" nopin="nopin" />{{/if}}
|
||||||
{{author}}
|
{{author}}
|
||||||
{{tags prefix=" on "}}
|
{{tags prefix=" on "}}
|
||||||
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time>
|
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time>
|
||||||
|
4
post.hbs
4
post.hbs
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
||||||
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
||||||
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
|
||||||
{{#if @blog.navigation}}
|
{{#if @blog.navigation}}
|
||||||
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
<section class="share">
|
<section class="share">
|
||||||
<h4>Share this post</h4>
|
<h4>Share this post</h4>
|
||||||
<a class="icon-twitter" href="https://twitter.com/share?text={{encode title}}&url={{url absolute="true"}}"
|
<a class="icon-twitter" href="https://twitter.com/intent/tweet?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>
|
||||||
|
2
tag.hbs
2
tag.hbs
@ -4,7 +4,7 @@
|
|||||||
{{! If we have a tag cover, display that - else blog cover - else nothing }}
|
{{! If we have a tag cover, display that - else blog cover - else nothing }}
|
||||||
<header class="main-header tag-head {{#if tag.image}}" style="background-image: url({{tag.image}}){{else}}{{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}{{/if}}">
|
<header class="main-header tag-head {{#if tag.image}}" style="background-image: url({{tag.image}}){{else}}{{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}{{/if}}">
|
||||||
<nav class="main-nav overlay clearfix">
|
<nav class="main-nav overlay clearfix">
|
||||||
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>{{/if}}
|
||||||
{{#if @blog.navigation}}
|
{{#if @blog.navigation}}
|
||||||
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Reference in New Issue
Block a user