7 Commits
v1.3.2 ... main

Author SHA1 Message Date
359512d589 Updated robots.txt and added ai.txt 2024-08-06 09:10:54 +09:00
23452a8585 Pulled latest changes from upstream 2024-08-06 09:10:50 +09:00
335a54fc91 Disallow /ghost in robots.txt 2024-08-06 09:10:06 +09:00
73f01f42f8 Add initial robots.txt.
Contains disallows for several known AI/GPT related bots.
2024-08-06 09:10:06 +09:00
851cc4e814 Squashed commit of the following:
commit 2cfe4e2016
Author: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
Date:   Wed Mar 13 17:11:42 2024 +0800

    v1.2.1

commit 3b99c9e881
Author: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
Date:   Wed Mar 13 17:09:19 2024 +0800

    Fixed white background issue on accent color navigation

    fixes DES-173

commit 0beef28a44
Author: Sanne de Vries <65487235+sanne-san@users.noreply.github.com>
Date:   Wed Mar 13 08:37:06 2024 +0100

    Updated default button card styles to support multiline buttons (#43)

    * Updated default button card styles to support multiline buttons

    Ref DES-160

    * Center-aligned button text

commit 652105318e
Author: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
Date:   Mon Mar 4 14:06:06 2024 +0800

    v1.2.0

commit 6e29abe79a
Author: Peter Zimon <peter.zimon@gmail.com>
Date:   Mon Feb 26 10:46:07 2024 +0100

    Various design improvements (#42)

    There are a couple of minor improvements which customers solve at the moment with various hacks and should be part of the theme instead.

    * Removed max-width from card excerpt

    * Updated custom theme settings

    - Added show/hide "Read more" section in posts
    - Added drop-cap option for posts
    - Added show/hide metadata for posts

    * Added lock icon for members-only posts on list

    * Updated excerpt logic to work with access levels

    * Fixing missing id's for input fields

    * Updated secondary color contrast

commit dc3e6cb539
Author: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
Date:   Tue Jan 23 13:04:26 2024 +0700

    Improved accessibility

    refs #37

commit a2846beab2
Author: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
Date:   Mon Jan 22 15:04:29 2024 +0700

    Added better styling to pre and code elements

    closes #11, #21

commit ebc4792154
Author: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
Date:   Wed Jan 3 16:17:55 2024 +0700

    Improved HTML table rendering

    fixes #17

commit c060944364
Author: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
Date:   Wed Jan 3 12:20:49 2024 +0700

    Fixed mobile scrolling issues

    fixes #12

    - added background color to the mobile menu actions
    - disabled root scrolling when the mobile menu is opened which fixes the duplicate scrolling issue

commit d046267a3a
Author: Sodbileg Gansukh <sodbileg.gansukh@gmail.com>
Date:   Wed Jan 3 11:39:09 2024 +0700

    Improved typography hierarchy
2024-08-06 09:10:06 +09:00
e0380e0121 Add Customizations.
- Add PrismJS dependencies (baked-in)
- Add Ko-fi button (in-line)
- Bump dependencies to fix inability to build.
- Concatenate *.css into single source.css.
2024-08-06 09:03:09 +09:00
renovate[bot]
558dcca351 Update dependency gscan to v4.43.1 2024-07-24 10:20:25 +02:00
19 changed files with 2212 additions and 1148 deletions

6
ai.txt Normal file
View File

@@ -0,0 +1,6 @@
# Spawning AI
# Prevent datasets from using the following file types
User-Agent: *
Disallow: /
Disallow: *

2
assets/built/source.css Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

136
assets/css/ko-fi.css Normal file
View File

@@ -0,0 +1,136 @@
/*
Ko-fi Button Widget CSS.
*/
img.kofiimg {
display: initial;
vertical-align: middle;
height: 13px;
width: 20px;
padding-top: 0;
padding-bottom: 0;
border: none;
margin-top: 0;
margin-right: 5px;
margin-left: 0;
margin-bottom: 3px;
content: url(../images/ko-fi/cup-border.png);
}
.kofiimg:after {
vertical-align: middle;
height: 25px;
padding-top: 0;
padding-bottom: 0;
border: none;
margin-top: 0;
margin-right: 6px;
margin-left: 0;
margin-bottom: 4px;
content: url(../images/ko-fi/whitelogo.svg);
}
.kofi-btn-container {
--button-background-color: #fff;
--button-background-color-active: rgba(255, 255, 255, 0.8);
--button-text-color: #15171a;
--button-text-color-active: #15171a;
display: inline-block;
white-space: nowrap;
min-width: 160px;
}
a.kofi-button {
background-color: var(--button-background-color);
box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
line-height: 36px;
min-width: 150px;
display: inline-block;
padding: 2px 12px;
text-align: center;
border-radius: 7px;
color: var(--button-text-color);
cursor: pointer;
overflow-wrap: break-word;
vertical-align: middle;
border: 0 none #fff;
/* font-family: 'Quicksand', Helvetica, Century Gothic, sans-serif; */
font-family: var(--font-sans);
text-decoration: none;
text-shadow: none;
font-weight: 700;
font-size: 14px;
}
a.kofi-button:hover,
a.kofi-button:active,
a.kofi-button:visited {
color: var(--button-text-color);
text-decoration: none;
background: var(--button-background-color-active);
}
a.kofi-button:hover span.kofitext,
a.kofi-button:active span.kofitext {
text-decoration: none;
color: var(--button-text-color-active);
opacity: 1;
}
span.kofitext {
color: var(--button-text-color);
letter-spacing: -0.15px;
text-wrap: none;
vertical-align: middle;
line-height: 33px;
padding: 0;
text-align: center;
text-decoration: none;
text-shadow: 0 1px 1px rgba(34, 34, 34, 0.05);
}
span.kofitext img.kofiimg {
height: 15px;
width: 22px;
display: initial;
animation: kofi-wiggle 3s infinite;
}
@keyframes kofi-wiggle {
0% {
transform: rotate(0) scale(1);
}
60% {
transform: rotate(0) scale(1);
}
75% {
transform: rotate(0) scale(1.12);
}
80% {
transform: rotate(0) scale(1.1);
}
84% {
transform: rotate(-10deg) scale(1.1);
}
88% {
transform: rotate(10deg) scale(1.1);
}
92% {
transform: rotate(-10deg) scale(1.1);
}
96% {
transform: rotate(10deg) scale(1.1);
}
100% {
transform: rotate(0) scale(1);
}
}

5
assets/css/prism.min.css vendored Normal file
View File

@@ -0,0 +1,5 @@
/* PrismJS 1.29.0
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+apacheconf+aspnet+bash+csharp+diff+git+go+ini+lua+python+sql+typescript+xml-doc+yaml&plugins=diff-highlight */
code[class*=language-],pre[class*=language-]{color:#ccc;background:0 0;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}
pre.diff-highlight>code .token.deleted:not(.prefix),pre>code.diff-highlight .token.deleted:not(.prefix){background-color:rgba(255,0,0,.1);color:inherit;display:block}pre.diff-highlight>code .token.inserted:not(.prefix),pre>code.diff-highlight .token.inserted:not(.prefix){background-color:rgba(0,255,128,.1);color:inherit;display:block}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xml:space="preserve"
style="enable-background:new 0 0 56.7 56.7;"
viewBox="0 0 56.7 56.7"
y="0px"
x="0px"
id="Layer_1"
version="1.1"><metadata
id="metadata15"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs13" /><style
id="style3"
type="text/css">
.st0{fill:#FFFFFF;}
</style><g
id="g5"><path
style="fill:#ffffff;fill-opacity:1"
id="path7"
d="m 23.959,10.600001 c -9.6,0 -17.4,7.8 -17.4,17.4 0,9.6 7.8,17.4 17.4,17.4 9.6,0 17.4,-7.8 17.4,-17.4 0,-9.6 -7.8,-17.4 -17.4,-17.4 z m 0.3,27.2 -0.5,0.2 -0.4,-0.2 c -0.4,-0.2 -9.8,-5.4 -9.8,-11.3 0,-3.8 2.5,-6.8 5.8,-6.8 1.6,0 3.1,0.7 4.5,2.1 1.3,-1.4 2.9,-2.1 4.5,-2.1 3.2,0 5.8,3 5.8,6.9 -0.1,5.8 -9.5,11 -9.9,11.2 z"
class="st0" /><path
style="fill:#ffffff;fill-opacity:1"
id="path9"
d="m 56.759293,28.5 c 0,-2.6 -2,-3 -3.4,-3.1 l -5.5,0 c -0.8,-8.4 -6,-15.7 -14.5,-19.4 -10.7,-4.6 -23.3,-0.7 -29.6,9.1 -7.6999993,12.1 -3.09999997,27.9 9.5,34.2 10.3,5.1 23.1,2 29.9,-7.3 2.5,-3.4 3.8,-6.9 4.3,-10.7 l 6.3,0 c 1.5,0 3,-0.5 3,-2.8 z m -40.8,17.7 c -11.3,-5 -15.39999897,-18.8 -8.7,-29.1 5.2,-8.2 15.8,-11.3 24.7,-7.4 11.3,5 15.4,18.8 8.7,29.1 -5.3,8.1 -15.9,11.3 -24.7,7.4 z"
class="st0" /></g></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

24
assets/js/lib/prism.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -57,4 +57,4 @@
table.parentNode.insertBefore(wrapper, table);
wrapper.appendChild(table);
});
})();
});

