mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-23 06:06:06 +00:00
Compare commits
19 Commits
Author | SHA1 | Date | |
---|---|---|---|
dd4ca42280 | |||
3bdd10a37a | |||
56c766303f | |||
bf37631aa2 | |||
82253b06f2 | |||
969a20ef6d | |||
dbaaf955af | |||
de94edc8a8 | |||
1292f2e22b | |||
933ebb86ca | |||
cb1196630b | |||
bcdbdab861 | |||
9a1988aa6d | |||
e2911f2d46 | |||
df09b7c375 | |||
09d827249f | |||
e264f609de | |||
12ad5f5404 | |||
ba798581ec |
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2013-2014 Ghost Foundation - Released under The MIT License.
|
Copyright (c) 2013-2015 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-2014 Ghost Foundation - Released under the MIT License.
|
Copyright (c) 2013-2015 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:
|
||||||
|
|
||||||
|
@ -14,10 +14,9 @@
|
|||||||
7. Third Party Elements
|
7. Third Party Elements
|
||||||
8. Pagination
|
8. Pagination
|
||||||
9. Footer
|
9. Footer
|
||||||
10. Media Queries (Medium Desktop)
|
10. Media Queries (Tablet)
|
||||||
11. Media Queries (Tablet)
|
11. Media Queries (Mobile)
|
||||||
12. Media Queries (Mobile)
|
12. Animations
|
||||||
13. Animations
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -1199,6 +1198,10 @@ body:not(.post-template) .post-title {
|
|||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pastebin */
|
||||||
|
.content .embedPastebin {
|
||||||
|
margin-bottom: 1.75em;
|
||||||
|
}
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
8. Pagination - Tools to let you flick between pages
|
8. Pagination - Tools to let you flick between pages
|
||||||
|
@ -27,8 +27,8 @@
|
|||||||
{{{body}}}
|
{{{body}}}
|
||||||
|
|
||||||
<footer class="site-footer clearfix">
|
<footer class="site-footer clearfix">
|
||||||
<section class="copyright"><a href="{{@blog.url}}">{{@blog.title}}</a> © {{date format="YYYY"}}</section>
|
<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>
|
<section class="poweredby">Proudly published with <a href="https://ghost.org">Ghost</a></section>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{{! Ghost outputs important scripts and data with this tag }}
|
{{! Ghost outputs important scripts and data with this tag }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"name": "Casper",
|
"name": "Casper",
|
||||||
"version": "1.1.0"
|
"version": "1.1.5"
|
||||||
}
|
}
|
||||||
|
20
page.hbs
20
page.hbs
@ -3,24 +3,30 @@
|
|||||||
{{! This is a page template. A page outputs content just like any other post, and has all the same
|
{{! 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. }}
|
attributes by default, but you can also customise it to behave differently if you prefer. }}
|
||||||
|
|
||||||
<nav class="main-nav clearfix">
|
{{! Everything inside the #post tags pulls data from the page }}
|
||||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
{{#post}}
|
||||||
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
|
||||||
</nav>
|
<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">
|
||||||
|
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
||||||
|
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
||||||
|
</nav>
|
||||||
|
</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 }}
|
{{! Everything inside the #post tags pulls data from the post }}
|
||||||
{{#post}}
|
|
||||||
|
|
||||||
<h1 class="post-title">{{title}}</h1>
|
<header class="post-header">
|
||||||
|
<h1 class="post-title">{{title}}</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
<section class="post-content">
|
<section class="post-content">
|
||||||
{{content}}
|
{{content}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{/post}}
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
{{/post}}
|
||||||
|
14
tag.hbs
14
tag.hbs
@ -1,8 +1,8 @@
|
|||||||
{{!< default}}
|
{{!< default}}
|
||||||
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}
|
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}
|
||||||
|
|
||||||
{{! The big featured header }}
|
{{! If we have a tag cover, display that - else blog cover - else nothing }}
|
||||||
<header class="main-header tag-head {{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/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>
|
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
||||||
<a class="subscribe-button icon-feed" href="{{@blog.url}}/tag/{{tag.slug}}/rss/">{{tag.name}}</a>
|
<a class="subscribe-button icon-feed" href="{{@blog.url}}/tag/{{tag.slug}}/rss/">{{tag.name}}</a>
|
||||||
@ -10,7 +10,13 @@
|
|||||||
<div class="vertical">
|
<div class="vertical">
|
||||||
<div class="main-header-content inner">
|
<div class="main-header-content inner">
|
||||||
<h1 class="page-title">{{tag.name}}</h1>
|
<h1 class="page-title">{{tag.name}}</h1>
|
||||||
<h2 class="page-description">A {{pagination.total}}-post collection</h2>
|
<h2 class="page-description">
|
||||||
|
{{#if tag.description}}
|
||||||
|
{{tag.description}}
|
||||||
|
{{else}}
|
||||||
|
A {{pagination.total}}-post collection
|
||||||
|
{{/if}}
|
||||||
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
@ -21,4 +27,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>
|
||||||
|
Reference in New Issue
Block a user