Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Isso comments #184

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a href="https://twitter.com/godofredoninja">Twitter</a>
<br /><br />
<a href="https://github.com/TryGhost/Ghost">
<img src="https://img.shields.io/badge/Ghost-4.x-brightgreen.svg" alt="Ghost version" />
<img src="https://img.shields.io/badge/Ghost-5.x-brightgreen.svg" alt="Ghost version" />
</a>
<a href="https://www.paypal.com/paypalme/godofredoninja">
<img src="https://img.shields.io/badge/donate-paypal-blue.svg" alt="Donate" />
Expand Down
6 changes: 3 additions & 3 deletions assets/scripts/main.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/scripts/pagination.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/scripts/post.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/scripts/prismjs.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/scripts/search.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/styles/amp.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/styles/main.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
{{/match}}
</script>

{{!-- Fonts -> Public Sans=400,500,600,700 --}}
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'"/>
<noscript><link rel="preconnect" href="https://fonts.gstatic.com"><link href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700&display=swap" rel="stylesheet"></noscript>
{{!-- Fonts -> Public Sans=400,500,600,700; Atkinson Hyperlegible=400,700; JetBrains Mono 0,800 --}}
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Fira+Code:[email protected]&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'"/>
<noscript><link rel="preconnect" href="https://fonts.gstatic.com"><link href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Fira+Code:[email protected]&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap" rel="stylesheet"></noscript>

{{!-- Styles --}}
<link rel="stylesheet" type="text/css" href="{{asset "styles/main.css"}}"/>
Expand Down
19 changes: 16 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "mapache",
"description": "mapache theme for ghost by @GodoFredoNinja",
"description": "mapache theme for ghost by @GodoFredoNinja, fork for the Calnus website",
"demo": "https://godofredo.ninja",
"version": "4.0.1",
"version": "4.0.1-calnus-2.0",
"engines": {
"ghost": ">=5.0.0"
"ghost": ">=5.54.1"
},
"license": "gpl-3.0",
"screenshots": {
Expand Down Expand Up @@ -145,6 +145,19 @@
"comments_disqus_short_name": {
"type": "text",
"group": "post"
},
"comments_isso_fqdn": {
"type": "text",
"group": "post"
},
"youtube_url": {
"type": "text"
},
"linkedin_url": {
"type": "text"
},
"github_url": {
"type": "text"
}
}
},
Expand Down
8 changes: 5 additions & 3 deletions page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
{{#post}}

<article class="post container mx-auto my-8 lg:max-w-1000">
<h1 class="post-title text-4xl md:text-44 mb-5 text-title text-center mx-auto max-w-3xl">{{title}}</h1>
{{#match @page.show_title_and_feature_image}}
<h1 class="post-title text-4xl md:text-44 mb-5 text-title text-center mx-auto max-w-3xl">{{title}}</h1>

{{!-- Featured Image - partials/article/article-media.hbs --}}
{{> "article/article-media"}}
{{!-- Featured Image - partials/article/article-media.hbs --}}
{{> "article/article-media"}}
{{/match}}

<div class="post-body-wrap relative lg:flex mx-auto max-w-3xl">
<div class="post-body min-w-0 js-post-content{{#match @custom.post_font "=" "font-serif"}} font-serif{{else}} font-sans{{/match}}{{#match @custom.post_font_size "=" "20px"}} text-xl{{else}} text-lg{{/match}}">
Expand Down
2 changes: 1 addition & 1 deletion partials/amp/amp-styles.hbs

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions partials/article/article-comments.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,24 @@
</script>
{{/contentFor}}

{{else if @custom.comments_isso_fqdn}}

{{#contentFor "scripts"}}
<script data-isso="https://{{@custom.comments_isso_fqdn}}"
data-isso-gravatar="false"
data-isso-avatar="true"
data-isso-reply-notifications="false"
data-isso-vote="false"
data-isso-vote-levels="1,2,3,4,5"
data-isso-require-author="true"
data-isso-lang="{{@site.locale}}"
src="https://{{@custom.comments_isso_fqdn}}/js/embed.min.js">
</script>
{{/contentFor}}

<div id="post-comments" class="post-comments js-post-comments w-full mt-12 border-t pt-12">
{{!-- Isso Comments --}}
<section id="isso-thread"></section>
</div>

{{/if}}
14 changes: 7 additions & 7 deletions partials/components/social-media.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{/if}}

{{#if @site.twitter}}
<a title="Twitter {{@site.twitter}}"
<a title="X (antiguo Twitter) {{@site.twitter}}"
href="{{twitter_url}}"
class="button border-none"
target="_blank"
Expand All @@ -29,35 +29,35 @@
</a>
{{/if}} --}}

{{!-- {{#if @custom.youtube_url}}
{{#if @custom.youtube_url}}
<a title="YouTube"
href="{{@custom.youtube_url}}"
class="button border-none"
target="_blank"
rel="noopener noreferrer">
<svg class="icon"><use xlink:href="#icon-youtube"></use></svg>
</a>
{{/if}} --}}
{{/if}}

{{!-- {{#if @custom.linkedin_url}}
{{#if @custom.linkedin_url}}
<a title="Linkedin"
href="{{@custom.linkedin_url}}"
class="button border-none"
target="_blank"
rel="noopener noreferrer">
<svg class="icon"><use xlink:href="#icon-linkedin"></use></svg>
</a>
{{/if}} --}}
{{/if}}

{{!-- {{#if @custom.github_url}}
{{#if @custom.github_url}}
<a title="GitHub"
href="{{@custom.github_url}}"
class="button border-none"
target="_blank"
rel="noopener noreferrer">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 512 512"><path d="M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.56 17.56 0 0 0 3.8.4c8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 0 1-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0 0 25.6-6c2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8a18.64 18.64 0 0 1 5-.5c8.1 0 26.4 3.1 56.6 24.1a208.21 208.21 0 0 1 112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.64 18.64 0 0 1 5 .5c12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5a19.35 19.35 0 0 0 4-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32z"/></svg>
</a>
{{/if}} --}}
{{/if}}

{{!-- {{#if @custom.discord_url}}
<a title="GitHub"
Expand Down
Loading