View File

@@ -8,14 +8,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{!-- Preload main styles and scripts for better performance --}}
<link rel="preload" as="style" href="{{asset "built/screen.css"}}">
<link rel="preload" as="style" href="{{asset "built/source.css"}}">
<link rel="preload" as="script" href="{{asset "built/source.js"}}">
{{!-- Fonts are preloaded and defined in the default template to avoid layout shift --}}
{{> "typography/fonts"}}
{{!-- Theme assets - use the {{asset}} helper to reference styles & scripts, this will take care of caching and cache-busting automatically --}}
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}">
<link rel="stylesheet" type="text/css" href="{{asset "built/source.css"}}">
{{!-- Custom background color --}}
<style>
@@ -25,6 +25,7 @@
</style>
<script>
document.addEventListener("DOMContentLoaded", () => {
/* The script for calculating the color contrast has been taken from
https://gomakethings.com/dynamically-changing-the-text-color-based-on-background-color-contrast-with-vanilla-js/ */
var accentColor = getComputedStyle(document.documentElement).getPropertyValue('--background-color');
@@ -39,8 +40,8 @@
var b = parseInt(accentColor.substr(4, 2), 16);
var yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000;
var textColor = (yiq >= 128) ? 'dark' : 'light';
document.documentElement.className = `has-${textColor}-text`;
});
</script>
{{!-- This tag outputs all your advanced SEO meta, structured data, and other important settings, it should always be the last tag before the closing head tag --}}

