mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2025-07-14 01:36:06 +00:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
c63a07e8df | |||
0e0898d7e9 | |||
2234b14bbd | |||
046d53e885 | |||
e49664eca4 | |||
21bdffbd8a | |||
ea33b00c0a |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -68,7 +68,7 @@ production stylesheet in assets/built/screen.css
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewport > main {
|
.site-content {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1042,7 +1042,7 @@ except for when immediately preceeded by a heading */
|
|||||||
|
|
||||||
|
|
||||||
/* Captions */
|
/* Captions */
|
||||||
.kg-card figcaption {
|
figcaption {
|
||||||
padding: 1.5rem 1.5rem 0;
|
padding: 1.5rem 1.5rem 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: rgba(0,0,0,0.5);
|
color: rgba(0,0,0,0.5);
|
||||||
@ -1050,9 +1050,12 @@ except for when immediately preceeded by a heading */
|
|||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
line-height: 1.4em;
|
line-height: 1.4em;
|
||||||
}
|
}
|
||||||
.kg-card figcaption strong {
|
figcaption strong {
|
||||||
color: rgba(0,0,0,0.8);
|
color: rgba(0,0,0,0.8);
|
||||||
}
|
}
|
||||||
|
figcaption a {
|
||||||
|
color: var(--ghost-accent-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Highly specific styles for traditional Instagram embeds */
|
/* Highly specific styles for traditional Instagram embeds */
|
||||||
|
@ -31,13 +31,13 @@
|
|||||||
<div class="author-profile-location">📍 {{location}}</div>
|
<div class="author-profile-location">📍 {{location}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if website}}
|
{{#if website}}
|
||||||
<span ></span><a class="author-profile-social-link" href="{{website}}" target="_blank" rel="noopener">{{website}}</a></span>
|
<span><a class="author-profile-social-link" href="{{website}}" target="_blank" rel="noopener">{{website}}</a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if twitter}}
|
{{#if twitter}}
|
||||||
<span ></span><a class="author-profile-social-link" href="{{twitter_url}}" target="_blank" rel="noopener">{{twitter_url}}</a></span>
|
<span><a class="author-profile-social-link" href="{{twitter_url}}" target="_blank" rel="noopener">{{twitter_url}}</a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if facebook}}
|
{{#if facebook}}
|
||||||
<span ></span><a class="author-profile-social-link" href="{{facebook_url}}" target="_blank" rel="noopener">{{facebook_url}}</a></span>
|
<span><a class="author-profile-social-link" href="{{facebook_url}}" target="_blank" rel="noopener">{{facebook_url}}</a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -60,10 +60,10 @@
|
|||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main>
|
<div class="site-content">
|
||||||
{{!-- All other templates get inserted here, index.hbs, post.hbs, etc --}}
|
{{!-- All other templates get inserted here, index.hbs, post.hbs, etc --}}
|
||||||
{{{body}}}
|
{{{body}}}
|
||||||
</main>
|
</div>
|
||||||
|
|
||||||
{{!-- The global footer at the very bottom of the screen --}}
|
{{!-- The global footer at the very bottom of the screen --}}
|
||||||
<footer class="site-footer outer">
|
<footer class="site-footer outer">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "casper",
|
"name": "casper",
|
||||||
"description": "A clean, minimal default theme for the Ghost publishing platform",
|
"description": "A clean, minimal default theme for the Ghost publishing platform",
|
||||||
"demo": "https://demo.ghost.io",
|
"demo": "https://demo.ghost.io",
|
||||||
"version": "4.0.5",
|
"version": "4.1.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"ghost": ">=4.0.0",
|
"ghost": ">=4.0.0",
|
||||||
"ghost-api": "v4"
|
"ghost-api": "v4"
|
||||||
|
51
page.hbs
51
page.hbs
@ -7,34 +7,39 @@ into the {body} tag of the default.hbs template --}}
|
|||||||
{{#post}}
|
{{#post}}
|
||||||
{{!-- Everything inside the #post block pulls data from the page --}}
|
{{!-- Everything inside the #post block pulls data from the page --}}
|
||||||
|
|
||||||
<article class="article {{post_class}}">
|
<main id="site-main" class="site-main">
|
||||||
|
<article class="article {{post_class}}">
|
||||||
|
|
||||||
<header class="article-header gh-canvas">
|
<header class="article-header gh-canvas">
|
||||||
{{#if feature_image}}
|
{{#if feature_image}}
|
||||||
<figure class="article-image">
|
<figure class="article-image">
|
||||||
{{!-- This is a responsive image, it loads different sizes depending on device
|
{{!-- This is a responsive image, it loads different sizes depending on device
|
||||||
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
|
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
|
||||||
<img
|
<img
|
||||||
srcset="{{img_url feature_image size="s"}} 300w,
|
srcset="{{img_url feature_image size="s"}} 300w,
|
||||||
{{img_url feature_image size="m"}} 600w,
|
{{img_url feature_image size="m"}} 600w,
|
||||||
{{img_url feature_image size="l"}} 1000w,
|
{{img_url feature_image size="l"}} 1000w,
|
||||||
{{img_url feature_image size="xl"}} 2000w"
|
{{img_url feature_image size="xl"}} 2000w"
|
||||||
sizes="(min-width: 1400px) 1400px, 92vw"
|
sizes="(min-width: 1400px) 1400px, 92vw"
|
||||||
src="{{img_url feature_image size="xl"}}"
|
src="{{img_url feature_image size="xl"}}"
|
||||||
alt="{{title}}"
|
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
|
||||||
/>
|
/>
|
||||||
</figure>
|
{{#if feature_image_caption}}
|
||||||
{{/if}}
|
<figcaption>{{feature_image_caption}}</figcaption>
|
||||||
</header>
|
{{/if}}
|
||||||
|
</figure>
|
||||||
|
{{/if}}
|
||||||
|
</header>
|
||||||
|
|
||||||
<section class="gh-content gh-canvas">
|
<section class="gh-content gh-canvas">
|
||||||
|
|
||||||
<h1 class="article-title">{{title}}</h1>
|
<h1 class="article-title">{{title}}</h1>
|
||||||
|
|
||||||
{{content}}
|
{{content}}
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
</main>
|
||||||
|
|
||||||
{{/post}}
|
{{/post}}
|
@ -14,7 +14,7 @@ which templates loop over to generate a list of posts. --}}
|
|||||||
{{img_url feature_image size="xl"}} 2000w"
|
{{img_url feature_image size="xl"}} 2000w"
|
||||||
sizes="(max-width: 1000px) 400px, 800px"
|
sizes="(max-width: 1000px) 400px, 800px"
|
||||||
src="{{img_url feature_image size="m"}}"
|
src="{{img_url feature_image size="m"}}"
|
||||||
alt="{{title}}"
|
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
@ -31,9 +31,9 @@ which templates loop over to generate a list of posts. --}}
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
<h2 class="post-card-title">{{title}}</h2>
|
<h2 class="post-card-title">{{title}}</h2>
|
||||||
</header>
|
</header>
|
||||||
<section class="post-card-excerpt">
|
<div class="post-card-excerpt">
|
||||||
<p>{{excerpt}}</p>
|
<p>{{excerpt}}</p>
|
||||||
</section>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<footer class="post-card-meta">
|
<footer class="post-card-meta">
|
||||||
|
129
post.hbs
129
post.hbs
@ -7,75 +7,80 @@ into the {body} tag of the default.hbs template --}}
|
|||||||
{{#post}}
|
{{#post}}
|
||||||
{{!-- Everything inside the #post block pulls data from the post --}}
|
{{!-- Everything inside the #post block pulls data from the post --}}
|
||||||
|
|
||||||
<article class="article {{post_class}}">
|
<main id="site-main" class="site-main">
|
||||||
|
<article class="article {{post_class}}">
|
||||||
|
|
||||||
<header class="article-header gh-canvas">
|
<header class="article-header gh-canvas">
|
||||||
|
|
||||||
{{#if primary_tag}}
|
{{#if primary_tag}}
|
||||||
<section class="article-tag">
|
<section class="article-tag">
|
||||||
<a href="{{primary_tag.url}}">{{primary_tag.name}}</a>
|
<a href="{{primary_tag.url}}">{{primary_tag.name}}</a>
|
||||||
</section>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<h1 class="article-title">{{title}}</h1>
|
|
||||||
|
|
||||||
{{#if custom_excerpt}}
|
|
||||||
<p class="article-excerpt">{{custom_excerpt}}</p>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<div class="article-byline">
|
|
||||||
<section class="article-byline-content">
|
|
||||||
<ul class="author-list">
|
|
||||||
{{#foreach authors}}
|
|
||||||
<li class="author-list-item">
|
|
||||||
{{#if profile_image}}
|
|
||||||
<a href="{{url}}" class="author-avatar">
|
|
||||||
<img class="author-profile-image" src="{{img_url profile_image size="xs"}}" alt="{{name}}" />
|
|
||||||
</a>
|
|
||||||
{{else}}
|
|
||||||
<a href="{{url}}" class="author-avatar author-profile-image">{{> "icons/avatar"}}</a>
|
|
||||||
{{/if}}
|
|
||||||
</li>
|
|
||||||
{{/foreach}}
|
|
||||||
</ul>
|
|
||||||
<div class="article-byline-meta">
|
|
||||||
<h4 class="author-name">{{authors}}</h4>
|
|
||||||
<div class="byline-meta-content">
|
|
||||||
<time class="byline-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
|
|
||||||
<span class="byline-reading-time"><span class="bull">•</span> {{reading_time}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
</div>
|
{{/if}}
|
||||||
|
|
||||||
{{#if feature_image}}
|
<h1 class="article-title">{{title}}</h1>
|
||||||
<figure class="article-image">
|
|
||||||
{{!-- This is a responsive image, it loads different sizes depending on device
|
|
||||||
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
|
|
||||||
<img
|
|
||||||
srcset="{{img_url feature_image size="s"}} 300w,
|
|
||||||
{{img_url feature_image size="m"}} 600w,
|
|
||||||
{{img_url feature_image size="l"}} 1000w,
|
|
||||||
{{img_url feature_image size="xl"}} 2000w"
|
|
||||||
sizes="(min-width: 1400px) 1400px, 92vw"
|
|
||||||
src="{{img_url feature_image size="xl"}}"
|
|
||||||
alt="{{title}}"
|
|
||||||
/>
|
|
||||||
</figure>
|
|
||||||
{{/if}}
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<section class="gh-content gh-canvas">
|
{{#if custom_excerpt}}
|
||||||
{{content}}
|
<p class="article-excerpt">{{custom_excerpt}}</p>
|
||||||
</section>
|
{{/if}}
|
||||||
|
|
||||||
{{!--
|
<div class="article-byline">
|
||||||
<section class="article-comments gh-canvas">
|
<section class="article-byline-content">
|
||||||
If you want to embed comments, this is a good place to paste your code!
|
<ul class="author-list">
|
||||||
</section>
|
{{#foreach authors}}
|
||||||
--}}
|
<li class="author-list-item">
|
||||||
|
{{#if profile_image}}
|
||||||
|
<a href="{{url}}" class="author-avatar">
|
||||||
|
<img class="author-profile-image" src="{{img_url profile_image size="xs"}}" alt="{{name}}" />
|
||||||
|
</a>
|
||||||
|
{{else}}
|
||||||
|
<a href="{{url}}" class="author-avatar author-profile-image">{{> "icons/avatar"}}</a>
|
||||||
|
{{/if}}
|
||||||
|
</li>
|
||||||
|
{{/foreach}}
|
||||||
|
</ul>
|
||||||
|
<div class="article-byline-meta">
|
||||||
|
<h4 class="author-name">{{authors}}</h4>
|
||||||
|
<div class="byline-meta-content">
|
||||||
|
<time class="byline-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
|
||||||
|
<span class="byline-reading-time"><span class="bull">•</span> {{reading_time}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
</article>
|
{{#if feature_image}}
|
||||||
|
<figure class="article-image">
|
||||||
|
{{!-- This is a responsive image, it loads different sizes depending on device
|
||||||
|
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
|
||||||
|
<img
|
||||||
|
srcset="{{img_url feature_image size="s"}} 300w,
|
||||||
|
{{img_url feature_image size="m"}} 600w,
|
||||||
|
{{img_url feature_image size="l"}} 1000w,
|
||||||
|
{{img_url feature_image size="xl"}} 2000w"
|
||||||
|
sizes="(min-width: 1400px) 1400px, 92vw"
|
||||||
|
src="{{img_url feature_image size="xl"}}"
|
||||||
|
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
|
||||||
|
/>
|
||||||
|
{{#if feature_image_caption}}
|
||||||
|
<figcaption>{{feature_image_caption}}</figcaption>
|
||||||
|
{{/if}}
|
||||||
|
</figure>
|
||||||
|
{{/if}}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<section class="gh-content gh-canvas">
|
||||||
|
{{content}}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{{!--
|
||||||
|
<section class="article-comments gh-canvas">
|
||||||
|
If you want to embed comments, this is a good place to paste your code!
|
||||||
|
</section>
|
||||||
|
--}}
|
||||||
|
|
||||||
|
</article>
|
||||||
|
</main>
|
||||||
|
|
||||||
{{!-- A signup call to action is displayed here, unless viewed as a logged-in member --}}
|
{{!-- A signup call to action is displayed here, unless viewed as a logged-in member --}}
|
||||||
{{#unless @member}}
|
{{#unless @member}}
|
||||||
|
12
tag.hbs
12
tag.hbs
@ -2,12 +2,12 @@
|
|||||||
{{!-- 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 --}}
|
||||||
|
|
||||||
|
|
||||||
<section class="outer">
|
<main id="site-main" class="site-main outer">
|
||||||
<div class="inner posts">
|
<div class="inner posts">
|
||||||
<div class="post-feed">
|
<div class="post-feed">
|
||||||
|
|
||||||
{{#tag}}
|
{{#tag}}
|
||||||
<header class="post-card post-card-large">
|
<section class="post-card post-card-large">
|
||||||
{{#if feature_image}}
|
{{#if feature_image}}
|
||||||
<div class="post-card-image-link">
|
<div class="post-card-image-link">
|
||||||
{{!-- This is a responsive image, it loads different sizes depending on device
|
{{!-- This is a responsive image, it loads different sizes depending on device
|
||||||
@ -30,7 +30,7 @@
|
|||||||
<div class="post-card-primary-tag">Tagged</div>
|
<div class="post-card-primary-tag">Tagged</div>
|
||||||
<h2 class="post-card-title">{{name}}</h2>
|
<h2 class="post-card-title">{{name}}</h2>
|
||||||
</header>
|
</header>
|
||||||
<section class="post-card-excerpt">
|
<div class="post-card-excerpt">
|
||||||
<p>
|
<p>
|
||||||
{{#if description}}
|
{{#if description}}
|
||||||
{{description}}
|
{{description}}
|
||||||
@ -38,11 +38,11 @@
|
|||||||
A collection of {{plural ../pagination.total empty='zero posts' singular='% post' plural='% posts'}}
|
A collection of {{plural ../pagination.total empty='zero posts' singular='% post' plural='% posts'}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>{{!--/.post-card-content--}}
|
</div>{{!--/.post-card-content--}}
|
||||||
|
|
||||||
</header>
|
</section>
|
||||||
{{/tag}}
|
{{/tag}}
|
||||||
|
|
||||||
{{#foreach posts}}
|
{{#foreach posts}}
|
||||||
@ -54,4 +54,4 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</main>
|
||||||
|
Reference in New Issue
Block a user