mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 19:47:38 +00:00
Cleanup
This commit is contained in:
parent
6c7cf02111
commit
44e33120cb
@ -1,17 +0,0 @@
|
|||||||
# http://editorconfig.org
|
|
||||||
|
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
charset = utf-8
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 4
|
|
||||||
end_of_line = lf
|
|
||||||
insert_final_newline = true
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
|
|
||||||
[*.hbs]
|
|
||||||
insert_final_newline = false
|
|
||||||
|
|
||||||
[*.md]
|
|
||||||
trim_trailing_whitespace = false
|
|
@ -1,9 +0,0 @@
|
|||||||
# Reporting Security Vulnerabilities
|
|
||||||
|
|
||||||
Potential security vulnerabilities can be reported directly us at `security@ghost.org`. The Ghost Security Team communicates privately and works in a secured, isolated repository for tracking, testing, and resolving security-related issues.
|
|
||||||
|
|
||||||
The full, up-to-date details of our security policy and procedure can always be found in our documentation:
|
|
||||||
|
|
||||||
https://ghost.org/docs/security/
|
|
||||||
|
|
||||||
Please refer to this before emailing us. Thanks for helping make Ghost safe for everyone 🙏.
|
|
Binary file not shown.
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"github": {
|
|
||||||
"token": "<gh-personal-access-token>"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,13 @@
|
|||||||
{{!--
|
{{!--
|
||||||
This error template is used for all 404 errors, which might occur on your site.
|
|
||||||
It's a good idea to keep this template as minimal as possible in terms of both file size and complexity.
|
There are two error files in this theme, one for 404s and one for all other errors.
|
||||||
|
This file is the former, and handles all 404 Page Not Found errors.
|
||||||
|
|
||||||
|
The 404 error is the most common error that a visitor might see, for example when
|
||||||
|
following a broken link
|
||||||
|
|
||||||
|
Keep this template as lightweight as you can!
|
||||||
|
|
||||||
--}}
|
--}}
|
||||||
|
|
||||||
{{!< default}}
|
{{!< default}}
|
||||||
|
14
error.hbs
14
error.hbs
@ -1,7 +1,15 @@
|
|||||||
{{!--
|
{{!--
|
||||||
This error template is used for all 400/500 errors, except 404, which might occur on your site.
|
|
||||||
It's a good idea to keep this template as minimal as possible in terms of both file size and complexity.
|
There are two error files in this theme, one for 404s and one for all other errors.
|
||||||
You'll notice that we *don't* use any JavaScript, or ghost_head / ghost_foot in this file.
|
This file is the latter, and handle all 400/500 errors that might occur.
|
||||||
|
|
||||||
|
Because 500 errors in particular usuall happen when a server is struggling, this
|
||||||
|
template is as simple as possible. No template dependencies, no JS, no API calls.
|
||||||
|
This is to prevent rendering the error-page itself compounding the issue causing
|
||||||
|
the error in the first place.
|
||||||
|
|
||||||
|
Keep this template as lightweight as you can!
|
||||||
|
|
||||||
--}}
|
--}}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
70
page.hbs
70
page.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 big featured header, it uses blog cover image as a BG if available --}}
|
{{!-- The tag above means: insert everything in this file
|
||||||
|
into the {body} tag of the default.hbs template --}}
|
||||||
|
|
||||||
<header class="site-header">
|
<header class="site-header">
|
||||||
<div class="outer site-nav-main">
|
<div class="outer site-nav-main">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
@ -11,52 +11,50 @@ into the {body} of the default.hbs template --}}
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{!-- Everything inside the #post tags pulls data from the post --}}
|
|
||||||
{{#post}}
|
{{#post}}
|
||||||
|
{{!-- Everything inside the #post block pulls data from the page --}}
|
||||||
|
|
||||||
<main id="site-main" class="site-main outer">
|
<article class="article {{post_class}}">
|
||||||
<div class="inner">
|
|
||||||
|
|
||||||
<article class="post-full {{post_class}} {{#unless feature_image}}no-image{{/unless}}">
|
<header class="article-header gh-canvas">
|
||||||
|
|
||||||
<header class="post-full-header">
|
<h1 class="article-title">{{title}}</h1>
|
||||||
<h1 class="post-full-title">{{title}}</h1>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{{#if feature_image}}
|
{{#if custom_excerpt}}
|
||||||
<figure class="post-full-image">
|
<p class="article-excerpt">{{custom_excerpt}}</p>
|
||||||
{{!-- This is a responsive image, it loads different sizes depending on device
|
{{/if}}
|
||||||
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="(max-width: 800px) 400px,
|
|
||||||
(max-width: 1170px) 1170px,
|
|
||||||
2000px"
|
|
||||||
src="{{img_url feature_image size="xl"}}"
|
|
||||||
alt="{{title}}"
|
|
||||||
/>
|
|
||||||
</figure>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<section class="post-full-content">
|
{{#if feature_image}}
|
||||||
<div class="post-content">
|
<figure class="article-image">
|
||||||
{{content}}
|
{{!-- This is a responsive image, it loads different sizes depending on device
|
||||||
</div>
|
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
|
||||||
</section>
|
<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>
|
||||||
|
|
||||||
</article>
|
<section class="gh-content gh-canvas">
|
||||||
|
{{content}}
|
||||||
|
</section>
|
||||||
|
|
||||||
</div>
|
</article>
|
||||||
</main>
|
|
||||||
|
|
||||||
{{/post}}
|
{{/post}}
|
||||||
|
|
||||||
|
|
||||||
|
{{!-- Scripts - Extra functionality for the post template --}}
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(document).ready(function () {
|
||||||
|
// FitVids - Makes video embeds responsive
|
||||||
var $postContent = $(".gh-content");
|
var $postContent = $(".gh-content");
|
||||||
$postContent.fitVids();
|
$postContent.fitVids();
|
||||||
});
|
});
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": [
|
|
||||||
"@tryghost:theme"
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user