mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-14 17:56:05 +00:00
Compare commits
50 Commits
Author | SHA1 | Date | |
---|---|---|---|
2773ac926a | |||
cc59624ba4 | |||
6b42e9535c | |||
bc38e7df61 | |||
ab2a8261d7 | |||
ffea9590ea | |||
d32e9db4cb | |||
88666559f6 | |||
c94651d8fb | |||
5d01cb7a7c | |||
4f1c76f2e7 | |||
dd02a12258 | |||
e587980ccd | |||
b071548965 | |||
acc6896393 | |||
025fa6ea80 | |||
1b86190c4d | |||
37d7d0b4f0 | |||
329dfef410 | |||
baea6bb2fd | |||
dffc9f3cb3 | |||
7f42eaabfe | |||
dcfddacfa1 | |||
031ac1fb40 | |||
9339635abd | |||
0d3bafde1e | |||
7af816a48e | |||
a5dcaf6cd5 | |||
e59dcaa256 | |||
8b35959ff6 | |||
94422fffe2 | |||
47e0b19562 | |||
8ec65a45e4 | |||
8e220b089b | |||
e4861a0d78 | |||
243192f0d9 | |||
c516c10383 | |||
46dc55769e | |||
191f5f74f1 | |||
e559857b12 | |||
8f9a185a80 | |||
bcb586b862 | |||
70ad5bde8b | |||
b064e9fc87 | |||
1e6e807f94 | |||
9cf7aea47c | |||
6db90c9fec | |||
bc7b44f01b | |||
db4979d32d | |||
ff591092e2 |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -16,4 +16,5 @@
|
|||||||
<glyph unicode="" d="M435.2 454.4h-56.32c-14.131 0-20.48-11.469-20.48-25.6v-435.2h102.4v435.2c0 14.131-11.443 25.6-25.6 25.6zM281.6 300.8h-56.32c-14.131 0-20.48-11.469-20.48-25.6v-281.6h102.4v281.6c0 14.131-11.443 25.6-25.6 25.6zM128 147.2h-56.32c-14.131 0-20.48-11.443-20.48-25.6v-128h102.4v128c0 14.157-11.469 25.6-25.6 25.6z" />
|
<glyph unicode="" d="M435.2 454.4h-56.32c-14.131 0-20.48-11.469-20.48-25.6v-435.2h102.4v435.2c0 14.131-11.443 25.6-25.6 25.6zM281.6 300.8h-56.32c-14.131 0-20.48-11.469-20.48-25.6v-281.6h102.4v281.6c0 14.131-11.443 25.6-25.6 25.6zM128 147.2h-56.32c-14.131 0-20.48-11.443-20.48-25.6v-128h102.4v128c0 14.157-11.469 25.6-25.6 25.6z" />
|
||||||
<glyph unicode="" d="M256 428.8c-70.707 0-128-57.319-128-128 0-122.214 128-281.6 128-281.6s128 159.386 128 281.6c0 70.681-57.293 128-128 128zM256 230.144c-38.169 0-69.12 30.951-69.12 69.12s30.951 69.12 69.12 69.12 69.12-30.951 69.12-69.12-30.95-69.12-69.12-69.12z" />
|
<glyph unicode="" d="M256 428.8c-70.707 0-128-57.319-128-128 0-122.214 128-281.6 128-281.6s128 159.386 128 281.6c0 70.681-57.293 128-128 128zM256 230.144c-38.169 0-69.12 30.951-69.12 69.12s30.951 69.12 69.12 69.12 69.12-30.951 69.12-69.12-30.95-69.12-69.12-69.12z" />
|
||||||
<glyph unicode="" d="M201.19 103.834l-20.736-20.582c-17.971-17.792-47.181-17.817-65.126 0-8.627 8.576-13.363 19.917-13.363 32.026s4.761 23.475 13.363 32.051l76.288 75.699c15.795 15.693 45.542 38.759 67.226 17.255 9.959-9.881 26.035-9.805 35.891 0.128 9.882 9.933 9.83 26.010-0.128 35.891-36.839 36.557-91.315 29.798-138.752-17.255l-76.288-75.699c-18.279-18.176-28.365-42.343-28.365-68.070 0-25.702 10.087-49.869 28.391-68.045 18.841-18.714 43.571-28.032 68.301-28.032s49.511 9.318 68.352 28.032l20.736 20.608c9.958 9.882 10.010 25.959 0.128 35.865-9.881 9.933-25.958 9.984-35.917 0.128zM432.409 397.85c-39.577 39.27-94.899 41.395-131.558 5.043l-25.831-25.626c-9.959-9.882-10.035-25.933-0.154-35.891 9.907-9.958 25.959-10.010 35.891-0.128l25.83 25.625c18.969 18.841 43.827 11.034 60.058-5.043 8.627-8.55 13.363-19.942 13.363-32.026 0-12.109-4.762-23.475-13.363-32.026l-81.408-80.742c-37.197-36.915-54.682-19.61-62.131-12.211-9.958 9.882-26.010 9.805-35.865-0.128-9.881-9.959-9.831-26.035 0.128-35.891 17.075-16.947 36.608-25.344 57.037-25.344 25.037 0 51.481 12.595 76.621 37.555l81.382 80.743c18.304 18.151 28.39 42.317 28.39 68.019s-10.087 49.894-28.39 68.070z" />
|
<glyph unicode="" d="M201.19 103.834l-20.736-20.582c-17.971-17.792-47.181-17.817-65.126 0-8.627 8.576-13.363 19.917-13.363 32.026s4.761 23.475 13.363 32.051l76.288 75.699c15.795 15.693 45.542 38.759 67.226 17.255 9.959-9.881 26.035-9.805 35.891 0.128 9.882 9.933 9.83 26.010-0.128 35.891-36.839 36.557-91.315 29.798-138.752-17.255l-76.288-75.699c-18.279-18.176-28.365-42.343-28.365-68.070 0-25.702 10.087-49.869 28.391-68.045 18.841-18.714 43.571-28.032 68.301-28.032s49.511 9.318 68.352 28.032l20.736 20.608c9.958 9.882 10.010 25.959 0.128 35.865-9.881 9.933-25.958 9.984-35.917 0.128zM432.409 397.85c-39.577 39.27-94.899 41.395-131.558 5.043l-25.831-25.626c-9.959-9.882-10.035-25.933-0.154-35.891 9.907-9.958 25.959-10.010 35.891-0.128l25.83 25.625c18.969 18.841 43.827 11.034 60.058-5.043 8.627-8.55 13.363-19.942 13.363-32.026 0-12.109-4.762-23.475-13.363-32.026l-81.408-80.742c-37.197-36.915-54.682-19.61-62.131-12.211-9.958 9.882-26.010 9.805-35.865-0.128-9.881-9.959-9.831-26.035 0.128-35.891 17.075-16.947 36.608-25.344 57.037-25.344 25.037 0 51.481 12.595 76.621 37.555l81.382 80.743c18.304 18.151 28.39 42.317 28.39 68.019s-10.087 49.894-28.39 68.070z" />
|
||||||
|
<glyph unicode="" d="M64 362.667h384q8.834 0 15.084-6.25t6.25-15.083-6.25-15.084-15.084-6.25h-384q-8.834 0-15.084 6.25t-6.25 15.084 6.25 15.083 15.084 6.25zM64 106.667h384q8.834 0 15.084-6.25t6.25-15.084-6.25-15.084-15.084-6.25h-384q-8.834 0-15.084 6.25t-6.25 15.084 6.25 15.084 15.084 6.25zM64 234.667h384q8.834 0 15.084-6.25t6.25-15.084-6.25-15.084-15.084-6.25h-384q-8.834 0-15.084 6.25t-6.25 15.084 6.25 15.084 15.084 6.25z" />
|
||||||
</font></defs></svg>
|
</font></defs></svg>
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
Binary file not shown.
@ -3,66 +3,24 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* globals jQuery, document */
|
/* globals jQuery, document */
|
||||||
(function ($, sr, undefined) {
|
(function ($, undefined) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var $document = $(document),
|
var $document = $(document);
|
||||||
|
|
||||||
// debouncing function from John Hann
|
|
||||||
// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
|
|
||||||
debounce = function (func, threshold, execAsap) {
|
|
||||||
var timeout;
|
|
||||||
|
|
||||||
return function debounced () {
|
|
||||||
var obj = this, args = arguments;
|
|
||||||
function delayed () {
|
|
||||||
if (!execAsap) {
|
|
||||||
func.apply(obj, args);
|
|
||||||
}
|
|
||||||
timeout = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (timeout) {
|
|
||||||
clearTimeout(timeout);
|
|
||||||
} else if (execAsap) {
|
|
||||||
func.apply(obj, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
timeout = setTimeout(delayed, threshold || 100);
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
$document.ready(function () {
|
$document.ready(function () {
|
||||||
|
|
||||||
var $postContent = $(".post-content");
|
var $postContent = $(".post-content");
|
||||||
$postContent.fitVids();
|
$postContent.fitVids();
|
||||||
|
|
||||||
function updateImageWidth() {
|
|
||||||
var $this = $(this),
|
|
||||||
contentWidth = $postContent.outerWidth(), // Width of the content
|
|
||||||
imageWidth = this.naturalWidth; // Original image resolution
|
|
||||||
|
|
||||||
if (imageWidth >= contentWidth) {
|
|
||||||
$this.addClass('full-img');
|
|
||||||
} else {
|
|
||||||
$this.removeClass('full-img');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var $img = $("img").on('load', updateImageWidth);
|
|
||||||
function casperFullImg() {
|
|
||||||
$img.each(updateImageWidth);
|
|
||||||
}
|
|
||||||
|
|
||||||
casperFullImg();
|
|
||||||
$(window).smartresize(casperFullImg);
|
|
||||||
|
|
||||||
$(".scroll-down").arctic_scroll();
|
$(".scroll-down").arctic_scroll();
|
||||||
|
|
||||||
});
|
$(".menu-button, .nav-cover, .nav-close").on("click", function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
$("body").toggleClass("nav-opened nav-closed");
|
||||||
|
});
|
||||||
|
|
||||||
// smartresize
|
});
|
||||||
jQuery.fn[sr] = function(fn) { return fn ? this.bind('resize', debounce(fn)) : this.trigger(sr); };
|
|
||||||
|
|
||||||
// Arctic Scroll by Paul Adam Davis
|
// Arctic Scroll by Paul Adam Davis
|
||||||
// https://github.com/PaulAdamDavis/Arctic-Scroll
|
// https://github.com/PaulAdamDavis/Arctic-Scroll
|
||||||
@ -95,4 +53,4 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
})(jQuery, 'smartresize');
|
})(jQuery);
|
||||||
|
12
author.hbs
12
author.hbs
@ -7,8 +7,10 @@
|
|||||||
{{#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">
|
||||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||||
<a class="subscribe-button icon-feed" href="{{url}}rss/">{{name}}</a>
|
{{#if @blog.navigation}}
|
||||||
|
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
||||||
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@ -19,7 +21,9 @@
|
|||||||
</figure>
|
</figure>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<h1 class="author-title">{{name}}</h1>
|
<h1 class="author-title">{{name}}</h1>
|
||||||
<h2 class="author-bio">{{bio}}</h2>
|
{{#if bio}}
|
||||||
|
<h2 class="author-bio">{{bio}}</h2>
|
||||||
|
{{/if}}
|
||||||
<div class="author-meta">
|
<div class="author-meta">
|
||||||
{{#if location}}<span class="author-location icon-location">{{location}}</span>{{/if}}
|
{{#if location}}<span class="author-location icon-location">{{location}}</span>{{/if}}
|
||||||
{{#if website}}<span class="author-link icon-link"><a href="{{website}}">{{website}}</a></span>{{/if}}
|
{{#if website}}<span class="author-link icon-link"><a href="{{website}}">{{website}}</a></span>{{/if}}
|
||||||
@ -34,4 +38,4 @@
|
|||||||
{{! The tag below includes the post loop - partials/loop.hbs }}
|
{{! The tag below includes the post loop - partials/loop.hbs }}
|
||||||
{{> "loop"}}
|
{{> "loop"}}
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
20
default.hbs
20
default.hbs
@ -21,15 +21,21 @@
|
|||||||
{{! Ghost outputs important style and meta data with this tag }}
|
{{! Ghost outputs important style and meta data with this tag }}
|
||||||
{{ghost_head}}
|
{{ghost_head}}
|
||||||
</head>
|
</head>
|
||||||
<body class="{{body_class}}">
|
<body class="{{body_class}} nav-closed">
|
||||||
|
|
||||||
{{! Everything else gets inserted here }}
|
{{navigation}}
|
||||||
{{{body}}}
|
|
||||||
|
|
||||||
<footer class="site-footer clearfix">
|
<div class="site-wrapper">
|
||||||
<section class="copyright"><a href="{{@blog.url}}">{{@blog.title}}</a> © {{date format="YYYY"}}</section>
|
|
||||||
<section class="poweredby">Proudly published with <a href="https://ghost.org">Ghost</a></section>
|
{{! Everything else gets inserted here }}
|
||||||
</footer>
|
{{{body}}}
|
||||||
|
|
||||||
|
<footer class="site-footer clearfix">
|
||||||
|
<section class="copyright"><a href="{{@blog.url}}">{{@blog.title}}</a> © {{date format="YYYY"}}</section>
|
||||||
|
<section class="poweredby">Proudly published with <a href="https://ghost.org">Ghost</a></section>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
{{! Ghost outputs important scripts and data with this tag }}
|
{{! Ghost outputs important scripts and data with this tag }}
|
||||||
{{ghost_foot}}
|
{{ghost_foot}}
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
<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 Logo" /></a>{{/if}}
|
||||||
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
{{#if @blog.navigation}}
|
||||||
|
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
||||||
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
<div class="vertical">
|
<div class="vertical">
|
||||||
<div class="main-header-content inner">
|
<div class="main-header-content inner">
|
||||||
@ -22,4 +24,4 @@
|
|||||||
{{! The tag below includes the post loop - partials/loop.hbs }}
|
{{! The tag below includes the post loop - partials/loop.hbs }}
|
||||||
{{> "loop"}}
|
{{> "loop"}}
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"name": "Casper",
|
"name": "Casper",
|
||||||
"version": "1.1.5"
|
"version": "1.2.1"
|
||||||
}
|
}
|
||||||
|
9
page.hbs
9
page.hbs
@ -8,15 +8,15 @@
|
|||||||
|
|
||||||
<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">
|
||||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||||
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
{{#if @blog.navigation}}
|
||||||
|
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
||||||
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="content" role="main">
|
<main class="content" role="main">
|
||||||
|
|
||||||
<article class="{{post_class}}">
|
<article class="{{post_class}}">
|
||||||
{{! Everything inside the #post tags pulls data from the post }}
|
|
||||||
|
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 class="post-title">{{title}}</h1>
|
<h1 class="post-title">{{title}}</h1>
|
||||||
@ -27,6 +27,5 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
{{/post}}
|
{{/post}}
|
||||||
|
13
partials/navigation.hbs
Normal file
13
partials/navigation.hbs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<div class="nav">
|
||||||
|
<h3 class="nav-title">Menu</h3>
|
||||||
|
<a href="#" class="nav-close">
|
||||||
|
<span class="hidden">Close</span>
|
||||||
|
</a>
|
||||||
|
<ul>
|
||||||
|
{{#foreach navigation}}
|
||||||
|
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="presentation"><a href="{{url absolute="true"}}">{{label}}</a></li>
|
||||||
|
{{/foreach}}
|
||||||
|
</ul>
|
||||||
|
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
||||||
|
</div>
|
||||||
|
<span class="nav-cover"></span>
|
27
post.hbs
27
post.hbs
@ -8,13 +8,14 @@
|
|||||||
|
|
||||||
<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">
|
||||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||||
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
{{#if @blog.navigation}}
|
||||||
|
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
||||||
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="content" role="main">
|
<main class="content" role="main">
|
||||||
|
|
||||||
<article class="{{post_class}}">
|
<article class="{{post_class}}">
|
||||||
|
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
@ -74,7 +75,25 @@
|
|||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<aside class="read-next">
|
||||||
|
{{#next_post}}
|
||||||
|
<a class="read-next-story {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
|
||||||
|
<section class="post">
|
||||||
|
<h2>{{title}}</h2>
|
||||||
|
<p>{{excerpt words="19"}}…</p>
|
||||||
|
</section>
|
||||||
|
</a>
|
||||||
|
{{/next_post}}
|
||||||
|
{{#prev_post}}
|
||||||
|
<a class="read-next-story prev {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
|
||||||
|
<section class="post">
|
||||||
|
<h2>{{title}}</h2>
|
||||||
|
<p>{{excerpt words="19"}}…</p>
|
||||||
|
</section>
|
||||||
|
</a>
|
||||||
|
{{/prev_post}}
|
||||||
|
</aside>
|
||||||
|
|
||||||
{{/post}}
|
{{/post}}
|
||||||
|
6
tag.hbs
6
tag.hbs
@ -4,8 +4,10 @@
|
|||||||
{{! 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">
|
||||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||||
<a class="subscribe-button icon-feed" href="{{@blog.url}}/tag/{{tag.slug}}/rss/">{{tag.name}}</a>
|
{{#if @blog.navigation}}
|
||||||
|
<a class="menu-button icon-menu" href="#"><span class="word">Menu</span></a>
|
||||||
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
<div class="vertical">
|
<div class="vertical">
|
||||||
<div class="main-header-content inner">
|
<div class="main-header-content inner">
|
||||||
|
Reference in New Issue
Block a user