Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
775ae26
Added chinese support
May 23, 2021
97194d9
added header logo with link to home page based on language
May 23, 2021
ab68e47
added back site logo to home page
May 30, 2021
e2d53ab
always use side menu regardless of viewing size and support links in …
Jun 9, 2021
474f553
remove author and update copyright
Jun 13, 2021
277d645
Merge branch 'TryGhost:master' into master
onekaimyo Jun 19, 2021
cd7646a
updated online ceremonies excerpts
Jul 1, 2021
6db8a52
Merge branch 'TryGhost:master' into master
onekaimyo Jul 1, 2021
bfe8b4b
update okyobi "yin" character to use simplified version
Aug 1, 2021
445d5a6
use zh-meta tag for chinese home page to get the SEO metadata from th…
Aug 1, 2021
fd6c67d
updated excerpt with latest ceremonies
Sep 15, 2021
86f65ca
updated excerpt with latest ceremonies
Sep 25, 2021
191d24f
Merge remote-tracking branch 'TryGhost/main'
Sep 25, 2021
d1a0feb
use node 14 for test action and set a super high number for posts_per…
Sep 25, 2021
93c3758
update copyright to 2022
Feb 1, 2022
48f6b4b
Merge pull request #1 from onekaimyo/minor/update_copyright_2022
zhijiahu Feb 1, 2022
3856c38
integrated https://github.com/TryGhost/Massively/commit/dc22f6cc5966e…
Feb 24, 2022
6c8aecf
Update except.hbs for Go-kaimyo page
yongleejiaa Mar 27, 2022
276c916
Merge pull request #3 from onekaimyo/April2022
yongleejiaa Mar 27, 2022
1d42913
change comment only
Nov 29, 2022
4a9289b
happy new year 2023
Jan 1, 2023
b4f622a
update gokaimyo excerpt
May 16, 2023
e076829
use ubuntu-latest for runner
May 16, 2023
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 .github/workflows/deploy-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
jobs:
deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: TryGhost/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '10' ]
node: [ '14' ]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion assets/main/css/main.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/main/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
// Move nav content on breakpoint change.
var $navContent = $nav.children();

breakpoints.on('>medium', function() {
breakpoints.on('>default', function() {

// NavPanel -> Nav.
$navContent.appendTo($nav);
Expand All @@ -179,7 +179,7 @@

});

breakpoints.on('<=medium', function() {
breakpoints.on('<=default', function() {

// Nav -> NavPanel.
$navContent.appendTo($navPanelInner);
Expand Down Expand Up @@ -255,4 +255,4 @@

}

})(jQuery);
})(jQuery);
9 changes: 9 additions & 0 deletions assets/main/sass/components/_cards.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.kg-toggle-card .kg-toggle-heading {
align-items: baseline;
}

.kg-toggle-card-icon {
margin: 0;
padding: 0;
box-shadow: none;
}
2 changes: 1 addition & 1 deletion assets/main/sass/layout/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}
}

@include breakpoint('<=medium') {
@include breakpoint('<=default') {
display: none;
}
}
8 changes: 4 additions & 4 deletions assets/main/sass/layout/_navPanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
}

@include breakpoint('<=medium') {
@include breakpoint('<=default') {
display: block;
}

Expand Down Expand Up @@ -129,7 +129,7 @@
}
}

@include breakpoint('<=medium') {
@include breakpoint('<=default') {
display: block;
}

Expand All @@ -138,7 +138,7 @@
}
}

@include breakpoint('<=medium') {
@include breakpoint('<=default') {
body.is-navPanel-visible {
#wrapper {
opacity: 0.5;
Expand All @@ -150,4 +150,4 @@
visibility: visible;
}
}
}
}
1 change: 1 addition & 0 deletions assets/main/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
@import 'components/section';
@import 'components/table';
@import 'components/pagination';
@import 'components/cards';

// Layout.

Expand Down
25 changes: 15 additions & 10 deletions author.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
into the {body} of the default.hbs template --}}

{{> "en" }}

{{> "header"}}

