Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: huangyuzhang/Fizzy-Theme
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.0
Choose a base ref
...
head repository: huangyuzhang/Fizzy-Theme
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Sep 11, 2019

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7a86606 View commit details
  2. version bump to v1.2.1

    huangyuzhang committed Sep 11, 2019
    Copy the full SHA
    f590a2d View commit details

Commits on Sep 17, 2019

  1. Copy the full SHA
    541bf07 View commit details

Commits on Sep 25, 2019

  1. Copy the full SHA
    a8bdcfa View commit details
  2. Copy the full SHA
    b0087e1 View commit details
  3. version bump to v1.2.3

    huangyuzhang committed Sep 25, 2019
    Copy the full SHA
    4ffeca6 View commit details
  4. Copy the full SHA
    6f33ce1 View commit details

Commits on Sep 26, 2019

  1. version bump to v1.2.3

    huangyuzhang committed Sep 26, 2019
    Copy the full SHA
    e684253 View commit details
  2. Copy the full SHA
    95bd549 View commit details
  3. Copy the full SHA
    ce6c1c9 View commit details

Commits on Sep 27, 2019

  1. version bump to v1.2.5

    huangyuzhang committed Sep 27, 2019
    Copy the full SHA
    eafb789 View commit details

Commits on Sep 28, 2019

  1. version bump to v1.2.6

    huangyuzhang committed Sep 28, 2019
    Copy the full SHA
    c69ccba View commit details

Commits on Sep 30, 2019

  1. Copy the full SHA
    c5a76e1 View commit details

Commits on Oct 4, 2019

  1. Copy the full SHA
    1afd0c0 View commit details
  2. Copy the full SHA
    0130dd8 View commit details
  3. Copy the full SHA
    d54354c View commit details
  4. Copy the full SHA
    496b7dd View commit details
  5. Merge pull request #35 from talut/master

    🌐Turkish locale file added, translation completed
    huangyuzhang authored Oct 4, 2019
    Copy the full SHA
    781749c View commit details
  6. Copy the full SHA
    ef687b2 View commit details
  7. Merge branch 'dev'

    huangyuzhang committed Oct 4, 2019
    Copy the full SHA
    b1184fc View commit details
  8. Copy the full SHA
    fe8f4a8 View commit details

Commits on Oct 5, 2019

  1. Copy the full SHA
    5e90982 View commit details
  2. Copy the full SHA
    af70e45 View commit details
  3. Copy the full SHA
    17c8f74 View commit details
  4. 📝 update CHANGELOG

    huangyuzhang committed Oct 5, 2019
    Copy the full SHA
    4cc6fb9 View commit details
  5. Copy the full SHA
    2698ee7 View commit details
  6. added branch: chinese

    huangyuzhang committed Oct 5, 2019
    Copy the full SHA
    39b4b51 View commit details
  7. Copy the full SHA
    6d6d821 View commit details
  8. Copy the full SHA
    245d05a View commit details
  9. Copy the full SHA
    54fafb9 View commit details

Commits on Oct 6, 2019

  1. Copy the full SHA
    b94f30e View commit details
  2. Copy the full SHA
    1e1b633 View commit details

Commits on Oct 9, 2019

  1. Copy the full SHA
    23dbf97 View commit details
  2. Copy the full SHA
    c610480 View commit details

Commits on Oct 12, 2019

  1. Copy the full SHA
    d1a5d9f View commit details

Commits on Oct 22, 2019

  1. Copy the full SHA
    117afe8 View commit details

Commits on Oct 23, 2019

  1. Copy the full SHA
    e562dae View commit details
  2. Copy the full SHA
    142afce View commit details

Commits on Oct 26, 2019

  1. French locale file added

    Lourys authored Oct 26, 2019
    Copy the full SHA
    42214ba View commit details

Commits on Oct 28, 2019

  1. Merge pull request #39 from Lourys/french-locale

    French locale file added
    huangyuzhang authored Oct 28, 2019
    Copy the full SHA
    949483e View commit details
  2. Copy the full SHA
    7688162 View commit details
  3. version bump to v1.3.1

    huangyuzhang committed Oct 28, 2019
    Copy the full SHA
    ee653e0 View commit details

Commits on Nov 16, 2019

  1. a static authors page

    displays all blog authors on /authors/ page.
    
    for example of this in action, please see:
    https://squintermedia.com/authors/
    tinoesroho authored Nov 16, 2019
    Copy the full SHA
    98390bc View commit details
  2. Merge pull request #1 from tinoesroho/tinoesroho-patch-1

    static authors page
    tinoesroho authored Nov 16, 2019
    Copy the full SHA
    5079e0a View commit details

Commits on Nov 20, 2019

  1. Copy the full SHA
    1f5d8c3 View commit details

Commits on Nov 25, 2019

  1. Merge pull request #43 from the-mcnaveen/master

    📑 Tamil Translation Added
    huangyuzhang authored Nov 25, 2019
    Copy the full SHA
    48daae3 View commit details
  2. Copy the full SHA
    101e681 View commit details

Commits on Dec 6, 2019

  1. Merge pull request #44 from tinoesroho/master

    Static Page: Site Authors
    huangyuzhang authored Dec 6, 2019
    Copy the full SHA
    e080a41 View commit details

Commits on Jan 28, 2020

  1. Copy the full SHA
    5e263ce View commit details

Commits on Jun 9, 2020

  1. Create pt.json

    matheusvanzan authored Jun 9, 2020
    Copy the full SHA
    4298aa2 View commit details
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: huangyuzhang
patreon: huangyuzhang
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
# CHANGELOG

## v1.3.5
- ⬆️ Support Ghost V5
## v1.3.4
- 🐛 fixed header

