mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-13 17:26:08 +00:00
Compare commits
29 Commits
Author | SHA1 | Date | |
---|---|---|---|
1deac8284c | |||
4c5a48af97 | |||
3888fd30fc | |||
2ed0e02eae | |||
7dd5f54e69 | |||
51d444f32f | |||
2334ca8aa4 | |||
be6b9750d9 | |||
5487b4da8d | |||
ccf903feff | |||
3d74b1b918 | |||
26a25208e1 | |||
805925528c | |||
68e48cfb04 | |||
c578765491 | |||
ba5d559d8c | |||
b06c57f1e1 | |||
99ff118174 | |||
054cd87653 | |||
5060c945e6 | |||
d07d6dee09 | |||
0d8228ff05 | |||
27270d3de3 | |||
09476487f0 | |||
d2d796241b | |||
c1b77b74cb | |||
95cec988f5 | |||
12e897d374 | |||
d6998b3ba5 |
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2013-2016 Ghost Foundation
|
Copyright (c) 2013-2017 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
|
||||||
|
13
README.md
13
README.md
@ -1,16 +1,7 @@
|
|||||||
# Casper
|
# Casper
|
||||||
|
|
||||||
The default theme for [Ghost](http://github.com/tryghost/ghost/).
|
The default theme for [Ghost](http://github.com/tryghost/ghost/). Casper 1.4 is the last release of Casper's original design, created to be compatible **ONLY with Ghost 1.0** and above. If you are running an earlier version of Ghost, you will need [Casper 1.3.7](https://github.com/TryGhost/Casper/releases/tag/1.3.7). For all other versions of Ghost, we recommend switching to the [latest release](https://github.com/TryGhost/Casper/releases) of Casper, with an updated design.
|
||||||
|
|
||||||
To download, visit the [releases](https://github.com/TryGhost/Casper/releases) page.
|
|
||||||
|
|
||||||
## Copyright & License
|
## Copyright & License
|
||||||
|
|
||||||
Copyright (c) 2013-2016 Ghost Foundation - Released under the MIT License.
|
Copyright (c) 2013-2017 Ghost Foundation - Released under the [MIT license](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.
|
|
||||||
|
@ -295,6 +295,10 @@ li li {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
li > p:last-of-type {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
display: block;
|
display: block;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
@ -442,7 +446,7 @@ margin on the iframe, cause it breaks stuff. */
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea, select, input {
|
textarea, select, input:not([type="radio"]):not([type="checkbox"]){
|
||||||
width: 260px;
|
width: 260px;
|
||||||
padding: 6px 9px;
|
padding: 6px 9px;
|
||||||
margin: 0 0 5px 0;
|
margin: 0 0 5px 0;
|
||||||
@ -833,8 +837,8 @@ body.nav-opened .nav {
|
|||||||
/* Hide when there's no cover image or on page2+ */
|
/* Hide when there's no cover image or on page2+ */
|
||||||
.no-cover .scroll-down,
|
.no-cover .scroll-down,
|
||||||
.no-cover.main-header:after,
|
.no-cover.main-header:after,
|
||||||
.archive-template .scroll-down,
|
.paged .scroll-down,
|
||||||
.archive-template .main-header:after {
|
.paged .main-header:after {
|
||||||
display: none
|
display: none
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -976,13 +980,13 @@ body.nav-opened .nav {
|
|||||||
/* Add subtle load-in animation for content on the home page */
|
/* Add subtle load-in animation for content on the home page */
|
||||||
.home-template .page-title {
|
.home-template .page-title {
|
||||||
-webkit-animation: fade-in-down 0.6s;
|
-webkit-animation: fade-in-down 0.6s;
|
||||||
animation: fade-in-down 0.6s;
|
animation: fade-in-down 0.6s both;
|
||||||
-webkit-animation-delay: 0.2s;
|
-webkit-animation-delay: 0.2s;
|
||||||
animation-delay: 0.2s;
|
animation-delay: 0.2s;
|
||||||
}
|
}
|
||||||
.home-template .page-description {
|
.home-template .page-description {
|
||||||
-webkit-animation: fade-in-down 0.9s;
|
-webkit-animation: fade-in-down 0.9s;
|
||||||
animation: fade-in-down 0.9s;
|
animation: fade-in-down 0.9s both;
|
||||||
-webkit-animation-delay: 0.1s;
|
-webkit-animation-delay: 0.1s;
|
||||||
animation-delay: 0.1s;
|
animation-delay: 0.1s;
|
||||||
}
|
}
|
||||||
@ -1019,6 +1023,10 @@ body:not(.post-template) .post-title {
|
|||||||
font-size: 3.6rem;
|
font-size: 3.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.page-template .post-title {
|
||||||
|
font-size: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.post-title a {
|
.post-title a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
@ -1117,19 +1125,23 @@ body:not(.post-template) .post-title {
|
|||||||
5. Single Post - When you click on an individual post
|
5. Single Post - When you click on an individual post
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
.post-template .post-header {
|
.post-template .post-header,
|
||||||
|
.page-template .post-header {
|
||||||
margin-bottom: 3.4rem;
|
margin-bottom: 3.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-template .post-title {
|
.post-template .post-title,
|
||||||
|
.page-template .post-title {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-template .post-meta {
|
.post-template .post-meta,
|
||||||
|
.page-template .post-meta {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-template .post-date {
|
.post-template .post-date,
|
||||||
|
.page-template .post-date {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border: none;
|
border: none;
|
||||||
@ -1138,19 +1150,22 @@ body:not(.post-template) .post-title {
|
|||||||
/* Stop elements, such as img wider than the post content, from
|
/* Stop elements, such as img wider than the post content, from
|
||||||
creating horizontal scroll - slight hack due to imperfections
|
creating horizontal scroll - slight hack due to imperfections
|
||||||
with browser width % calculations and rounding */
|
with browser width % calculations and rounding */
|
||||||
.post-template .content {
|
.post-template .content,
|
||||||
|
.page-template .content {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tweak the .post wrapper style */
|
/* Tweak the .post wrapper style */
|
||||||
.post-template .post {
|
.post-template .post,
|
||||||
|
.page-template .post {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Kill that stylish little circle that was on the border, too */
|
/* Kill that stylish little circle that was on the border, too */
|
||||||
.post-template .post:after {
|
.post-template .post:after,
|
||||||
|
.page-template .post:after {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1400,7 +1415,7 @@ body:not(.post-template) .post-title {
|
|||||||
|
|
||||||
/* Turn off meta for page2+ to make room for extra
|
/* Turn off meta for page2+ to make room for extra
|
||||||
pagination prev/next links */
|
pagination prev/next links */
|
||||||
.archive-template .author-profile .author-meta {
|
.paged .author-profile .author-meta {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1629,12 +1644,12 @@ body:not(.post-template) .post-title {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* On page2+ make all the headers smaller */
|
/* On page2+ make all the headers smaller */
|
||||||
.archive-template .main-header {
|
.paged .main-header {
|
||||||
max-height: 30vh;
|
max-height: 30vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* On page2+ show extra pagination controls at the top of post list */
|
/* On page2+ show extra pagination controls at the top of post list */
|
||||||
.archive-template .extra-pagination {
|
.paged .extra-pagination {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1758,7 +1773,7 @@ body:not(.post-template) .post-title {
|
|||||||
.scroll-down,
|
.scroll-down,
|
||||||
.home-template .main-header:after { display: none; }
|
.home-template .main-header:after { display: none; }
|
||||||
|
|
||||||
.archive-template .main-header {
|
.paged .main-header {
|
||||||
min-height: 180px;
|
min-height: 180px;
|
||||||
padding: 10% 0;
|
padding: 10% 0;
|
||||||
}
|
}
|
||||||
@ -1785,6 +1800,10 @@ body:not(.post-template) .post-title {
|
|||||||
font-size: 3.2rem;
|
font-size: 3.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.page-template .post-title {
|
||||||
|
font-size: 4.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
margin: 2.4em 0;
|
margin: 2.4em 0;
|
||||||
}
|
}
|
||||||
@ -1900,7 +1919,7 @@ body:not(.post-template) .post-title {
|
|||||||
height: 30vh;
|
height: 30vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.archive-template .main-header {
|
.paged .main-header {
|
||||||
max-height: 20vh;
|
max-height: 20vh;
|
||||||
min-height: 160px;
|
min-height: 160px;
|
||||||
padding: 10% 0;
|
padding: 10% 0;
|
||||||
@ -1987,11 +2006,13 @@ body:not(.post-template) .post-title {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-template .post-header {
|
.post-template .post-header,
|
||||||
|
.page-template .post-header {
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-template .post-date {
|
.post-template .post-date,
|
||||||
|
.page-template .post-date {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2051,7 +2072,12 @@ body:not(.post-template) .post-title {
|
|||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-template .site-footer {
|
body.page-template .post-title {
|
||||||
|
font-size: 2.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-template .site-footer,
|
||||||
|
.page-template .site-footer {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2136,7 +2162,7 @@ body:not(.post-template) .post-title {
|
|||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.archive-template .main-header .page-description {
|
.paged .main-header .page-description {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
assets/screenshot-desktop.jpg
Normal file
BIN
assets/screenshot-desktop.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 71 KiB |
BIN
assets/screenshot-mobile.jpg
Normal file
BIN
assets/screenshot-mobile.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 115 KiB |
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{{!-- Everything inside the #author tags pulls data from the author --}}
|
{{!-- Everything inside the #author tags pulls data from the author --}}
|
||||||
{{#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_image}}" style="background-image: url({{cover_image}}){{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.title}}" /></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}}
|
||||||
@ -15,9 +15,9 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section class="author-profile inner">
|
<section class="author-profile inner">
|
||||||
{{#if image}}
|
{{#if profile_image}}
|
||||||
<figure class="author-image">
|
<figure class="author-image">
|
||||||
<div class="img" style="background-image: url({{image}})"><span class="hidden">{{name}}'s Picture</span></div>
|
<div class="img" style="background-image: url({{profile_image}})"><span class="hidden">{{name}}'s Picture</span></div>
|
||||||
</figure>
|
</figure>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<h1 class="author-title">{{name}}</h1>
|
<h1 class="author-title">{{name}}</h1>
|
||||||
|
@ -7,18 +7,15 @@
|
|||||||
|
|
||||||
{{!-- Page Meta --}}
|
{{!-- Page Meta --}}
|
||||||
<title>{{meta_title}}</title>
|
<title>{{meta_title}}</title>
|
||||||
<meta name="description" content="{{meta_description}}" />
|
|
||||||
|
|
||||||
{{!-- Mobile Meta --}}
|
{{!-- Mobile Meta --}}
|
||||||
<meta name="HandheldFriendly" content="True" />
|
<meta name="HandheldFriendly" content="True" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|
||||||
{{!-- Brand icon --}}
|
|
||||||
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
|
|
||||||
|
|
||||||
{{!-- Styles'n'Scripts --}}
|
{{!-- Styles'n'Scripts --}}
|
||||||
<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400" />
|
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}" />
|
||||||
|
|
||||||
|
|
||||||
{{!-- Ghost outputs important style and meta data with this tag --}}
|
{{!-- Ghost outputs important style and meta data with this tag --}}
|
||||||
{{ghost_head}}
|
{{ghost_head}}
|
||||||
@ -42,7 +39,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{!-- jQuery needs to come before `{{ghost_foot}}` so that jQuery can be used in code injection --}}
|
{{!-- 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.12.0.min.js"></script>
|
<script type="text/javascript" src="//code.jquery.com/jquery-1.12.0.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}}
|
||||||
{{!-- Fitvids makes video embeds responsive and awesome --}}
|
{{!-- Fitvids makes video embeds responsive and awesome --}}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{{!-- 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 --}}
|
{{!-- 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_image}}" style="background-image: url({{@blog.cover_image}}){{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.title}}" /></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}}
|
||||||
|
39
package.json
39
package.json
@ -1,4 +1,39 @@
|
|||||||
{
|
{
|
||||||
"name": "Casper",
|
"name": "casper",
|
||||||
"version": "1.3.1"
|
"description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.",
|
||||||
|
"demo": "https://demo.ghost.io",
|
||||||
|
"version": "1.4.0",
|
||||||
|
"engines": {
|
||||||
|
"ghost": ">=0.9.0 <1.0.0"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"screenshots": {
|
||||||
|
"desktop": "assets/screenshot-desktop.jpg",
|
||||||
|
"mobile": "assets/screenshot-mobile.jpg"
|
||||||
|
},
|
||||||
|
"author": {
|
||||||
|
"name": "Ghost Foundation",
|
||||||
|
"email": "hello@ghost.org",
|
||||||
|
"url": "https://ghost.org"
|
||||||
|
},
|
||||||
|
"gpm": {
|
||||||
|
"type": "theme",
|
||||||
|
"categories": [
|
||||||
|
"Minimal",
|
||||||
|
"Personal Blogs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"posts_per_page": 5
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"ghost",
|
||||||
|
"theme"
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/TryGhost/Casper.git"
|
||||||
|
},
|
||||||
|
"bugs": "https://github.com/TryGhost/Casper/issues",
|
||||||
|
"contributors": "https://github.com/TryGhost/Casper/graphs/contributors"
|
||||||
}
|
}
|
||||||
|
4
page.hbs
4
page.hbs
@ -6,8 +6,8 @@
|
|||||||
{{!-- Everything inside the #post tags pulls data from the page --}}
|
{{!-- Everything inside the #post tags pulls data from the page --}}
|
||||||
{{#post}}
|
{{#post}}
|
||||||
|
|
||||||
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
<header class="main-header post-head {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
|
||||||
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
<nav class="main-nav {{#if feature_image}}overlay{{/if}} clearfix">
|
||||||
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></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>
|
||||||
|
@ -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.name}}" nopin="nopin" />{{/if}}
|
{{#if author.profile_image}}<img class="author-thumb" src="{{author.profile_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>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<ul>
|
<ul>
|
||||||
{{#foreach navigation}}
|
{{#foreach navigation}}
|
||||||
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="presentation"><a href="{{url absolute="true"}}">{{label}}</a></li>
|
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}"><a href="{{url absolute="true"}}">{{label}}</a></li>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</ul>
|
</ul>
|
||||||
{{#if @labs.subscribers}}
|
{{#if @labs.subscribers}}
|
||||||
|
12
post.hbs
12
post.hbs
@ -6,8 +6,8 @@
|
|||||||
{{!-- Everything inside the #post tags pulls data from the post --}}
|
{{!-- Everything inside the #post tags pulls data from the post --}}
|
||||||
{{#post}}
|
{{#post}}
|
||||||
|
|
||||||
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
<header class="main-header post-head {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
|
||||||
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
<nav class="main-nav {{#if feature_image}}overlay{{/if}} clearfix">
|
||||||
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></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>
|
||||||
@ -34,9 +34,9 @@
|
|||||||
{{!-- Everything inside the #author tags pulls data from the author --}}
|
{{!-- Everything inside the #author tags pulls data from the author --}}
|
||||||
{{#author}}
|
{{#author}}
|
||||||
|
|
||||||
{{#if image}}
|
{{#if profile_image}}
|
||||||
<figure class="author-image">
|
<figure class="author-image">
|
||||||
<a class="img" href="{{url}}" style="background-image: url({{image}})"><span class="hidden">{{name}}'s Picture</span></a>
|
<a class="img" href="{{url}}" style="background-image: url({{profile_image}})"><span class="hidden">{{name}}'s Picture</span></a>
|
||||||
</figure>
|
</figure>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
@ -90,7 +90,7 @@
|
|||||||
{{!-- Links to Previous/Next posts --}}
|
{{!-- Links to Previous/Next posts --}}
|
||||||
<aside class="read-next">
|
<aside class="read-next">
|
||||||
{{#next_post}}
|
{{#next_post}}
|
||||||
<a class="read-next-story {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
|
<a class="read-next-story {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}" href="{{url}}">
|
||||||
<section class="post">
|
<section class="post">
|
||||||
<h2>{{title}}</h2>
|
<h2>{{title}}</h2>
|
||||||
<p>{{excerpt words="19"}}…</p>
|
<p>{{excerpt words="19"}}…</p>
|
||||||
@ -98,7 +98,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{{/next_post}}
|
{{/next_post}}
|
||||||
{{#prev_post}}
|
{{#prev_post}}
|
||||||
<a class="read-next-story prev {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
|
<a class="read-next-story prev {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}" href="{{url}}">
|
||||||
<section class="post">
|
<section class="post">
|
||||||
<h2>{{title}}</h2>
|
<h2>{{title}}</h2>
|
||||||
<p>{{excerpt words="19"}}…</p>
|
<p>{{excerpt words="19"}}…</p>
|
||||||
|
2
tag.hbs
2
tag.hbs
@ -2,7 +2,7 @@
|
|||||||
{{!-- 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 --}}
|
||||||
|
|
||||||
{{!-- 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.feature_image}}" style="background-image: url({{tag.feature_image}}){{else}}{{#if @blog.cover_image}}" style="background-image: url({{@blog.cover_image}}){{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.title}}" /></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}}
|
||||||
|
Reference in New Issue
Block a user