{{!-- Main --}}
<main id="main">
Expand Down Expand Up @@ -31,7 +35,6 @@ into the {body} of the default.hbs template --}}
{{#if facebook}}
<a href="{{facebook_url}}" class="icon fa-facebook" title="Facebook"><span class="label">Facebook</span></a>
{{/if}}
<a href="https://feedly.com/i/subscription/feed/{{url absolute="true"}}rss/" class="icon fa-rss" target="_blank" rel="noopener"><span class="label" title="RSS">RSS</span></a>
</div>
</header>
{{/author}}
Expand All @@ -42,22 +45,24 @@ into the {body} of the default.hbs template --}}
{{#foreach posts}}
<article>
<header>
<span class="date">{{date format="MMM D, YYYY"}}</span>
<h2><a href="{{url}}">{{title}}</a></h2>
</header>
{{#if feature_image}}
<a href="{{url}}" class="image fit"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
<a href="{{url}}" class="image fit"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
{{/if}}
<p>{{excerpt words="33"}}</p>
{{> "excerpt"}}
<ul class="actions special">
<li><a href="{{url}}" class="button">Full Story</a></li>
<li><a href="{{url}}" class="button">
{{#has tag="#zh"}}
阅读更多
{{else}}
Read more
{{/has}}
</a></li>
</ul>
</article>
{{/foreach}}

</section>

{{!-- Pagination --}}
{{pagination}}

</main>
</main>
30 changes: 2 additions & 28 deletions default.hbs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="{{@site.locale}}">
<html lang="{{{block "lang"}}}">
<head>

{{!-- Document Settings --}}
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

{{!-- Base Meta --}}
<title>{{meta_title}}</title>
<title>{{{block "title"}}}</title>
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

Expand All @@ -27,31 +27,6 @@

<div id="wrapper" {{#is "home"}}class="fade-in"{{/is}}>

{{!-- Intro --}}
{{#is "home"}}
<div id="intro">
<h1>{{@site.title}}</h1>
<p>{{@site.description}}</p>
<ul class="actions">
<li><a href="#header" class="button icon solo fa-arrow-down scrolly">Continue</a></li>
</ul>
</div>
{{/is}}

{{!-- Header --}}
<header id="header">
{{#if @site.logo}}
<a href="{{@site.url}}" class="logo image"><img src="{{@site.logo}}" alt="{{@site.title}}" /></a>
{{else}}
<a href="{{@site.url}}" class="logo">{{@site.title}}</a>
{{/if}}
</header>

{{!-- Nav --}}
{{#if @site.navigation}}
{{navigation}}
{{/if}}

{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
{{{body}}}

Expand All @@ -60,7 +35,6 @@

</div>


{{!-- Theme Scripts --}}
<script src="{{asset "main/js/jquery.min.js"}}"></script>
<script src="{{asset "main/js/jquery.scrollex.min.js"}}"></script>
Expand Down
14 changes: 14 additions & 0 deletions index-zh.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{!< default}}

{{> "zh" }}

{{#contentFor "header"}}
{{> header home="active" langCode="" langText="English"}}

{{!-- Nav --}}
{{#if @site.secondary_navigation}}
{{navigation type="secondary"}}
{{/if}}
{{/contentFor}}

{{> "index" langTag="hash-zh"}}
57 changes: 9 additions & 48 deletions index.hbs
Original file line number Diff line number Diff line change
@@ -1,53 +1,14 @@
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}

{{!-- Main --}}
<main id="main">
{{> "en" }}

{{!-- Featured Post --}}
{{#is "home"}}
{{#get "posts" filter="featured:true" limit="1" as |featured_post|}}
{{#foreach featured_post}}
<article class="post featured">
<header class="major">
<span class="date">{{date format="MMM D, YYYY"}}</span>
<h2><a href="{{url}}">{{title}}</a></h2>
<p>{{excerpt words="44"}}</p>
</header>
{{#if feature_image}}
<a href="{{url}}" class="image main"><img src="{{img_url feature_image}}" alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}" /></a>
{{/if}}
<ul class="actions special">
<li><a href="{{url}}" class="button large">Full Story</a></li>
</ul>
</article>
{{/foreach}}
{{/get}}
{{/is}}
{{#contentFor "header"}}
{{> header home="active" langCode="zh" langText="中文(简体)"}}

{{!-- Posts --}}
<section class="posts">
{{!-- Nav --}}
{{#if @site.navigation}}
{{navigation}}
{{/if}}
{{/contentFor}}

{{#foreach posts}}
<article>
<header>
<span class="date">{{date format="MMM D, YYYY"}}</span>
<h2><a href="{{url}}">{{title}}</a></h2>
</header>
{{#if feature_image}}
<a href="{{url}}" class="image fit"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
{{/if}}
<p>{{excerpt words="33"}}</p>
<ul class="actions special">
<li><a href="{{url}}" class="button">Full Story</a></li>
</ul>
</article>
{{/foreach}}

</section>

{{!-- Pagination --}}
{{pagination}}

</main>
{{> "index" langTag="-hash-zh"}}
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,16 @@
"gscan": "4.1.3",
"gulp": "4.0.2",
"gulp-livereload": "4.0.2",
"gulp-sass": "4.1.1",
"gulp-sass": "^4.1.1",
"gulp-sourcemaps": "3.0.0",
"gulp-watch": "5.0.1",
"gulp-zip": "5.1.0",
"node-sass": "5.0.0"
"gulp-zip": "5.1.0"
},
"config": {
"posts_per_page": 12
"posts_per_page": 1000000
},
"dependencies": {
"node-sass": "^6.0.1",
"sass": "^1.37.0"
}
}
10 changes: 9 additions & 1 deletion page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
{{#post}}
{{!-- Everything inside the #post tags pulls data from the page --}}

{{#has tag="#zh"}}
{{> "header" langCode="zh"}}
{{> "zh"}}
{{else}}
{{> "header" langCode=""}}
{{> "en"}}
{{/has}}

<main id="main">
<section class="post">

Expand All @@ -26,4 +34,4 @@
</section>
</main>

{{/post}}
{{/post}}
4 changes: 2 additions & 2 deletions partials/copyright.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="copyright">
<ul>
<li>&copy; {{@site.title}}</li>
<li>Nichiren Shoshu Buddhist Association (Singapore) &copy; 2023. All Rights Reserved.</li>
<li>Design by <a href="https://html5up.net">HTML5 UP</a></li>
<li>Published with <a href="https://ghost.org">Ghost</a></li>
</ul>
</div>
</div>
8 changes: 8 additions & 0 deletions partials/en.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{#contentFor "lang"}}en{{/contentFor}}
{{#contentFor "read_more"}}Read more{{/contentFor}}
{{#contentFor "author"}}Author{{/contentFor}}
{{#contentFor "title"}}Kofuzan Kaimyo-in{{/contentFor}}

{{#if @site.navigation}}
{{navigation}}
{{/if}}
Loading