## v1.3.3
- 🐛 fixed header not centered, as mentioned in ([#70](https://github.com/huangyuzhang/Fizzy-Theme/issues/70))

## v1.3.2
- 🌐 Tamil translated ([#43](https://github.com/huangyuzhang/Fizzy-Theme/pull/43))

## v1.3.1
- 🌐 French translated ([#39](https://github.com/huangyuzhang/Fizzy-Theme/pull/39))
- 🐛 fixed search button display logic when set `show_search = false`. ([#37](https://github.com/huangyuzhang/Fizzy-Theme/issues/37))

## [v1.3.0](https://github.com/huangyuzhang/Fizzy-Theme/releases/tag/v1.3.0) (2019.10.23)
- ⬆️ Support Ghost V3
- 📝 `footer_text` includes html instruction
- 🐛 fixed wrong icon for tag pages
- 💄 improved overall layout for post content
- ⚡️ added default image background as placeholder
- 🌐 Turkish translated ([#35](https://github.com/huangyuzhang/Fizzy-Theme/pull/35))
- 🐛 fixed image size configuration
- ⚡️ crop images to improve page loading performance (feature image, author avatar)
- 🐛 in post aside section, fixed post card width if no other posts exist in its primary_tag
- ✨ added a new branch for Chinese optimization
- 💄 improved bookmark card style
- 📱 improved responsiveness of layout in all pages
- 🐛 fixed bug in post archive page caused earlier this version

## v1.2.6
- 🐛 fixed when clicking inside of the search form will cause the form to disappear, and improved vertical padding of the button.
- 🌐 added "No results" translation in `./locales`, `zh_CN` provided.

## v1.2.5
- 💄 improved post archive template: post title font, add author(s) to the right side of title (multiple authors enabled).

## v1.2.4
- ⚡️ improved post archive template page (featured icon position, better date display, flex layout)

## v1.2.3
- ⚡️ replaced FontAwesome by iconfont
- 💄 improved featured post icon style

## v1.2.2
- 📝 add instruction for creating a link page with bookmark cards.

## v1.2.1
- ✨ add version number at footer

## [v1.2.0](https://github.com/huangyuzhang/Fizzy-Theme/releases/tag/v1.2.0) (2019.09.09)
- 💄 improved bookmark card style
- ✨ add roadmap link to "Get Fizzy Theme" button
30 changes: 22 additions & 8 deletions README-zh.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The Fizzy Theme 汽水主题

[![demo](https://img.shields.io/badge/Demo-online-yellow.svg)](https://fizzy.cc/)
[![Ghost version](https://img.shields.io/badge/Ghost->=2.x-brightgreen.svg)](https://github.com/TryGhost/Ghost)
[![Ghost version](https://img.shields.io/badge/Ghost->=3.x-brightgreen.svg)](https://github.com/TryGhost/Ghost)
[![Release](https://img.shields.io/github/release/huangyuzhang/Fizzy-Theme.svg)](https://github.com/huangyuzhang/Fizzy-Theme/)
[![GitHub forks](https://img.shields.io/github/forks/huangyuzhang/Fizzy-Theme.svg)](https://github.com/huangyuzhang/Fizzy-Theme/network)
[![GitHub stars](https://img.shields.io/github/stars/huangyuzhang/Fizzy-Theme.svg?style=social&label=Star)](https://github.com/huangyuzhang/Fizzy-Theme/stargazers)
@@ -40,12 +40,19 @@
### :earth_africa: 多语言支持
你可以在 Ghost 后台 -> General -> "Publication Language" 更换主题展示的语言。简体中文已经翻译,直接配置里写`zh_CN`即可。

| 代码 | 语言 | 翻译状态 |
| :-----: | :------: | :------: |
| `en` | English | ✔️ |
| `zh_CN` | 简体中文 | ✔️ |
| 代码 | 语言 | 翻译状态 | 译者 |
| :-----: | :--------------: | :------: | :-----------------------------------------------: |
| `de` | 德语 || [Marek Schmidt](https://github.com/MSDev201) |
| `en` | 英语 || |
| `fr` | 法语 || [Lourys](https://github.com/Lourys) |
| `it` | 意大利语 || [Pyrox](https://github.com/Pyr0x1) |
| `pt_BR` | 葡萄牙语(巴西) || [matheusvanzan](https://github.com/matheusvanzan) |
| `ta` | 泰米尔语 || [MC Naveen](https://github.com/the-mcnaveen) |
| `th` | 泰语 || [atbee](https://github.com/atbee) |
| `tr` | 土耳其语 || [talut](https://github.com/talut) |
| `zh_CN` | 简体中文 || |

请帮助我们翻译主题语言。首先请fork本项目,然后复制`locales`文件夹中的`en.json`并重命名为目标语言, 如西班牙语:`es.json`,并打开文件翻译内容。测试之后请提交 Pull Request。
请帮助我们翻译主题语言。首先请fork本项目,然后复制`locales`文件夹中的`en.json`并重命名为目标语言, 如西班牙语:`es.json`,并打开文件翻译内容。测试之后请提交 Pull Request`dev` 分支

### 资源本地化
你可以修改CSS以及js文件的CDN来针对特定地区进行优化。可修改的文件有:
@@ -121,6 +128,8 @@ collections:
var footer_text = "修改成你的自定义底部文字,可以包含HTML代码,但需要注意引号的使用";
</script>
```
> 你可以在 `footer_text` 中插入HTML内容,但是所有的引号都应该是单引号。例如:
> `var footer_text = "这是一个很<span style='color:red;font-weigh'>有趣</span>的网站 <i class='iconfont icon-heart'></i>";`

### 评论系统
因为 Ghost 目前不包含评论系统,我们需要通过第三方工具或库来实现评论系统。
@@ -212,9 +221,12 @@ Fizzy 主题使用了 Prism.js 作为代码高亮解决方案,Fizzy主题默
### LaTeX公式
使用 `$`(行内公式)或 `$$` 来包裹LaTeX公式以便主题渲染成公式。 ([示例](https://fizzy.cc/latex/))

### 链接页面
你可以通过添加页面来展示与网站相关的站外链接,如“我的站点”、“友情链接”。Ghost于v2.30版本后支持了**书签卡**功能,可以在Ghost编辑器中输入 `/bookmark` 来插入书签链接。你可以用此方式为页面添加链接。([示例](https://fizzy.cc/links/))

### 其他设置
- **导航**:修改 `partials/navigation.hbs` 来自定义下来菜单,如果不需要也可以将相应代码删除。
- **徽章**:使用 `class="badge <color>"` 来使用徽章 (仅支持 HTML 块).([demo](https://fizzy.cc/fizzy-theme/#badge))
- **徽章**:使用 `class="badge <color>"` 来使用徽章 (仅支持 HTML 块).([示例](https://fizzy.cc/fizzy-theme/#badge))
- 支持的颜色: 黑白、红色、黄色、绿色、蓝色、紫色
![image](https://user-images.githubusercontent.com/40261916/64512639-70b40580-d319-11e9-9218-b1937c2e4b4f.png)
> 注意: 使用 `class="badge"`来表示无色。
@@ -251,6 +263,7 @@ Fizzy 主题使用了 Prism.js 作为代码高亮解决方案,Fizzy主题默
- [KaTeX][katex] - 一个渲染非常快速的 LaTeX 数学公式显示引擎 (since v0.3.0)
- [Gitalk][gitalk] - 一个基于 Github issued 的评论系统 (since v0.3.0)
- [ghost-search][ghost-search] - 一个基于 Ghost Content API 的搜索引擎 (since v1.0.0)
- [iconfont][iconfont] - 一个免费的图标解决方案 (since v1.2.3)

## 📍 开发路线图
请访问我们的[路线图][roadmap]来了解本项目的未来开发计划。
@@ -285,5 +298,6 @@ Fizzy 主题使用了 Prism.js 作为代码高亮解决方案,Fizzy主题默
[valine]: https://github.com/xCss/Valine
[custom-prism]: https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+bash+ruby+git+json+markdown+nginx+sql+python+r&plugins=line-numbers+toolbar+show-language
[ghost-search]: https://github.com/HauntedThemes/ghost-search
[iconfont]:https://www.iconfont.cn
[contributors]: https://github.com/huangyuzhang/Fizzy-Theme/graphs/contributors
[roadmap]: https://github.com/huangyuzhang/Fizzy-Theme/projects/3
[roadmap]: https://github.com/huangyuzhang/Fizzy-Theme/projects/3
29 changes: 22 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The Fizzy Theme

[![demo](https://img.shields.io/badge/Demo-online-yellow.svg)](https://fizzy.cc/)
[![Ghost version](https://img.shields.io/badge/Ghost->=2.x-brightgreen.svg)](https://github.com/TryGhost/Ghost)
[![Ghost version](https://img.shields.io/badge/Ghost->=3.x-brightgreen.svg)](https://github.com/TryGhost/Ghost)
[![Release](https://img.shields.io/github/release/huangyuzhang/Fizzy-Theme.svg)](https://github.com/huangyuzhang/Fizzy-Theme/)
[![GitHub forks](https://img.shields.io/github/forks/huangyuzhang/Fizzy-Theme.svg)](https://github.com/huangyuzhang/Fizzy-Theme/network)
[![GitHub stars](https://img.shields.io/github/stars/huangyuzhang/Fizzy-Theme.svg?style=social&label=Star)](https://github.com/huangyuzhang/Fizzy-Theme/stargazers)
@@ -40,12 +40,20 @@ If **site logo** is uploaded, then the Logo area will only display the **site lo
### :earth_africa: i18n
You can change the theme's language in Ghost Admin -> General -> "Publication Language".

| Code | Language | Status |
| :-----: | :------: | :----: |
| `en` | English | ✔️ |
| `zh_CN` | 简体中文 | ✔️ |
| Code | Language | Status | Translator |
| :-----: | :------------------: | :----: | :-----------------------------------------------: |
| `de` | German || [Marek Schmidt](https://github.com/MSDev201) |
| `en` | English || |
| `fr` | French || [Lourys](https://github.com/Lourys) |
| `it` | Italian || [Pyrox](https://github.com/Pyr0x1) |
| `pt_BR` | Brazilian Portuguese || [matheusvanzan](https://github.com/matheusvanzan) |
| `ta` | Tamil || [MC Naveen](https://github.com/the-mcnaveen) |
| `th` | Thai || [atbee](https://github.com/atbee) |
| `tr` | Turkish || [talut](https://github.com/talut) |
| `zh_CN` | Chinese (Simplified) || |

Please help to translate Fizzy into the languages you know. To do so, first fork this repo. Then you need to copy the `en.json` file under `locales` folder and rename it to your language code, e.g. `es.json`, `zh_TW.json`. Then modify the translations within it. After testing, please create a Pull Request.

Please help to translate Fizzy into the languages you know. To do so, first fork this repo. Then you need to copy the `en.json` file under `locales` folder and rename it to your language code, e.g. `es.json`, `zh_TW.json`. Then modify the translations within it. After testing, please create a "Pull Request" to `dev` branch of this repo (not `master`).

### Assets Localization
You could customize the following files to define the CDN of assets to speed up access in specific regions:
@@ -119,6 +127,8 @@ By default, your **site description** (Ghost Admin -> General) will be displayed
var footer_text = "REPLACE WITH YOUR FOOTER TEXT HERE";
</script>
```
> You can include HTML in the `footer_text`, but be careful to use single quotation marks inside it. For example:
> `var footer_text = "REPLACE <span style='color:red;font-weigh'>WITH</span> YOUR FOOTER TEXT HERE <i class='iconfont icon-heart'></i>";`

### :speech_balloon: Comment System
Due to Ghost itself doesn't have a comment system, we need to use third party solutions for this. Some options are: [DISQUS][disqus], [Gitalk][gitalk], [Valine][valine] and [Vssue][vssue]. By default, Fizzy has Gitalk and DISQUS integrated. Skip the following if you do not need the comment system.
@@ -206,6 +216,9 @@ Go to the Code injection, add the following code to the `Site Header`:
### LaTeX support
Use `$`(inline) or `$$` to cover commands to render for LaTeX commands. ([examples](https://fizzy.cc/latex/))

### Link Page
Create a link page is nothing different than create a normal page. With the **Bookmark Card** feature since Ghost v2.30, you can easily add links to any page by type `/bookmark` in Ghost editor. ([demo](https://fizzy.cc/links/))

### Components
- **Navigation**: You can modify `partials/navigation.hbs` to customize your dropdown menu, or delete the section if not needed.
- **Badge**: include `class="badge <color>"` to use badge (HTML only).([demo](https://fizzy.cc/fizzy-theme/#badge))
@@ -242,6 +255,7 @@ See [Contributors][contributors]
- [KaTeX][katex] - A faster LaTeX equation rendering library (since v0.3.0)
- [Gitalk][gitalk] - A Github issued based comment system (since v0.3.0)
- [ghost-search][ghost-search] - An instant search library using Ghost Content API (since v1.0.0)
- [iconfont][iconfont] - A free icon solution (since v1.2.3)

## 📍 Roadmap
To know the future planning of this project, please visit our [Roadmap][roadmap].
@@ -276,5 +290,6 @@ This project is licensed under the MIT License.
[vssue]: https://github.com/meteorlxy/vssue
[custom-prism]: https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+bash+ruby+git+json+markdown+nginx+sql+python+r&plugins=line-numbers+toolbar+show-language
[ghost-search]: https://github.com/HauntedThemes/ghost-search
[iconfont]:https://www.iconfont.cn
[contributors]: https://github.com/huangyuzhang/Fizzy-Theme/graphs/contributors
[roadmap]: https://github.com/huangyuzhang/Fizzy-Theme/projects/3
[roadmap]: https://github.com/huangyuzhang/Fizzy-Theme/projects/3
68 changes: 68 additions & 0 deletions assets/css/iconfont.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

/* ====================== iconfont ====================== 2019.09.25 */
@font-face {
font-family: 'iconfont'; /* project id 1434549 */
src: url('//at.alicdn.com/t/font_1434549_bwov4dvmab.eot');
src: url('//at.alicdn.com/t/font_1434549_bwov4dvmab.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_1434549_bwov4dvmab.woff2') format('woff2'),
url('//at.alicdn.com/t/font_1434549_bwov4dvmab.woff') format('woff'),
url('//at.alicdn.com/t/font_1434549_bwov4dvmab.ttf') format('truetype'),
url('//at.alicdn.com/t/font_1434549_bwov4dvmab.svg#iconfont') format('svg');
}
.iconfont {
font-family: "iconfont" !important;
/* font-size: 16px; */
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-location:before {
content: "\e600";
}

.icon-heart:before {
content: "\e640";
}

.icon-cross:before {
content: "\e61a";
}

.icon-search:before {
content: "\e63d";
}

.icon-tag:before {
content: "\e605";
}

.icon-tags:before {
content: "\e606";
}

.icon-archive:before {
content: "\e607";
}

.icon-like:before {
content: "\e608";
}

.icon-home:before {
content: "\e609";
}

.icon-facebook:before {
content: "\e60a";
}

.icon-twitter:before {
content: "\e60b";
}

.icon-link:before {
content: "\e60c";
}
.icon-star:before {
content: "\e60d";
}
122 changes: 104 additions & 18 deletions assets/css/main.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Theme Name: Fizzy
GitHub Repo: https://github.com/huangyuzhang/Fizzy-Theme
Version: 1.2.0
Version: 1.3.2
Description: A tasty blogging theme for Ghost
Author: Yuzhang Huang
Author URI: https://yuzhang.me
@@ -11,6 +11,7 @@ Author URI: https://yuzhang.me
/* Customized CSS ADD 2019.05.28*/
@import "custom.css";
@import "class.css";
@import "iconfont.css"; /* ADD 2019.09.25 */

/* ====================== over-write bulma default ====================== */
/* fix "has-spaced-navbar-fixed-top" cut off the top on mobile devices 2019.04.09 */
@@ -54,6 +55,20 @@ pre[class*="language-"].line-numbers{
padding-left: 3rem !important;
}

/* overwrite figcaption font size */
.content figure figcaption{
font-size:1rem;
margin-top:1rem;
}

/* overwrite figure spacing (code blocks) */
.content figure:not(:last-child){
margin-bottom: 1em !important;
}
.content figure:not(:first-child) {
margin-top: 1em !important;
}

/* navbar */
.navbar-start .navbar-item,.navbar-item img {
margin-right: 0.25rem;
@@ -125,12 +140,13 @@ strong{
/* ====================== components ====================== */
.featured-label {
position: absolute;
background: linear-gradient(181deg, #fb3b3b,#e12828);
/* background: linear-gradient(181deg, #fb3b3b,#e12828); */
background: #fb3b3b;
color: #fff;
font-size: .875rem;
font-weight: 600;
letter-spacing: .5px;
padding: 0 10px;
padding: 0 7px;
border-radius: 4px;
text-transform: uppercase;
}
@@ -229,6 +245,13 @@ html,body{
}
/* ====================== header ====================== 2019.04.12 */

@media screen and (min-width:1024px){
.nav-container {
margin: 0 auto;
display: flex !important;
}
}

.navbar-brand .text-logo {
font-weight:700;
font-size:1.5rem;
@@ -246,7 +269,6 @@ html,body{
}
#search-btn{
cursor: pointer;
padding: .75rem;
border-radius:4px;
color:#7a7a7a;
}
@@ -287,10 +309,12 @@ html,body{
background: #fff;
border-radius:3px;
color:#333;
word-spacing: 2.5px;
margin:.5rem!important;
}
#search-results a:hover {
font-weight:600;
word-spacing: 1px;
background: #f7f7f7;
color:#333;
}
@@ -306,6 +330,7 @@ html,body{
position: relative;
height:22.5rem;
padding:0!important;
background-color:#fff !important; /* added background color as placeholder*/
}
@media screen and (max-width:768px){
.carousel{
@@ -360,6 +385,7 @@ html,body{
height:10.5rem;
margin-bottom:1.5rem;
padding:0!important;
background-color:#fff !important; /* added background color as placeholder*/
}
.tf-item:last-child {margin-bottom:0}
.tf-meta {
@@ -383,6 +409,7 @@ html,body{
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
background-color:#e9f0f3; /* added background color as placeholder*/
}
@media screen and (max-width: 768px){
.featured-image {
@@ -478,11 +505,11 @@ html,body{
right:10px;
}

/* default style for post content */
.single-article .post-wrap {
max-width: 760px;
padding: 48px 15px;
font-size: 1.25rem;
line-height: 2;
padding: 48px 15px;
font-size:1.15rem;
margin: auto!important;
}
/* post heading size */
@@ -505,19 +532,14 @@ html,body{
color:var(--link-color-hover);
border-bottom:1px solid;
}
/* paragraph */
.post-wrap .post-content p {
line-height: 1.5em;
}
/* hr */
.post-wrap .post-content hr{background: linear-gradient(90deg, rgba(254, 22, 97, 0.6) 0%, rgba(22, 93, 254, 0.5) 100%)}
/* list */
.post-wrap .post-content ul,.post-content ol{
margin-left: 1.5em;
}
.post-wrap .post-content li {
.post-wrap .post-content li+li {
line-height: 1.4em;
margin: 0.5em 0;
}

/* Nested list */
@@ -532,7 +554,7 @@ html,body{
.post-wrap .post-content pre code {
display: block;
line-height: 1.5em;
font-size: 0.875rem;
font-size: 0.875rem !important;
font-weight: 400;
/* padding-bottom: 1.2em; */
}
@@ -630,6 +652,9 @@ html,body{
left:0!important;
right:0!important;
}
.kg-gallery-card figcaption{
/* margin-top:1rem; */
}
@media screen and (max-width:768px){
.kg-gallery-card{width:100%;margin:1rem auto !important;}
}
@@ -667,9 +692,11 @@ html,body{
.about-author{
margin-top:1rem;
padding:2.5rem!important;
line-height:2;
max-width: 560px;
margin: 0 auto;
}
.about-author .name{font-size:1.25rem;font-weight:600;}
.about-author .author-avatar {
border-radius:1.2rem!important;
padding:5px!important;
@@ -685,6 +712,9 @@ html,body{
line-height: 1.5rem;
font-size: 1rem;
}
.single-article .meta-info li:hover .iconfont,.single-article .meta-info li:hover span{
color:#363636 !important;
}
.about-author .bio {
min-height:3em;
font-size: 1rem;
@@ -694,8 +724,9 @@ html,body{

/* Blockquotes */
.single-article .post-wrap .post-content blockquote {
color: var(--text-dark);
border-left: 4px solid;
color: var(--text-dark);
line-height:1.5rem;
border-left: 6px solid;
border-radius: 6px;
background-color: var(--bg-color-light);
border-color: var(--main-color);
@@ -704,6 +735,9 @@ html,body{
padding: .75em 1.25em;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
blockquote ul{
margin-top:0 !important;
}

/* table 2019.07.10 */
.post-content table{
@@ -954,7 +988,7 @@ table tr td:last-child {border-right: solid 1px #dbdbdb;}
justify-content: space-around;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
background-size: cover;
}
.aside .tag-list-header {
display: flex;
@@ -1045,6 +1079,10 @@ table tr td:last-child {border-right: solid 1px #dbdbdb;}
background-size: cover;
background-position: center center;
box-shadow: 0px 1px 0px #ddd;
background-color: #e9f0f3;
}
.tag-card .tag-image.noimg{
background-color:#e9f0f3;
}
.tag-card .tag-image .mask{
height:100%;
@@ -1077,10 +1115,52 @@ table tr td:last-child {border-right: solid 1px #dbdbdb;}
.tag-list-header .title span{
padding:0.5rem 1.5rem;
}
.tag-archive-title{
font-size: 2.5rem !important;
font-weight:700;
}
.tag-archive-item{
padding: 1rem !important;
}
/* ====================== template: Post Archive ====================== 2019.05.28 */
ul.post-archive{margin-left:0!important;}
ul.post-archive{margin-left:0!important;line-height:2 !important;}
.post-archive-item{
display:flex;
justify-content: start;
align-items: normal;
flex-wrap: nowrap;
line-height:2 !important;
font-family: 'Montserrat',
-apple-system,
BlinkMacSystemFont,
"PingFang SC",
"Heiti SC",
"STXihei",
"Microsoft YaHei",
sans-serif !important;
}
.post-archive-item .date{
margin-right:.75rem;
}
.post-archive-item a{
border-bottom:0 !important;
}
.post-archive-item .subtitle{
font-family: 'Montserrat',
-apple-system,
BlinkMacSystemFont,
"PingFang SC",
"Heiti SC",
"STXihei",
"Microsoft YaHei";
}
.post-archive-item .authors,.post-archive-item .authors a{
color:#888;
font-size:.9rem;
}
.post-archive .post-archive-item time{
white-space: nowrap;
width:75px;
}
/* ====================== template: Full Width ====================== 2019.05.10 */
.single-article .post-wrap.full-width {
@@ -1170,13 +1250,16 @@ ul.post-archive{margin-left:0!important;}
font-weight: 600;
font-size: 1.2rem;
line-height:1.5em;
max-height: 3em;
overflow-y: hidden;
}
@media screen and (max-width: 768px){
.kg-bookmark-thumbnail {
display: none;
}
.kg-bookmark-content {width:100%;}
.kg-bookmark-title {font-size:1rem;}
.kg-bookmark-description{font-size:.8rem;}
.kg-bookmark-author,.kg-bookmark-publisher {white-space: nowrap;}
}
.kg-bookmark-card:hover .kg-bookmark-title{
@@ -1185,6 +1268,9 @@ ul.post-archive{margin-left:0!important;}
.kg-bookmark-card:hover .kg-bookmark-container{
box-shadow: 0 3px 6px rgba(12,12,94,.1) !important;
}
.kg-bookmark-card:hover figcaption{
text-shadow: 0 2px 6px rgba(12,12,94,.3) !important;
}
.kg-bookmark-description{
color: #666;
}
55 changes: 29 additions & 26 deletions assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
Theme Name: Fizzy
GitHub Repo: https://github.com/huangyuzhang/Fizzy-Theme
Description: A tasty blogging theme for Ghost
Author: Yuzhang Huang
Author URI: https://yuzhang.me
*/

// header: navbar Burgers 2019.04.08
document.addEventListener('DOMContentLoaded', () => {

@@ -63,30 +71,43 @@ if (typeof show_search == 'undefined') {
if (!show_search) {
$("#search-btn").hide();
}
// click search button event
$("#search-btn").click(function(event) {
// $("#search-input").val("");
$("#search-form").fadeIn();
$("#search-btn").hide()
$("#search-btn").hide();
$('#search-input').focus();
$("#search-results").show();
event.stopPropagation();
});
// click close button event
$("#close-btn").click(function(event) {
$("#search-form").hide();
$("#search-results").hide();
$("#search-btn").fadeIn();
// $("#search-input").val(""); //clear search field text
event.stopPropagation();
});
$(document).click(function(){
$("#search-form").hide();
$("#search-results").hide();
$("#search-btn").fadeIn();
// click outside of search form event
$(document).mouseup(function(e)
{
var container = $("#search-form");

// if the target of the click isn't the container nor a descendant of the container
if (show_search && !container.is(e.target) && container.has(e.target).length === 0)
{
container.hide();
$("#search-results").hide();
$("#search-btn").fadeIn();
}
});
// scroll event
$(window).scroll(function(){
$("#search-form").hide();
$("#search-results").hide();
$("#search-btn").show();
if (show_search) {
$("#search-btn").show();
}
});

/*----------------------------------------------------*/
@@ -95,10 +116,10 @@ $(window).scroll(function(){
$(window).scroll(function(){
var pxCreditBtn = 400;
if($(window).scrollTop() < pxCreditBtn){
$("#fizzy-credit").show();
$("#fizzy-credit").fadeIn();
}
if($(window).scrollTop() >= pxCreditBtn){
$("#fizzy-credit").hide();
$("#fizzy-credit").fadeOut();
}
});
/*----------------------------------------------------*/
@@ -109,22 +130,4 @@ if (typeof line_numbers == 'undefined') {
};
if (line_numbers) {
$("pre").addClass("line-numbers");
};
/*----------------------------------------------------*/
/* External link new tab | 2019.09.09
/*----------------------------------------------------*/
$.expr[':'].external = function(obj){
return !obj.href.match(/^mailto\:/)
&& (obj.hostname != location.hostname)
&& !obj.href.match(/^javascript\:/)
&& !obj.href.match(/^$/)
};
if (typeof external_link_nofollow == 'undefined') {
var external_link_nofollow = false;
};
if (external_link_nofollow) {
$(document).ready(function(){
// open post-content external links with new tabs
$('.post-content a:external').attr('target', '_blank').attr('rel','noopener noreferrer nofollow');
});
};
16 changes: 8 additions & 8 deletions author.hbs
Original file line number Diff line number Diff line change
@@ -7,15 +7,15 @@ into the {body} of the default.hbs template --}}
{{!-- author meta --}}
{{#author}}
{{#if cover_image}}
<section class="hero tag-list-header is-bold bg-cover-center" style="background-image:url({{cover_image}});">
<section class="hero tag-list-header is-bold bg-cover-center" style="background-image:url({{img_url cover_image size="wide"}});">
{{else}}
<section class="hero tag-list-header is-bold bg-cover-center" style="background-image: linear-gradient(to bottom right, #3f0fff, #fc3b3b);">
{{/if}}
<div class="hero-body has-dark-modal is-montserrat">
<div class="about-author container has-text-centered">
{{#if profile_image}}
<figure class="image is-96x96 is-margin-auto">
<img class="image-squared is-rounded" src="{{profile_image}}" alt="{{name}}" title="{{name}}">
<img class="image-squared is-rounded" src="{{img_url profile_image size="small"}}" alt="{{name}}" title="{{name}}">
</figure>
{{/if}}
<h1 class="title has-padding-05 has-text-white">
@@ -26,10 +26,10 @@ into the {body} of the default.hbs template --}}
<ul class="meta-info is-size-6">
<li class="has-text-weight-bold">{{plural ../pagination.total empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}}</li>
<li>|</li>
{{#if twitter}}<li><a href="{{twitter_url}}" class="has-text-white" target="_blank"><i class="fab fa-twitter"></i></a></li>{{/if}}
{{#if facebook}}<li><a href="{{facebook_url}}" class="has-text-white" target="_blank"><i class="fab fa-facebook"></i></a></li>{{/if}}
{{#if website}}<li><a href="{{website}}" class="has-text-white" target="_blank"><i class="fas fa-link"></i></a></li>{{/if}}
{{#if location}}<li><i class="fas fa-map-marker-alt"></i> {{location}}</li>{{/if}}
{{#if twitter}}<li><a href="{{twitter_url}}" class="has-text-white" target="_blank"><i class="iconfont icon-twitter"></i></a></li>{{/if}}
{{#if facebook}}<li><a href="{{facebook_url}}" class="has-text-white" target="_blank"><i class="iconfont icon-facebook"></i></a></li>{{/if}}
{{#if website}}<li><a href="{{website}}" class="has-text-white" target="_blank"><i class="iconfont icon-link"></i></a></li>{{/if}}
{{#if location}}<li><i class="iconfont icon-location"></i> {{location}}</li>{{/if}}
</ul>
</h2>
<div class="has-text-white is-centered is-margin-auto" style="max-width:760px;">
@@ -45,8 +45,8 @@ into the {body} of the default.hbs template --}}
{{!-- main --}}
<main class="section">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
{{#foreach posts}}

{{!-- exclude #noindex --}}
8 changes: 4 additions & 4 deletions custom-featured-posts-archive.hbs
Original file line number Diff line number Diff line change
@@ -7,15 +7,15 @@ into the {body} of the default.hbs template --}}
{{!-- page meta --}}
{{#post}}
{{#if feature_image}}
<section class="hero tag-list-header is-bold bg-cover-center" style="background-image:url({{feature_image}});">
<section class="hero tag-list-header is-bold bg-cover-center" style="background-image:url({{img_url feature_image size="wide"}});">
{{else}}
<section class="hero tag-list-header is-bold bg-cover-center" style="background-image: linear-gradient(to bottom right, #acffc5, #078ddb);">
{{/if}}
<div class="hero-body has-darker-modal is-montserrat">
<div class="container has-text-centered">
<h1 class="title is-vmargin-2 is-capitalized has-text-white is-marginless-bottom">
<span class="is-padding-05-15 round-border-6">
<i class="fas fa-fire-alt"></i> {{title}}
<i class="iconfont icon-star"></i> {{title}}
</span>
</h1>
<h2 class="subtitle is-vmargin-2 has-text-white is-centered is-margin-auto" style="max-width:760px;">
@@ -30,8 +30,8 @@ into the {body} of the default.hbs template --}}
{{#get "posts" include="tags,authors" filter="featured:true" limit="all" order="published_at desc"}}
<main class="section">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
{{#foreach posts}}
{{!-- exclude #noindex --}}
{{#has tag="#noindex"}}
12 changes: 6 additions & 6 deletions custom-full-width.hbs
Original file line number Diff line number Diff line change
@@ -9,20 +9,20 @@
{{!-- featured_image --}}
{{#if feature_image}}
<div class="featured-image">
<div class="featured-image" style="background-image:url({{img_url feature_image size="s"}});">
<div class="featured-image" style="background-image:url({{img_url feature_image}});">
{{!-- featured post label --}}
{{#if featured}}
<div class="post-wrap full-width is-vpadding-15" style="position:relative;height:inherit;">
<span class="featured-label large is-montserrat" title="Featured Post"><i class="fas fa-fire-alt"></i> {{t "Featured"}}</span>
<span class="featured-label large is-montserrat" title="Featured Post"><i class="iconfont icon-like"></i> {{t "Featured"}}</span>
</div>
{{/if}}
</div>
</div>
{{/if}}

<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">

<div class="post-wrap full-width is-vpadding-15">
<div class="spacing-15 is-hidden-mobile"></div>
@@ -37,8 +37,8 @@
{{#has tag="count:>0"}}
<div class="buttons tags has-text-weight-semibold">
<span class="button is-static is-size-7-mobile" style="min-width:2.5em">
{{#has tag="count:1"}}<i class="fas fa-tag"></i>{{/has}}
{{#has tag="count:>1"}}<i class="fas fa-tags"></i>{{/has}}
{{#has tag="count:1"}}<i class="iconfont icon-tag"></i>{{/has}}
{{#has tag="count:>1"}}<i class="iconfont icon-tags"></i>{{/has}}
</span>
{{#foreach tags}}
<a href="{{url}}" class="button is-light is-size-7-mobile has-text-weight-semibold">{{name}}</a>
25 changes: 11 additions & 14 deletions custom-post-archive.hbs
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@
{{#post}}
<section class="section">
<div class="container">
<h1 class="title has-text-centered is-montserrat"><i class="fas fa-history"></i> {{title}}</h1>
<h1 class="title has-text-centered is-montserrat"><i class="iconfont icon-archive"></i> {{title}}</h1>
</div>
</section>
<section class="section is-paddingless-top is-mobile-paddingless">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
<article class="single-article">
<div class="box is-paddingless is-shadowless is-full-mobile is-centered is-clipped">
<section class="post-wrap is-vpadding-15">
@@ -21,24 +21,21 @@
{{t "There are {total} posts in total" total=pagination.total}}
{{/get}}
<ul class="post-archive">
{{#get "posts" limit="all" order="published_at desc"}}
{{#get "posts" limit="all" include="authors" order="published_at desc"}}
{{#foreach posts}}
<li class='post-archive-item' year="{{date format=(t 'YYYY')}}" month="{{date format=(t 'MMMM')}}">
<div class="columns is-mobile">
<div class="column is-2-tablet is-3-mobile">
<time class="is-size-7">[{{date published_at format=(t "DD MMMM YYYY")}}]</time>
<div class="date">
<time class="button is-static is-size-7">{{date published_at format=(t "MMM DD")}}</time>
</div>
<div class="column">
{{#if featured}}
<span style="color:var(--main-color)" title="{{t "Featured"}}"><i class="fas fa-fire-alt"></i></span>
{{/if}}
<div class="subtitle">
<a href='{{url}}'>
{{title}}
</a>
{{#if featured}}
<span style="color:var(--main-color)" title="{{t "Featured"}}"><i class="iconfont icon-star"></i></span>
{{/if}}
<span class="authors"> - {{#authors}} {{name}} {{/authors}} </span>
</div>
</div>


</li>
{{/foreach}}
{{/get}}
12 changes: 6 additions & 6 deletions custom-post-with-TOC.hbs
Original file line number Diff line number Diff line change
@@ -3,17 +3,17 @@
{{#post}}
<section class="section is-mobile-paddingless">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
<article class="single-article">
{{!-- featured_image --}}
{{#if feature_image}}
<div class="box is-paddingless is-shadowless is-full-mobile is-centered">
<section class="featured-image">
<div class="featured-image" style="background-image:url({{img_url feature_image size="s"}});">
<div class="featured-image" style="background-image:url({{img_url feature_image size="wide"}});">
{{!-- featured post label --}}
{{#if featured}}
<span class="featured-label large is-montserrat" title="Featured Post"><i class="fas fa-fire-alt"></i> {{t "Featured"}}</span>
<span class="featured-label large is-montserrat" title="Featured Post"><i class="iconfont icon-star"></i> {{t "Featured"}}</span>
{{/if}}
</div>
</section>
@@ -36,8 +36,8 @@
{{#has tag="count:>0"}}
<div class="buttons tags has-text-weight-semibold">
<span class="button is-static is-size-7-mobile" style="min-width:2.5em">
{{#has tag="count:1"}}<i class="fas fa-tag"></i>{{/has}}
{{#has tag="count:>1"}}<i class="fas fa-tags"></i>{{/has}}
{{#has tag="count:1"}}<i class="iconfont icon-tag"></i>{{/has}}
{{#has tag="count:>1"}}<i class="iconfont icon-tags"></i>{{/has}}
</span>
{{#foreach tags}}
<a href="{{url}}" class="button is-light is-size-7-mobile has-text-weight-semibold">{{name}}</a>
8 changes: 4 additions & 4 deletions custom-tag-archive.hbs
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
{{#post}}
<section class="section is-paddingless-bottom">
<div class="container">
<h1 class="title has-text-centered is-montserrat"><i class="fas fa-tags"></i> {{title}}</h1>
<h1 class="title tag-archive-title has-text-centered is-montserrat"><i class="iconfont icon-tags"></i> {{title}}</h1>
<div class="content post-content is-size-6-mobile is-georgia">{{content}}</div>
</div>
</section>
@@ -18,13 +18,13 @@
<div class="container">
<div class="columns is-mobile is-multiline">
{{#foreach tags}}
<div class="column tag-list is-3-desktop is-4-tablet is-6-mobile can-scale">
<div class="column tag-archive-item is-3-desktop is-4-tablet is-6-mobile can-scale">
<a href="{{url}}" alt="{{description}}" title="{{description}}">
<div class="tag-card has-text-centered">
{{#if feature_image}}
<div class="tag-image" style="background-image:url({{feature_image}});"><div class="mask"></div></div>
<div class="tag-image" style="background-image:url({{img_url feature_image size="medium"}});"><div class="mask"></div></div>
{{else}}
<div class="tag-image" style="background-image: linear-gradient(to bottom right, #acffc5, #078ddb);"><div class="mask"></div></div>
<div class="tag-image noimg"><div class="mask"></div></div>
{{/if}}
<div class="tag-info">
<h2 class="tag-name">{{name}}</h2>
9 changes: 3 additions & 6 deletions default.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{@site.lang}}" class="has-spaced-navbar-fixed-top">
<html lang="{{@site.locale}}" class="has-spaced-navbar-fixed-top">

<head>
{{!-- Document Settings --}}
@@ -24,7 +24,7 @@
{{!-- <link rel="stylesheet" type="text/css" href="{{asset 'css/font.css'}}" /> --}}

{{!-- Bulma v0.7.5 --}}
<link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.4/css/bulma.min.css" rel="stylesheet">
{{!-- <link href="https://cdn.bootcss.com/bulma/0.7.5/css/bulma.min.css" rel="stylesheet"> --}}

{{!-- KaTeX: css --}}
@@ -67,7 +67,7 @@
if (results.total == 0 && document.getElementById('search-input').value != '') {
let resultsElement = document.getElementById('search-results');
let e = document.createElement('p');
e.innerHTML = "<a class='navbar-item'>No results</a>";
e.innerHTML = "<a class='navbar-item'>{{t 'No results'}}</a>";
resultsElement.appendChild(e.firstChild);
};
}
@@ -111,8 +111,5 @@
if (typeof fizzy_credit == 'undefined') {var fizzy_credit = true;};
if (fizzy_credit){$('#fizzy-credit').removeClass("is-hidden");};
</script>

{{!-- Fontawesome icons --}}
<script defer src="https://use.fontawesome.com/releases/v5.8.1/js/all.js" integrity="sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" crossorigin="anonymous"></script>
</body>
</html>
8 changes: 4 additions & 4 deletions error-404.hbs
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@

<main class="section">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
<div class="box has-text-centered">
<div class="error-wrap">
<h1 class="error-code">{{code}}</h1>
<h1 class="error-code">{{statusCode}}</h1>
<h2 class="title error-message">{{message}}</h2>
<p class="message-manual is-montserrat">{{t "Maybe the URL is not correct, or the page is no longer exist."}}</p>
<a class="button subtitle has-text-weight-semibold is-danger is-rounded is-montserrat" href="{{@site.url}}">{{t "Go to home page"}}</a>
<a class="button subtitle has-text-weight-semibold is-danger is-rounded is-montserrat" href="{{@site.url}}"><i class="iconfont icon-home"> </i> &nbsp; {{t "Go to home page"}}</a>
</div>
</div>
</div>
8 changes: 4 additions & 4 deletions error.hbs
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@

<main class="section">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
<div class="box has-text-centered">
<div class="error-wrap">
<h1 class="error-code">{{code}}</h1>
<h1 class="error-code">{{statusCode}}</h1>
<h2 class="title error-message">{{message}}</h2>
<a class="button subtitle has-text-weight-semibold is-danger is-rounded is-montserrat" href="{{@site.url}}">{{t "Go to home page"}}</a>
<a class="button subtitle has-text-weight-semibold is-danger is-rounded is-montserrat" href="{{@site.url}}"><i class="iconfont icon-home"> </i> &nbsp; {{t "Go to home page"}}</a>
</div>
</div>
</div>
Binary file removed fizzy-theme-screenshot.png
Binary file not shown.
4 changes: 2 additions & 2 deletions home.hbs
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ into the {body} of the default.hbs template --}}
{{#get "posts" include="tags,authors" limit=@config.posts_per_page order="published_at desc"}}
<main class="section">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
{{#foreach posts}}
{{!-- post_item: for index & home cards --}}
{{> list_card}}
4 changes: 2 additions & 2 deletions index.hbs
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ into the {body} of the default.hbs template --}}
{{!-- main --}}
<main class="section">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
{{#foreach posts}}

{{!-- exclude #noindex --}}
37 changes: 37 additions & 0 deletions locales/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"TOPIC": "THEMA",
"No posts": "Keine Beiträge",
"1 post": "1 Beitrag",
"% posts": "% Beiträge",
"See all % posts": "Alle % Beiträge ansehen",
"Newer Posts": "Neuere Beiträge",
"Older Posts": "Ältere Beiträge",
"Previous Post":"Vorheriger Beitrag",
"Next Post":"Nächster Beitrag",
"Page {page} of {pages}": "Seite {page} von {pages}",
"Subscribe": "Abonnieren",
"Subscribe to {blogtitle}": "Abonnieren von {blogtitle}",
"Subscribed!": "Abonniert!",
"A collection of 1 post": "Eine Sammlung von einem Beitrag",
"A collection of % posts": "Eine Sammlung von % Beiträgen",
"Latest Posts": "Neuste Beiträge",
" (Page %)": " (Seite %)",
"Read More": "Mehr lesen",
"1 min read": "1 Minute lesedauer",
"% min read": "% Minuten lesedauer",
"MMM DD": "MMM DD",
"See all posts by {name}": "Alle Beiträge von {name} ansehen",
"Featured": "Vorgestellt",
"Maybe the URL is not correct, or the page is no longer exist.": "Villeicht ist die URL nicht richtig oder die Seite existiert nicht mehr.",
"Go to home page": "Zur Startseite wechseln",
"First Page": "Erste Seite",
"Previous Page": "Vorherige Seite",
"Next Page": "Nächste Seite",
"Last Page": "Letzte Seite",
"There is no post yet.": "Es gibt bislang noch keine Beiträge.",
"There are {total} posts in total": "Insgesamt gibt es {total} Beiträge",
"YYYY": "YYYY",
"MMMM": "MMMM",
"Search": "Suche",
"No results":"Keine Ergebnisse"
}
5 changes: 3 additions & 2 deletions locales/en.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
"Read More": "Read More",
"1 min read": "1 min read",
"% min read": "% min read",
"DD MMMM YYYY": "DD MMMM YYYY",
"MMM DD": "MMM DD",
"See all posts by {name}": "See all posts by {name}",
"Featured": "Featured",
"Maybe the URL is not correct, or the page is no longer exist.": "Maybe the URL is not correct, or the page is no longer exist.",
@@ -32,5 +32,6 @@
"There are {total} posts in total": "There are {total} posts in total",
"YYYY": "YYYY",
"MMMM": "MMMM",
"Search": "Search"
"Search": "Search",
"No results":"No results"
}
37 changes: 37 additions & 0 deletions locales/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"TOPIC": "TOPIC",
"No posts": "No hay publicaciones",
"1 post": "1 publicación",
"% posts": "% publicaciones",
"See all % posts": "Ver las % publicaciones",
"Newer Posts": "Publicaciones nuevas",
"Older Posts": "Publicaciones anteriores",
"Previous Post": "Publicación anterior",
"Next Post": "Siguiente publcación",
"Page {page} of {pages}": "Página {page} de {pages}",
"Subscribe": "Subscríbete",
"Subscribe to {blogtitle}": "Subscríbete a {blogtitle}",
"Subscribed!": "¡Suscrito!",
"A collection of 1 post": "Colección de 1 publicación",
"A collection of % posts": "Colección de % publicación",
"Latest Posts": "Últimas publicaciones",
" (Page %)": " (Página %)",
"Read More": "Leer más",
"1 min read": "1 min lectura",
"% min read": "% min lectura",
"MMM DD": "DD MMM",
"See all posts by {name}": "Ver las publicaciones de {name}",
"Featured": "Destacada",
"Maybe the URL is not correct, or the page is no longer exist.": "La URL es incorrrecta o la publicación no existe",
"Go to home page": "Ir a la página principal",
"First Page": "Primera Página",
"Previous Page": "Página Anterior",
"Next Page": "Página siguiente",
"Last Page": "Última página",
"There is no post yet.": "No hay publicaciones todavía.",
"There are {total} posts in total": "Hay {total} publicaciones en total",
"YYYY": "YYYY",
"MMMM": "MMMM",
"Search": "Buscar",
"No results": "Sin resultados"
}
37 changes: 37 additions & 0 deletions locales/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"TOPIC": "SUJET",
"No posts": "Aucun article",
"1 post": "1 article",
"% posts": "% articles",
"See all % posts": "Voir les % articles",
"Newer Posts": "Articles les plus récentes",
"Older Posts": "Articles les plus anciens",
"Previous Post":"Article précédent",
"Next Post":"Article suivant",
"Page {page} of {pages}": "Page {page} sur {pages}",
"Subscribe": "S'abonner",
"Subscribe to {blogtitle}": "S'abonner à {blogtitle}",
"Subscribed!": "Vous êtes désormais abonné !",
"A collection of 1 post": "Un ensemble de 1 article",
"A collection of % posts": "Un ensemble de % articles",
"Latest Posts": "Derniers articles",
" (Page %)": " (Page %)",
"Read More": "Lire la suite",
"1 min read": "1 min de lecture",
"% min read": "% min de lecture",
"MMM DD": "MMM DD",
"See all posts by {name}": "Voir tous les articles de {name}",
"Featured": "En avant",
"Maybe the URL is not correct, or the page is no longer exist.": "Peut-être que l'URl est incorrecte, ou alors la page n'existe plus.",
"Go to home page": "Aller à la page d'accueil",
"First Page": "Première page",
"Previous Page": "Page précédente",
"Next Page": "Page suivante",
"Last Page": "Dernière page",
"There is no post yet.": "Il n'y a pas encore d'article.",
"There are {total} posts in total": "Il y a un total de {total} articles",
"YYYY": "YYYY",
"MMMM": "MMMM",
"Search": "Rechercher",
"No results":"Aucun résultat"
}
37 changes: 37 additions & 0 deletions locales/it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"TOPIC": "ARGOMENTO",
"No posts": "Nessun post",
"1 post": "1 post",
"% posts": "% post",
"See all % posts": "Guarda tutti i % post",
"Newer Posts": "Nuovi post",
"Older Posts": "Vecchi Posts",
"Previous Post":"Post Precedente",
"Next Post":"Post Seguente",
"Page {page} of {pages}": "Pagina {page} di {pages}",
"Subscribe": "Iscriviti",
"Subscribe to {blogtitle}": "Iscriviti a {blogtitle}",
"Subscribed!": "Iscritto!",
"A collection of 1 post": "Una collezione di 1 post",
"A collection of % posts": "Una collezione di % posts",
"Latest Posts": "Ultimi Post",
" (Page %)": " (Pagina %)",
"Read More": "Leggi di più",
"1 min read": "Tempo di lettura di 1 min",
"% min read": "Tempo di lettura di % min",
"MMM DD": "MMM DD",
"See all posts by {name}": "Guarda tutti i post per {name}",
"Featured": "In primo piano",
"Maybe the URL is not correct, or the page is no longer exist.": "Forse l'URL non è corretto o la pagina non esiste più.",
"Go to home page": "Vai alla pagina principale",
"First Page": "Prima Pagina",
"Previous Page": "Pagina Precedente",
"Next Page": "Pagina Seguente",
"Last Page": "Ultima Pagina",
"There is no post yet.": "Non sono ancora presenti dei post.",
"There are {total} posts in total": "Ci sono {total} post in totale",
"YYYY": "YYYY",
"MMMM": "MMMM",
"Search": "Cerca",
"No results":"Nessun risultato"
}
37 changes: 37 additions & 0 deletions locales/pt_BR.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"TOPIC": "TÓPICO",
"No posts": "Nenhum artigo",
"1 post": "1 artigo",
"% posts": "% artigos",
"See all % posts": "Ver todos os % artigos",
"Newer Posts": "Artigos mais recentes",
"Older Posts": "Artigos mais antigos",
"Previous Post": "Artigo anterior",
"Next Post": "Próximo artigo",
"Page {page} of {pages}": "Página {page} de {pages}",
"Subscribe": "Inscreva-se",
"Subscribe to {blogtitle}": "Inscreva-se no {blogtitle}",
"Subscribed!": "Inscrito!",
"A collection of 1 post": "Uma coleção de 1 artigo",
"A collection of % posts": "Uma coleção de % artigos",
"Latest Posts": "Artigos recentes",
"(Page %)": " (Página %)",
"Read More": "Leia mais",
"1 min read": "1 min de leitura",
"% min read": "% min de leitura",
"MMM DD": "MMM DD",
"See all posts by {name}": "Ver todos os artigos de {name}",
"Featured": "Destaque",
"Maybe the URL is not correct, or the page is no longer exist.": "Talvez a URL não esteja correta, ou a página não existe mais.",
"Go to home page": "Ir para página inicial",
"First Page": "Primeira página",
"Previous Page": "Página anterior",
"Next Page": "Próxima página",
"Last Page": "Última página",
"There is no post yet.": "Não existem artigos ainda.",
"There are {total} posts in total": "Existem {total} artigos no total",
"YYYY": "YYYY",
"MMMM": "MMMM",
"Search": "Buscar",
"No results": "Nenhum resultado"
}
37 changes: 37 additions & 0 deletions locales/ta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"TOPIC": "தலைப்பு",
"No posts": "பதிவுகள் இல்லை",
"1 post": "1 பதிவு",
"% posts": "% பதிவுகள்",
"See all % posts": "எல்லா % பதிவுகளையும் பார்",
"Newer Posts": "புதிய பதிவுகள்",
"Older Posts": "பழைய பதிவுகள்",
"Previous Post":"முந்தைய பதிவு",
"Next Post":"அடுத்த பதிவு",
"Page {page} of {pages}": "{pages} பக்கங்களின் {page} ஆவது பக்கம்",
"Subscribe": "பதிவு செய்க",
"Subscribe to {blogtitle}": "{blogtitle}க்கு பதிவு செய்",
"Subscribed!": "குழுசேரப்பட்டது!",
"A collection of 1 post": "1 பதிவின் தொகுப்பு",
"A collection of % posts": "% பதிவுகளின் தொகுப்பு",
"Latest Posts": "சமீபத்திய பதிவு",
" (Page %)": " (பக்கம் %)",
"Read More": "மேலும் படிக்க",
"1 min read": "1 நிமிடத்தில் படிக்கக்கூடியது",
"% min read": "% நிமிடத்தில் படிக்கக்கூடியது",
"MMM DD": "மாதம் தேதி",
"See all posts by {name}": "{name}ன் அனைத்து பதிவுகளையும் காண்க}",
"Featured": "சிறப்பு",
"Maybe the URL is not correct, or the page is no longer exist.": "இந்த URL தவறு, அல்லது இந்த பக்கம் தற்போது இல்லை.",
"Go to home page": "முகப்பு பக்கத்திற்கு செல்லவும்",
"First Page": "முதல் பக்கம்",
"Previous Page": "முந்தைய பக்கம்",
"Next Page": "அடுத்த பக்கம்",
"Last Page": "கடைசி பக்கம்",
"There is no post yet.": "இதுவரை எந்த பதிவும் இல்லை.",
"There are {total} posts in total": "மொத்தம் {total} பதிவுகள் உள்ளன",
"YYYY": "வருடம்",
"MMMM": "மாதம்",
"Search": "தேடல்",
"No results":"தேடல் முடிவுகள் இல்லை"
}
37 changes: 37 additions & 0 deletions locales/th.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"TOPIC": "หัวข้อ",
"No posts": "ไม่มีโพสต์",
"1 post": "1 โพสต์",
"% posts": "% โพสต์",
"See all % posts": "ดูทั้งหมด % โพสต์",
"Newer Posts": "โพสต์ที่ใหม่กว่า",
"Older Posts": "โพสต์ที่เก่ากว่า",
"Previous Post":"โพสต์ก่อนหน้า",
"Next Post": "โพสต์ถัดไป",
"Page {page} of {pages}": "หน้า {page} ใน {pages}",
"Subscribe": "ติดตาม",
"Subscribe to {blogtitle}": "ติดตาม {blogtitle}",
"Subscribed!": "ติดตามแล้ว!",
"A collection of 1 post": "คอลเล็คชั่นของ 1 โพสต์",
"A collection of % posts": "คอลเล็คชั่นของ % โพสต์",
"Latest Posts": "โพสต์ล่าสุด",
" (Page %)": " (หน้า %)",
"Read More": "อ่านเพิ่ม",
"1 min read": "อ่าน 1 นาทีโดยประมาณ",
"% min read": "อ่าน % นาทีโดยประมาณ",
"MMM DD": "MMM DD",
"See all posts by {name}": "ดูโพสต์ทั้งหมดจาก {name}",
"Featured": "แนะนำ",
"Maybe the URL is not correct, or the page is no longer exist.": "URL อาจไม่ถูกต้องหรือไม่มีเพจนี้แล้ว",
"Go to home page": "กลับไปหน้าหลัก",
"First Page": "หน้าแรก",
"Previous Page": "หน้าก่อนหน้า",
"Next Page": "หน้าถัดไป",
"Last Page": "หน้าสุดท้าย",
"There is no post yet.": "ตอนนี้ยังไม่มีโพสต์",
"There are {total} posts in total": "โพสต์ทั้งหมด {total} โพสต์",
"YYYY": "YYYY",
"MMMM": "MMMM",
"Search": "ค้นหา",
"No results": "ไม่พบข้อมูล"
}
37 changes: 37 additions & 0 deletions locales/tr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"TOPIC": "KONU",
"No posts": "Hiç yazı yok",
"1 post": "1 yazı",
"% posts": "% yazı",
"See all % posts": "TÜm (%) yazıları gör",
"Newer Posts": "Yeni Yazılar",
"Older Posts": "Eski Yazılar",
"Previous Post":"Önceki Yazı",
"Next Post":"Sonraki Yazı",
"Page {page} of {pages}": "{pages} sayfadan {page}.",
"Subscribe": "Abone Ol",
"Subscribe to {blogtitle}": "{blogtitle} - abone ol",
"Subscribed!": "Abone olundu!",
"A collection of 1 post": "1 yazıdan oluşan koleksiyon",
"A collection of % posts": "% yazıdan oluşan koleksiyon",
"Latest Posts": "Son Yazılar",
" (Page %)": " (Sayfa %)",
"Read More": "Devamı",
"1 min read": "1 dk. okuma",
"% min read": "% dk. okuma",
"MMM DD": "DD MMM",
"See all posts by {name}": "{name} ait tüm yazıları gör",
"Featured": "Öne Çıkarılmış",
"Maybe the URL is not correct, or the page is no longer exist.": "Girdiğiniz URL hatalı ya da hiç varolmadı.",
"Go to home page": "Ansayfaya Git",
"First Page": "İlk Sayfa",
"Previous Page": "Önceki Sayfa",
"Next Page": "Sonraki Sayfa",
"Last Page": "Son Sayfa",
"There is no post yet.": "Henüz hiç yazı yok",
"There are {total} posts in total": "Toplamda {total} yazı var",
"YYYY": "YYYY",
"MMMM": "MMMM",
"Search": "Ara",
"No results":"Sonuç bulunamadı"
}
5 changes: 3 additions & 2 deletions locales/zh_CN.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
"Read More": "阅读全文",
"1 min read": "读完约需 1 分钟",
"% min read": "读完约需 % 分钟",
"DD MMMM YYYY": "YYYY年MM月DD日",
"MMM DD": "MM月DD日",
"See all posts by {name}": "查看 {name} 的所有文章",
"Featured": "推荐",
"Maybe the URL is not correct, or the page is no longer exist.": "输入的网址有误,或者该页面已被移除。",
@@ -32,5 +32,6 @@
"There are {total} posts in total": "共有 {total} 篇文章",
"YYYY": "YYYY年",
"MMMM": "M月",
"Search": "搜索"
"Search": "搜索",
"No results":"没有结果"
}
2 changes: 1 addition & 1 deletion package-lock.json
52 changes: 22 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,38 @@
{
"name": "fizzy",
"description": "A tasty blogging theme for Ghost.",
"version": "1.2.0",
"version": "1.3.5",
"author": {
"name": "Yuzhang Huang",
"email": "huangyuzhang@live.cn"
},
"engines": {
"ghost": ">=2.0.0",
"ghost-api": "v2"
},
"config": {
"posts_per_page": 8
"ghost": ">=3.0.0"
},
"keywords": [
"ghost",
"theme",
"ghost-theme"
],
"image_sizes": {
"xxs": {
"width": 60
},
"xs": {
"width": 150
},
"s": {
"width": 400
},
"m": {
"width": 800
},
"l": {
"width": 1200
},
"xl": {
"width": 2000
},
"carousel": {
"width": 470,
"height": 600
"dependencies": {},
"config": {
"posts_per_page": 8,
"image_sizes": {
"icon": {
"width": 64
},
"small": {
"width": 300
},
"medium": {
"width": 600
},
"large": {
"width": 900
},
"wide": {
"width": 1200
}
}
},
"dependencies": {}
}
}
10 changes: 5 additions & 5 deletions page.hbs
Original file line number Diff line number Diff line change
@@ -3,15 +3,15 @@
{{#post}}
<section class="section is-mobile-paddingless">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
<article class="single-article">
<div class="box is-paddingless is-shadowless is-full-mobile is-centered is-clipped">

{{!-- featured_image --}}
{{#if feature_image}}
<section class="featured-image">
<div class="featured-image" style="background-image:url({{img_url feature_image size="s"}});"></div>
<div class="featured-image" style="background-image:url({{img_url feature_image size="wide"}});"></div>
</section>
{{/if}}

@@ -24,8 +24,8 @@
{{#tag}}
<div class="buttons tags has-text-weight-semibold">
<span class="button is-static is-size-7-mobile">
{{#has tag="count:1"}}<i class="fas fa-tag"></i>{{/has}}
{{#has tag="count:>1"}}<i class="fas fa-tags"></i>{{/has}}</span>
{{#has tag="count:1"}}<i class="iconfont icon-tag"></i>{{/has}}
{{#has tag="count:>1"}}<i class="iconfont icon-tags"></i>{{/has}}</span>
{{#foreach tags}}
<a href="{{url}}" class="button is-light is-size-7-mobile has-text-weight-semibold">{{name}}</a>
{{/foreach}}
5 changes: 2 additions & 3 deletions partials/footer.hbs
Original file line number Diff line number Diff line change
@@ -10,8 +10,7 @@
<script>
document.write(footer_text);
</script>
<br>Using <a href="https://fizzy.cc/fizzy-theme/" target="_blank" rel="noopener noreferrer"><strong>The Fizzy Theme</strong></a> | Published with <a href="https://ghost.org/" target="_blank" rel="noopener noreferrer"><strong>Ghost</strong></a>
<br>Using <a href="https://fizzy.cc/fizzy-theme/" target="_blank" rel="noopener noreferrer"><strong>The Fizzy Theme</strong> v1.3.5</a> | Published with <a href="https://ghost.org/" target="_blank" rel="noopener noreferrer"><strong>Ghost</strong></a>
</p>
</div>
</footer>

</footer>
86 changes: 39 additions & 47 deletions partials/header.hbs
Original file line number Diff line number Diff line change
@@ -1,78 +1,70 @@
<header>
<nav id="navbar" class="navbar is-white is-spaced has-shadow-thin is-montserrat is-fixed-top" style="z-index:999;" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
{{#if @site.logo}}
<div class="navbar-item logo">
<a href="{{@site.url}}">
<img src="{{@site.logo}}" alt="{{@site.title}}" title="{{@site.title}} - {{@site.description}}" width="auto" height="28">
</a>
</div>
{{else}}
<div class="navbar-item text-logo">
<a class="align-vcentered" href="{{@site.url}}" alt="{{@site.title}}" title="{{@site.title}} - {{@site.description}}">
{{#if @site.icon}}
<img src="{{@site.icon}}">
{{/if}}
{{@site.title}}<span>.</span>
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="nav-container column is-paddingless is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
<div class="navbar-brand">
{{#if @site.logo}}
<div class="navbar-item logo">
<a href="{{@site.url}}">
<img src="{{@site.logo}}" alt="{{@site.title}}" title="{{@site.title}} - {{@site.description}}" width="auto" height="28">
</a>
</div>
{{/if}}
{{else}}
<div class="navbar-item text-logo">
<a class="align-vcentered" href="{{@site.url}}" alt="{{@site.title}}" title="{{@site.title}} - {{@site.description}}">
{{#if @site.icon}}
<img src="{{@site.icon}}">
{{/if}}
{{@site.title}}<span>.</span>
</a>
</div>
{{/if}}

{{!-- burger in mobile devices --}}
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbarPrimary">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
{{!-- burger in mobile devices --}}
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbarPrimary">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>

</div>
</div>

<div id="navbarPrimary" class="navbar-menu">
<div id="navbarPrimary" class="navbar-menu">

{{!-- Site Navigation --}}
<div class="navbar-start">
{{#if @site.navigation}}
{{navigation}}
{{/if}}
{{!-- Site Navigation --}}
<div class="navbar-end">
{{#if @site.navigation}}
{{navigation}}
{{/if}}
</div>
</div>
</div>

<div class="column is-hidden-touch" style="padding: .5rem">
{{!-- Credit Button start --}}
<div class="navbar-end">
<div class="navbar-start">
<div id="fizzy-credit" class="navbar-item has-dropdown is-hoverable is-hidden-mobile btn-fizzy is-hidden">
<div class="btn-fizzy-inner">
<a target="_blank" class="btn-fizzy-text" rel="noopener">Get Fizzy Theme</a>
</div>
<div class="navbar-dropdown is-right">
<a class="navbar-item" href="https://fizzy.cc/Fizzy-Theme/" target="_blank">
Homepage
</a>
<a class="navbar-item" href="https://github.com/huangyuzhang/Fizzy-Theme/" target="_blank">
GitHub Repo
GitHub&nbsp;<img src="https://img.shields.io/github/stars/huangyuzhang/Fizzy-Theme.svg?style=social&label=Star" alt="GitHub Stars">
</a>
<a class="navbar-item" href="https://github.com/huangyuzhang/Fizzy-Theme/projects/3" target="_blank">
Roadmap <span class="badge green"> New</span>
<a class="navbar-item" href="https://github.com/huangyuzhang/Fizzy-Theme/releases/latest/" target="_blank">
<img src="https://img.shields.io/github/release/huangyuzhang/Fizzy-Theme.svg?label=Release&color=green" alt="Download Fizzy Theme">
</a>
<hr class="navbar-divider">
<a class="navbar-item" href="https://github.com/huangyuzhang/Fizzy-Theme/blob/master/CHANGELOG.md" target="_blank">
Changelog
</a>
<a class="navbar-item" href="https://github.com/huangyuzhang/Fizzy-Theme/issues" target="_blank">
Report an issue
</a>
<hr class="navbar-divider">
<a class="navbar-item" href="https://github.com/huangyuzhang/Fizzy-Theme/" target="_blank">
<img src="https://img.shields.io/github/stars/huangyuzhang/Fizzy-Theme.svg?style=social&label=Star" alt="GitHub Stars">
</a>
<a class="navbar-item" href="https://github.com/huangyuzhang/Fizzy-Theme/releases/latest/" target="_blank">
<img src="https://img.shields.io/github/release/huangyuzhang/Fizzy-Theme.svg?label=Release&color=green" alt="Download Fizzy Theme">
</a>
<a class="navbar-item" href="https://github.com/huangyuzhang/Fizzy-Theme/tags/" target="_blank">
<img src="https://img.shields.io/github/tag/huangyuzhang/Fizzy-Theme.svg?label=dev-tag&color=orange" alt="Download Fizzy Theme">
</a>
</div>
</div>
</div>
{{!-- Credit Button end --}}

</div>
</nav>
</header>
</header>
10 changes: 5 additions & 5 deletions partials/list_card.hbs
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@
{{!-- featured_image --}}
{{#if feature_image}}
<a class="column is-hidden-mobile is-paddingless" href="{{url}}" alt="{{title}}" title="{{title}}">
<div class="featured-image" style="background-image:url({{img_url feature_image size="s"}});"></div>
<div class="featured-image" style="background-image:url({{img_url feature_image size="medium"}});"></div>
</a>
<a class="column is-hidden-tablet" href="{{url}}" alt="{{title}}" title="{{title}}">
<div class="featured-image" style="background-image:url({{img_url feature_image size="s"}});"></div>
<div class="featured-image" style="background-image:url({{img_url feature_image size="medium"}});"></div>
</a>

{{!-- post info --}}
@@ -18,9 +18,9 @@
<div class="post-info">
{{#if featured}}
{{#if feature_image}}
<span class="featured-label has-img is-montserrat" title="{{t "Featured"}}"><i class="fas fa-fire-alt"></i> <span>{{t "Featured"}}</span></span>
<span class="featured-label has-img is-montserrat" title="{{t "Featured"}}"><i class="iconfont icon-star"></i> <span>{{t "Featured"}}</span></span>
{{else}}
<span class="featured-label no-img is-montserrat" title="{{t "Featured"}}"><i class="fas fa-fire-alt"></i> <span>{{t "Featured"}}</span></span>
<span class="featured-label no-img is-montserrat" title="{{t "Featured"}}"><i class="iconfont icon-star"></i> <span>{{t "Featured"}}</span></span>
{{/if}}
{{/if}}

@@ -68,7 +68,7 @@
<figure class="image is-32x32">
<img class="image-squared round-border-6" src="
{{#if profile_image}}
{{profile_image}}
{{img_url profile_image size="icon"}}
{{else}}
{{asset 'images/user-avatar-default.png'}}
{{/if}}
6 changes: 3 additions & 3 deletions partials/navigation.hbs
Original file line number Diff line number Diff line change
@@ -3,18 +3,18 @@
<a class="navbar-item {{#if current}} nav-current{{/if}}" href="{{url absolute="true"}}">{{label}}</a>
{{/foreach}}
<div class="navbar-item" id="search-btn">
<i class="fas fa-search"></i>
<i class="iconfont icon-search"></i>
</div>
<div class="fizzy-search">
<div class="field has-addons" style="display:none" id="search-form">
<div class="control has-icons-left">
<input id="search-input" class="input" placeholder="{{t "Search"}}">
<span class="icon is-left">
<i class="fas fa-search"></i>
<i class="iconfont icon-search"></i>
</span>
</div>
<div class="control" id="close-btn">
<button type="submit" class="button"><i class="fas fa-times"></i></button>
<button type="submit" class="button"><i class="iconfont icon-cross"></i></button>
</div>
</div>
<div id="search-results"></div>
61 changes: 36 additions & 25 deletions partials/post/post_aside.hbs
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
<section class="section aside is-vpadding-15">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
<div class="columns is-multiline">
{{!-- previous post: start --}}
{{#prev_post}}
{{#if ../primary_tag}}
<div class="column card-frame is-6-tablet is-4-desktop">
{{else}}
<div class="column card-frame is-6-tablet is-6-desktop">
{{/if}}
<span class="nav-label left is-montserrat has-shadow-lift">{{t "Previous Post"}}</span>
{{> "post/post_card"}}
</div>
{{/prev_post}}
{{!-- previous post: end --}}

{{!-- whether primary_tag exist --}}
{{#if primary_tag}}
{{!-- get # of posts under primary tag, enlarge post card if no other posts --}}
{{#get "posts" filter="tags:{{primary_tag.slug}}"}}
{{plural pagination.total empty="<div class='column card-frame is-6-tablet is-6-desktop'>"
singular="<div class='column card-frame is-6-tablet is-6-desktop'>"
plural="<div class='column card-frame is-6-tablet is-4-desktop'>"}}
{{/get}}
{{else}}
<div class="column card-frame is-6-tablet is-6-desktop">
{{/if}}
{{#prev_post}}
<span class="nav-label left is-montserrat has-shadow-lift">{{t "Previous Post"}}</span>
{{> "post/post_card"}}
{{/prev_post}}
</div>
{{!-- next post: end --}}

{{!-- related posts: start --}}
{{#if primary_tag}}
@@ -48,20 +55,24 @@
{{/get}}
{{/if}}
{{!-- related posts: end --}}

{{!-- next post: start --}}
{{#next_post}}
{{!-- {{#unless tag="#noindex"}} --}} {{!-- exclude #noindex--}}
{{#if ../primary_tag}}
<div class="column card-frame is-6-tablet is-4-desktop">
{{else}}
<div class="column card-frame is-6-tablet is-6-desktop">
{{/if}}
{{!-- whether primary_tag exist --}}
{{#if primary_tag}}
{{!-- get # of posts under primary tag, enlarge post card if no other posts --}}
{{#get "posts" filter="tags:{{primary_tag.slug}}"}}
{{plural pagination.total empty="<div class='column card-frame is-6-tablet is-6-desktop'>"
singular="<div class='column card-frame is-6-tablet is-6-desktop'>"
plural="<div class='column card-frame is-6-tablet is-4-desktop'>"}}
{{/get}}
{{else}}
<div class="column card-frame is-6-tablet is-6-desktop">
{{/if}}
{{#next_post}}
<span class="nav-label right is-montserrat has-shadow-lift">{{t "Next Post"}}</span>
{{> "post/post_card"}}
</div>
{{!-- {{/unless}} --}}
{{/next_post}}
{{> "post/post_card"}}
{{/next_post}}
</div>
{{!-- next post: end --}}


14 changes: 7 additions & 7 deletions partials/post/post_author.hbs
Original file line number Diff line number Diff line change
@@ -7,25 +7,25 @@
<a href="{{url}}" class="has-text-grey-darker">
<figure class="image is-96x96 is-margin-auto">
{{#if profile_image}}
<img class="image-squared box author-avatar" src="{{profile_image}}" alt="{{name}}" title="{{name}}">
<img class="image-squared box author-avatar" src="{{img_url profile_image size="small"}}" alt="{{name}}" title="{{name}}">
{{else}}
<img class="image-squared box author-avatar" src="{{asset 'images/user-avatar-default.png'}}" alt="{{name}}" title="{{name}}">
{{/if}}
</figure>
<strong>{{name}}</strong>
<div class="name">{{name}}</div>
</a>
{{!-- author: meta --}}
<ul class="meta-info is-size-6 has-text-grey-light">
{{#if twitter}}<li><a href="{{twitter_url}}" class=" has-text-grey"><i class="fab fa-twitter"></i></a></li>{{/if}}
{{#if facebook}}<li><a href="{{facebook_url}}" class=" has-text-grey"><i class="fab fa-facebook"></i></a></li>{{/if}}
{{#if website}}<li><a href="{{website}}" class=" has-text-grey"><i class="fas fa-link"></i></a></li>{{/if}}
{{#if location}}<li><span class=" has-text-grey"><i class="fas fa-map-marker-alt"></i> {{location}}</span></li>{{/if}}
{{#if twitter}}<li><a href="{{twitter_url}}" class=" has-text-grey"><i class="iconfont icon-twitter"></i></a></li>{{/if}}
{{#if facebook}}<li><a href="{{facebook_url}}" class=" has-text-grey"><i class="iconfont icon-facebook"></i></a></li>{{/if}}
{{#if website}}<li><a href="{{website}}" class=" has-text-grey"><i class="iconfont icon-link"></i></a></li>{{/if}}
{{#if location}}<li><span class=" has-text-grey"><i class="iconfont icon-location"></i> {{location}}</span></li>{{/if}}
</ul>
{{!-- author: bio --}}
<div class="bio is-vcentered">{{bio}}</div>
{{!-- author: cta --}}
<div class="is-size-6">
<a href="{{url}}"><strong class="has-text-grey-darker">{{t "See all posts by {name}" name=name}}</strong></a>
<a href="{{url}}" rel="nofollow"><strong class="has-text-grey-darker">{{t "See all posts by {name}" name=name}}</strong></a>
</div>
</div>
</div>
8 changes: 4 additions & 4 deletions partials/post/post_card.hbs
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
{{!-- featured_image --}}
<a class="is-paddingless-top" href="{{url}}" alt="{{title}}" title="{{title}}">
{{#if feature_image}}
<div class="featured-image" style="background-image:url({{img_url feature_image size="s"}});"></div>
<div class="featured-image" style="background-image:url({{img_url feature_image size="medium"}});"></div>
{{else}}
<div class="featured-image" style="text-align: center;line-height:190px;background-image: linear-gradient(to bottom right, #6c1f9c, #0e5680);"> <span class="is-montserrat is-size-3 has-text-white">NO IMAGE</span></div>
{{/if}}
@@ -15,9 +15,9 @@
<div class="post-info">
{{#if featured}}
{{#if feature_image}}
<span class="featured-label has-img is-montserrat" title="{{t "Featured"}}"><i class="fas fa-fire-alt"></i> <span>{{t "Featured"}}</span></span>
<span class="featured-label has-img is-montserrat" title="{{t "Featured"}}"><i class="iconfont icon-star"></i> <span>{{t "Featured"}}</span></span>
{{else}}
<span class="featured-label no-img is-montserrat" title="{{t "Featured"}}"><i class="fas fa-fire-alt"></i> <span>{{t "Featured"}}</span></span>
<span class="featured-label no-img is-montserrat" title="{{t "Featured"}}"><i class="iconfont icon-star"></i> <span>{{t "Featured"}}</span></span>
{{/if}}
{{/if}}
<div class="level is-mobile is-montserrat is-uppercase is-margin-bottom-1">
@@ -59,7 +59,7 @@
{{#if profile_image}}
<a href="{{url}}">
<figure class="image is-32x32 is-marginless">
<img class="image-squared is-rounded" src="{{profile_image}}" alt="{{name}}" title="{{name}}">
<img class="image-squared is-rounded" src="{{img_url profile_image size="icon"}}" alt="{{name}}" title="{{name}}">
</figure>
</a>
{{/if}}
6 changes: 3 additions & 3 deletions partials/post/post_comment.hbs
Original file line number Diff line number Diff line change
@@ -5,14 +5,14 @@
{{!-- Comment Block --}}
<section class="section is-vpadding-15">
<div class="columns is-mobile" id="comment-section">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
{{!-- gitalk anchor --}}
<div id="gitalk-container"></div>
{{!-- DISQUS anchor--}}
<div id="disqus_thread"></div>
</div>
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-hidden-touch"></div>
</div>
</div>
</section>
14 changes: 7 additions & 7 deletions partials/showcase.hbs
Original file line number Diff line number Diff line change
@@ -7,16 +7,16 @@

<section class="section showcase is-hidden" id="showcase">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
<div class="columns">
{{!-- carousel start--}}
<div class="column is-7">
<div class="carousel" id="carousel-home">
{{!-- get 10 posts with tag #carousel as --}}
{{#get "posts" limit="6" include="tags,authors" filter="tags:[hash-carousel]" as |carousel|}}
{{#foreach carousel}}
<div class="carousel-item box img-bg has-shadow-lift can-scale" style="background-image: url({{img_url feature_image size="carousel"}});">
<div class="carousel-item box img-bg has-shadow-lift can-scale" style="background-image: url({{img_url feature_image size="large"}});">
<a href="{{url}}" rel="bookmark" class="link-block"></a>
<div class="carousel-meta bg-grad-b">
{{#primary_tag}}
@@ -32,7 +32,7 @@
<figure class="image is-24x24">
<img class="image-squared is-rounded" src="
{{#if profile_image}}
{{profile_image}}
{{img_url profile_image size="icon"}}
{{else}}
{{asset 'images/user-avatar-default.png'}}
{{/if}}
@@ -59,8 +59,8 @@
{{#get "posts" limit="2" include="tags" filter="featured:true" as |top-featured|}}
<div class="top-featured">
{{#top-featured}}
<div class="tf-item img-bg box has-shadow-lift can-scale" style="background-image: url({{img_url feature_image size="carousel"}});background-position: center center;background-repeat: no-repeat;background-size: cover;">
<span class="featured-label is-montserrat" style="right:5px;top:5px;padding:0 5px;" title="{{t "Featured"}}"><i class="fas fa-fire-alt"></i> <span>{{t "Featured"}}</span></span>
<div class="tf-item img-bg box has-shadow-lift can-scale" style="background-image: url({{img_url feature_image size="medium"}});background-position: center center;background-repeat: no-repeat;background-size: cover;">
<span class="featured-label is-montserrat" style="right:5px;top:5px;padding:0 3px;" title="{{t "Featured"}}"><i class="iconfont icon-star"></i> <span>{{t "Featured"}}</span></span>
<a href="{{url}}" rel="bookmark" class="link-block"></a>
<div class="tf-meta bg-grad-b">
<a href="{{url}}" rel="bookmark" class="link-block"></a>
@@ -79,6 +79,6 @@
{{!-- top-featured end --}}
</div>
</div>
<div class="column is-2-widescreen is-hidden-touch"></div>
<div class="column is-hidden-touch"></div>
</div>
</section>
14 changes: 7 additions & 7 deletions post.hbs
Original file line number Diff line number Diff line change
@@ -3,17 +3,17 @@
{{#post}}
<section class="section is-mobile-paddingless">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
<article class="single-article">
{{!-- featured_image --}}
{{#if feature_image}}
<div class="box is-paddingless is-shadowless is-full-mobile is-centered">
<section class="featured-image">
<div class="featured-image" style="background-image:url({{img_url feature_image size="s"}});">
<div class="featured-image" style="background-image:url({{img_url feature_image size="wide"}});">
{{!-- featured post label --}}
{{#if featured}}
<span class="featured-label large is-montserrat" title="Featured Post"><i class="fas fa-fire-alt"></i> {{t "Featured"}}</span>
<span class="featured-label large is-montserrat" title="Featured Post"><i class="iconfont icon-star"></i> {{t "Featured"}}</span>
{{/if}}
</div>
</section>
@@ -35,9 +35,9 @@
{{!-- tags --}}
{{#has tag="count:>0"}}
<div class="buttons tags has-text-weight-semibold">
<span class="button is-static is-size-7-mobile" style="min-width:2.5em">
{{#has tag="count:1"}}<i class="fas fa-tag"></i>{{/has}}
{{#has tag="count:>1"}}<i class="fas fa-tags"></i>{{/has}}
<span class="button is-static is-size-7-mobile" style="padding:0 0.5em;min-width:2.5em">
{{#has tag="count:1"}}<i class="iconfont icon-tag"></i>{{/has}}
{{#has tag="count:>1"}}<i class="iconfont icon-tags"></i>{{/has}}
</span>
{{#foreach tags}}
<a href="{{url}}" class="button is-light is-size-7-mobile has-text-weight-semibold">{{name}}</a>
8 changes: 4 additions & 4 deletions tag.hbs
Original file line number Diff line number Diff line change
@@ -7,15 +7,15 @@ into the {body} of the default.hbs template --}}
{{!-- tag meta --}}
{{#tag}}
{{#if feature_image}}
<section class="hero tag-list-header is-bold bg-cover-center" style="background-image:url({{feature_image}});">
<section class="hero tag-list-header is-bold bg-cover-center" style="background-image:url({{img_url feature_image size="wide"}});">
{{else}}
<section class="hero tag-list-header is-bold bg-cover-center" style="background-image: linear-gradient(to bottom right, #acffc5, #078ddb);">
{{/if}}
<div class="hero-body has-darker-modal is-montserrat">
<div class="container has-text-centered">
<h1 class="title is-vmargin-2 is-capitalized has-text-white is-marginless-bottom">
<span class="is-padding-05-15 round-border-6">
<i class="fas fa-tag"></i> {{name}}
<i class="iconfont icon-tag"></i> {{name}}
</span>
</h1>
<h2 class="subtitle is-vmargin-2 has-text-white is-centered is-margin-auto" style="max-width:760px;">
@@ -38,8 +38,8 @@ into the {body} of the default.hbs template --}}
{{!-- main --}}
<main class="section">
<div class="columns">
<div class="column is-2-widescreen is-1-desktop is-hidden-touch"></div>
<div class="column is-8-widescreen is-10-desktop is-12-tablet">
<div class="column is-hidden-touch is-1-desktop is-1-widescreen is-2-fullhd"></div>
<div class="column is-12-tablet is-10-desktop is-10-widescreen is-8-fullhd">
{{#foreach posts}}

{{!-- exclude #noindex --}}