mirror of
https://github.com/spaytac/Casper.git
synced 2026-01-21 16:54:52 +00:00
Merge branch 'main' of github.com:TryGhost/Casper into TryGhost-main
This commit is contained in:
commit
3f9d47ae65
File diff suppressed because one or more lines are too long
2
assets/built/casper.js.map
Normal file → Executable file
2
assets/built/casper.js.map
Normal file → Executable file
File diff suppressed because one or more lines are too long
2
assets/built/screen.css
Normal file → Executable file
2
assets/built/screen.css
Normal file → Executable file
File diff suppressed because one or more lines are too long
2
assets/built/screen.css.map
Normal file → Executable file
2
assets/built/screen.css.map
Normal file → Executable file
File diff suppressed because one or more lines are too long
@ -273,7 +273,7 @@ production stylesheet in assets/built/screen.css
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-template.has-cover .gh-head {
|
:is(.home-template, .paged:not(.tag-template):not(.author-template)).has-cover .gh-head {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
@ -1145,6 +1145,41 @@ make sure this only happens on large viewports / desktop-ish devices.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pagination
|
||||||
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
|
.pagination {
|
||||||
|
display: none;
|
||||||
|
grid-template-columns: 1fr auto 1fr;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 8vmin;
|
||||||
|
}
|
||||||
|
|
||||||
|
html.no-infinite-scroll .pagination {
|
||||||
|
display: grid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pagination a {
|
||||||
|
font-size: 1.7rem;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pagination .page-number {
|
||||||
|
grid-column-start: 2;
|
||||||
|
color: var(--color-secondary-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pagination .older-posts {
|
||||||
|
grid-column-start: 3;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.pagination .page-number {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 7. Single Post
|
/* 7. Single Post
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|||||||
@ -14,6 +14,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
(function (window, document) {
|
(function (window, document) {
|
||||||
|
if (document.documentElement.classList.contains('no-infinite-scroll')) return;
|
||||||
|
|
||||||
// next link element
|
// next link element
|
||||||
var nextElement = document.querySelector('link[rel=next]');
|
var nextElement = document.querySelector('link[rel=next]');
|
||||||
if (!nextElement) {
|
if (!nextElement) {
|
||||||
|
|||||||
110
author.hbs
110
author.hbs
@ -2,69 +2,75 @@
|
|||||||
{{!-- 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 --}}
|
||||||
|
|
||||||
<main id="site-main" class="site-main outer">
|
<main id="site-main" class="site-main outer">
|
||||||
<div class="post-feed inner">
|
<div class="inner posts">
|
||||||
|
|
||||||
{{#author}}
|
<div class="post-feed">
|
||||||
<section class="post-card post-card-large">
|
|
||||||
|
|
||||||
{{#if feature_image}}
|
{{#author}}
|
||||||
<div class="post-card-image-link">
|
<section class="post-card post-card-large">
|
||||||
{{!-- 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 class="post-card-image"
|
|
||||||
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="(max-width: 1000px) 400px, 800px"
|
|
||||||
src="{{img_url feature_image size="m"}}"
|
|
||||||
alt="{{title}}"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<div class="post-card-content">
|
{{#if feature_image}}
|
||||||
<div class="post-card-content-link">
|
<div class="post-card-image-link">
|
||||||
|
{{!-- This is a responsive image, it loads different sizes depending on device
|
||||||
{{#if profile_image}}
|
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
|
||||||
<img class="author-profile-pic" src="{{profile_image}}" alt="{{name}}" />
|
<img class="post-card-image"
|
||||||
|
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="(max-width: 1000px) 400px, 800px"
|
||||||
|
src="{{img_url feature_image size="m"}}"
|
||||||
|
alt="{{title}}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<header class="post-card-header">
|
<div class="post-card-content">
|
||||||
<h2 class="post-card-title">{{name}}</h2>
|
<div class="post-card-content-link">
|
||||||
</header>
|
|
||||||
|
|
||||||
{{#if bio}}
|
{{#if profile_image}}
|
||||||
<div class="post-card-excerpt">{{bio}}</div>
|
<img class="author-profile-pic" src="{{profile_image}}" alt="{{name}}" />
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<footer class="author-profile-footer">
|
|
||||||
{{#if location}}
|
|
||||||
<div class="author-profile-location">{{location}}</div>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="author-profile-meta">
|
|
||||||
{{#if website}}
|
<header class="post-card-header">
|
||||||
<a class="author-profile-social-link" href="{{website}}" target="_blank" rel="noopener">{{website}}</a>
|
<h2 class="post-card-title">{{name}}</h2>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{{#if bio}}
|
||||||
|
<div class="post-card-excerpt">{{bio}}</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<footer class="author-profile-footer">
|
||||||
|
{{#if location}}
|
||||||
|
<div class="author-profile-location">{{location}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if twitter}}
|
<div class="author-profile-meta">
|
||||||
<a class="author-profile-social-link" href="{{twitter_url}}" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
|
{{#if website}}
|
||||||
{{/if}}
|
<a class="author-profile-social-link" href="{{website}}" target="_blank" rel="noopener">{{website}}</a>
|
||||||
{{#if facebook}}
|
{{/if}}
|
||||||
<a class="author-profile-social-link" href="{{facebook_url}}" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
|
{{#if twitter}}
|
||||||
{{/if}}
|
<a class="author-profile-social-link" href="{{twitter_url}}" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
|
||||||
</div>
|
{{/if}}
|
||||||
</footer>
|
{{#if facebook}}
|
||||||
|
<a class="author-profile-social-link" href="{{facebook_url}}" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
{{/author}}
|
{{/author}}
|
||||||
|
|
||||||
{{#foreach posts}}
|
{{#foreach posts}}
|
||||||
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
|
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
|
||||||
{{> "post-card"}}
|
{{> "post-card"}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{pagination}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@ -48,5 +48,7 @@ into the {body} of the default.hbs template --}}
|
|||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{pagination}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
358
package.json
Normal file → Executable file
358
package.json
Normal file → Executable file
@ -1,179 +1,179 @@
|
|||||||
{
|
{
|
||||||
"name": "casper-aytac",
|
"name": "casper-aytac",
|
||||||
"description": "A clean, minimal default theme for the Ghost publishing platform with little modifications by Aytac",
|
"description": "A clean, minimal default theme for the Ghost publishing platform with little modifications by Aytac",
|
||||||
"demo": "https://aytac.kirmizi.online",
|
"demo": "https://aytac.kirmizi.online",
|
||||||
"version": "5.4.1",
|
"version": "5.4.2",
|
||||||
"engines": {
|
"engines": {
|
||||||
"ghost": ">=5.0.0"
|
"ghost": ">=5.0.0"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"screenshots": {
|
"screenshots": {
|
||||||
"desktop": "assets/screenshot-desktop.jpg",
|
"desktop": "assets/screenshot-desktop.jpg",
|
||||||
"mobile": "assets/screenshot-mobile.jpg"
|
"mobile": "assets/screenshot-mobile.jpg"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "gulp",
|
"dev": "gulp",
|
||||||
"zip": "gulp zip",
|
"zip": "gulp zip",
|
||||||
"test": "gscan .",
|
"test": "gscan .",
|
||||||
"test:ci": "gscan --fatal --verbose .",
|
"test:ci": "gscan --fatal --verbose .",
|
||||||
"pretest": "gulp build",
|
"pretest": "gulp build",
|
||||||
"preship": "yarn test",
|
"preship": "yarn test",
|
||||||
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version && git push --follow-tags; else echo \"Uncomitted changes found.\" && exit 1; fi",
|
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version && git push --follow-tags; else echo \"Uncomitted changes found.\" && exit 1; fi",
|
||||||
"postship": "git fetch && gulp release"
|
"postship": "git fetch && gulp release"
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Ghost Foundation",
|
"name": "Ghost Foundation",
|
||||||
"email": "hello@ghost.org",
|
"email": "hello@ghost.org",
|
||||||
"url": "https://ghost.org/"
|
"url": "https://ghost.org/"
|
||||||
},
|
},
|
||||||
"gpm": {
|
"gpm": {
|
||||||
"type": "theme",
|
"type": "theme",
|
||||||
"categories": [
|
"categories": [
|
||||||
"Minimal",
|
"Minimal",
|
||||||
"Magazine"
|
"Magazine"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ghost",
|
"ghost",
|
||||||
"theme",
|
"theme",
|
||||||
"ghost-theme"
|
"ghost-theme"
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/TryGhost/Casper.git"
|
"url": "https://github.com/TryGhost/Casper.git"
|
||||||
},
|
},
|
||||||
"bugs": "https://github.com/TryGhost/Casper/issues",
|
"bugs": "https://github.com/TryGhost/Casper/issues",
|
||||||
"contributors": "https://github.com/TryGhost/Casper/graphs/contributors",
|
"contributors": "https://github.com/TryGhost/Casper/graphs/contributors",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tryghost/release-utils": "0.8.1",
|
"@tryghost/release-utils": "0.8.1",
|
||||||
"autoprefixer": "10.4.7",
|
"autoprefixer": "10.4.7",
|
||||||
"beeper": "2.1.0",
|
"beeper": "2.1.0",
|
||||||
"cssnano": "5.1.12",
|
"cssnano": "5.1.12",
|
||||||
"gscan": "4.34.0",
|
"gscan": "4.34.0",
|
||||||
"gulp": "4.0.2",
|
"gulp": "4.0.2",
|
||||||
"gulp-concat": "2.6.1",
|
"gulp-concat": "2.6.1",
|
||||||
"gulp-livereload": "4.0.2",
|
"gulp-livereload": "4.0.2",
|
||||||
"gulp-postcss": "9.0.1",
|
"gulp-postcss": "9.0.1",
|
||||||
"gulp-uglify": "3.0.2",
|
"gulp-uglify": "3.0.2",
|
||||||
"gulp-zip": "5.1.0",
|
"gulp-zip": "5.1.0",
|
||||||
"inquirer": "8.2.4",
|
"inquirer": "8.2.4",
|
||||||
"postcss": "8.2.13",
|
"postcss": "8.2.13",
|
||||||
"postcss-color-mod-function": "3.0.3",
|
"postcss-color-mod-function": "3.0.3",
|
||||||
"postcss-easy-import": "4.0.0",
|
"postcss-easy-import": "4.0.0",
|
||||||
"pump": "3.0.0"
|
"pump": "3.0.0"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"defaults"
|
"defaults"
|
||||||
],
|
],
|
||||||
"config": {
|
"config": {
|
||||||
"posts_per_page": 25,
|
"posts_per_page": 25,
|
||||||
"image_sizes": {
|
"image_sizes": {
|
||||||
"xxs": {
|
"xxs": {
|
||||||
"width": 30
|
"width": 30
|
||||||
},
|
},
|
||||||
"xs": {
|
"xs": {
|
||||||
"width": 100
|
"width": 100
|
||||||
},
|
},
|
||||||
"s": {
|
"s": {
|
||||||
"width": 300
|
"width": 300
|
||||||
},
|
},
|
||||||
"m": {
|
"m": {
|
||||||
"width": 600
|
"width": 600
|
||||||
},
|
},
|
||||||
"l": {
|
"l": {
|
||||||
"width": 1000
|
"width": 1000
|
||||||
},
|
},
|
||||||
"xl": {
|
"xl": {
|
||||||
"width": 2000
|
"width": 2000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"card_assets": true,
|
"card_assets": true,
|
||||||
"custom": {
|
"custom": {
|
||||||
"navigation_layout": {
|
"navigation_layout": {
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"options": [
|
"options": [
|
||||||
"Logo on cover",
|
"Logo on cover",
|
||||||
"Logo in the middle",
|
"Logo in the middle",
|
||||||
"Stacked"
|
"Stacked"
|
||||||
],
|
],
|
||||||
"default": "Logo on cover"
|
"default": "Logo on cover"
|
||||||
},
|
},
|
||||||
"title_font": {
|
"title_font": {
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"options": [
|
"options": [
|
||||||
"Modern sans-serif",
|
"Modern sans-serif",
|
||||||
"Elegant serif"
|
"Elegant serif"
|
||||||
],
|
],
|
||||||
"default": "Modern sans-serif"
|
"default": "Modern sans-serif"
|
||||||
},
|
},
|
||||||
"body_font": {
|
"body_font": {
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"options": [
|
"options": [
|
||||||
"Modern sans-serif",
|
"Modern sans-serif",
|
||||||
"Elegant serif"
|
"Elegant serif"
|
||||||
],
|
],
|
||||||
"default": "Elegant serif"
|
"default": "Elegant serif"
|
||||||
},
|
},
|
||||||
"show_publication_cover": {
|
"show_publication_cover": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true,
|
"default": true,
|
||||||
"group": "homepage"
|
"group": "homepage"
|
||||||
},
|
},
|
||||||
"header_style": {
|
"header_style": {
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"options": [
|
"options": [
|
||||||
"Center aligned",
|
"Center aligned",
|
||||||
"Left aligned",
|
"Left aligned",
|
||||||
"Hidden"
|
"Hidden"
|
||||||
],
|
],
|
||||||
"default": "Center aligned",
|
"default": "Center aligned",
|
||||||
"group": "homepage"
|
"group": "homepage"
|
||||||
},
|
},
|
||||||
"feed_layout": {
|
"feed_layout": {
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"options": [
|
"options": [
|
||||||
"Classic",
|
"Classic",
|
||||||
"Grid",
|
"Grid",
|
||||||
"List"
|
"List"
|
||||||
],
|
],
|
||||||
"default": "Classic",
|
"default": "Classic",
|
||||||
"group": "homepage"
|
"group": "homepage"
|
||||||
},
|
},
|
||||||
"color_scheme": {
|
"color_scheme": {
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"options": [
|
"options": [
|
||||||
"Light",
|
"Light",
|
||||||
"Dark",
|
"Dark",
|
||||||
"Auto"
|
"Auto"
|
||||||
],
|
],
|
||||||
"default": "Light"
|
"default": "Light"
|
||||||
},
|
},
|
||||||
"post_image_style": {
|
"post_image_style": {
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"options": [
|
"options": [
|
||||||
"Wide",
|
"Wide",
|
||||||
"Full",
|
"Full",
|
||||||
"Small",
|
"Small",
|
||||||
"Hidden"
|
"Hidden"
|
||||||
],
|
],
|
||||||
"default": "Wide",
|
"default": "Wide",
|
||||||
"group": "post"
|
"group": "post"
|
||||||
},
|
},
|
||||||
"email_signup_text": {
|
"email_signup_text": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"default": "Sign up for more like this.",
|
"default": "Sign up for more like this.",
|
||||||
"group": "post"
|
"group": "post"
|
||||||
},
|
},
|
||||||
"show_recent_posts_footer": {
|
"show_recent_posts_footer": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true,
|
"default": true,
|
||||||
"group": "post"
|
"group": "post"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"renovate": {
|
"renovate": {
|
||||||
"extends": [
|
"extends": [
|
||||||
"@tryghost:theme"
|
"@tryghost:theme"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user