View File

@@ -45,7 +45,10 @@ function hbs(done) {
function css(done) {
pump([
src('assets/css/screen.css', {sourcemaps: true}),
src([
'assets/css/*.css'
], {sourcemaps: true}),
concat('source.css'),
postcss([
easyimport,
autoprefixer(),

View File

@@ -1,5 +1,5 @@
{
"name": "source",
"name": "source-davejansen",
"description": "A default theme for the Ghost publishing platform",
"demo": "https://source.ghost.io",
"version": "1.3.2",
@@ -44,7 +44,7 @@
"@tryghost/release-utils": "0.8.1",
"autoprefixer": "10.4.7",
"beeper": "2.1.0",
"cssnano": "5.1.12",
"cssnano": "^6.0.2",
"gscan": "4.39.4",
"gulp": "4.0.2",
"gulp-concat": "2.6.1",
@@ -53,8 +53,8 @@
"gulp-uglify": "3.0.2",
"gulp-zip": "5.1.0",
"inquirer": "8.2.4",
"postcss": "8.2.13",
"postcss-easy-import": "4.0.0",
"postcss": "^8.4.32",
"postcss-easy-import": "^4.0.0",
"pump": "3.0.0"
},
"browserslist": [
@@ -213,5 +213,6 @@
"extends": [
"@tryghost:theme"
]
}
},
"dependencies": {}
}

View File

@@ -1,6 +1,5 @@
<footer class="gh-footer{{#match @custom.header_and_footer_color "Accent color"}} has-accent-color{{/match}} gh-outer">
<div class="gh-footer-inner gh-inner">
<div class="gh-footer-bar">
<span class="gh-footer-logo is-title">
{{#if @site.logo}}

View File

@@ -47,6 +47,12 @@
{{/unless}}
</div>
{{/unless}}
<div class="kofi-btn-container">
<a title="Support me on ko-fi.com" class="kofi-button" href="https://ko-fi.com/K3K0G2FVA" target="_blank"><span
class="kofitext"><img src="{{asset "images/ko-fi/cup-border.png" }}" alt="Ko-fi donations"
class="kofiimg">Buy me a coffee</span></a>
</div>
</div>
</div>

View File

@@ -6,4 +6,3 @@
{{> "icons/checkmark"}}
</button>
<p data-members-error></p>
</form>

35
robots.txt Normal file
View File

@@ -0,0 +1,35 @@
# Disallow indexing of the Ghost CMS section
User-agent: *
Disallow: /ghost
# (Attempt to) block a bunch of AI bots
# Kindly borrowed from:
# https://github.com/ai-robots-txt/ai.robots.txt/blob/main/robots.txt
User-agent: AdsBot-Google
User-agent: Amazonbot
User-agent: anthropic-ai
User-agent: Applebot
User-agent: AwarioRssBot
User-agent: AwarioSmartBot
User-agent: Bytespider
User-agent: CCBot
User-agent: ChatGPT-User
User-agent: ClaudeBot
User-agent: Claude-Web
User-agent: cohere-ai
User-agent: DataForSeoBot
User-agent: FacebookBot
User-agent: Google-Extended
User-agent: GoogleOther
User-agent: GPTBot
User-agent: ImagesiftBot
User-agent: magpie-crawler
User-agent: Meltwater
User-agent: omgili
User-agent: omgilibot
User-agent: peer39_crawler
User-agent: peer39_crawler/1.0
User-agent: PerplexityBot
User-agent: Seekr
User-agent: YouBot
Disallow: /

3083
yarn.lock

File diff suppressed because it is too large Load Diff