A tasty blogging theme for Ghost :ghost:
Thanks to everyone who starred this project. Please read the documentation to exploit all the features of this theme.
Download the .zip
file and upload it at your Ghost Admin > Setting > Design.
My blog Fizzy.cc is currently using this theme.
Use this issue to add your site with Fizzy Theme.
If only site icon is uploaded, the Logo area will display the icon and followed by the Site name then a dot colored as the main color, e.g.:
If site logo is uploaded, then the Logo area will only display the site logo.
Note: Since the top navbar is colored with white background, it would be better to use a dark/colorful logo.
You can change the theme's language in Ghost Admin -> General -> "Publication Language".
Code | Language | Status | Translator |
---|---|---|---|
de |
German | β | Marek Schmidt |
en |
English | β | |
fr |
French | β | Lourys |
it |
Italian | β | Pyrox |
pt_BR |
Brazilian Portuguese | β | matheusvanzan |
ta |
Tamil | β | MC Naveen |
th |
Thai | β | atbee |
tr |
Turkish | β | 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" to dev
branch of this repo (not master
).
You could customize the following files to define the CDN of assets to speed up access in specific regions:
./default.hbs
./partials/post/post_footer.hbs
./partials/post/post_toc.hbs
Internal tags start with #
, after creating it will displayed as internal tag automatically. Internal tags will not be displayed in front-end. So far the Fizzy Theme support the following internal tags:
#carousel
(slug:hash-carousel
) to add posts into carousel in homepage (see Showcase). #noindex
(slug:hash-noindex
) to exclude posts from listing in home page.
limitation: hiding posts with
#noindex
tag, but the number of posts displayed for that page will change as well.
The showcase section is built to highlight posts. It is available only on the homepage. Insert the following code into Ghost Admin -> Code injection -> Site Header
to enable the showcase:
<script>
var show_showcase = true; //default: false
</script>
The left slider carousel part detects the internal tag #carousel
. The right part will display 2 featured posts.
You can customize the author page by editing your profile in Ghost Admin, such as name, avatar, background image, social account links, location and bio. Author page (demo)
You can customize the tag page by editing tags in Ghost Admin, such as image, description. Tag Page (demo)
Open the gear icon β while editing a post or page, scroll to the bottom and change Template
option.
To enable collection, edit the routes.yaml
as below. Then modify the home.hbs
to customize your homepage. Full doc: Ghost Docs - Collections
routes:
/: home # template for homepage `home.hbs`
collections:
/movie/: # a collection called movie
permalink: /movie/{slug}/
template: movie # template `movie.hbs`
filter: tag:movie # fetch data from a tag:movie
data: tag.movie # have access to all data & meta data from tag
/music/: # a collection called music
permalink: /music/{slug}/
template: music # template `music.hbs`
filter: primary_tag:music # fetch data from primary tag: music
data: tag.music # have access to all data & meta data from tag
Notice: known issues of Ghost collection, e.g.: Ghost #10082.
Download the theme .zip
file, unzip it then edit the variables in assets/css/custom.css
to customize your theme coloring. After that, zip everything back into a .zip
file and upload it onto your Ghost admin.
By default, your site description (Ghost Admin -> General) will be displayed in the footer text. If you need to change it, define a variable footer_text
in the Site Header
as below:
<script>
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>";
Due to Ghost itself doesn't have a comment system, we need to use third party solutions for this. Some options are: DISQUS, Gitalk, Valine and Vssue. By default, Fizzy has Gitalk and DISQUS integrated. Skip the following if you do not need the comment system.
By default, the comment system is disabled. To enable it, first insert the following code into Post Header
for a single post or Site Header
for the whole site at Ghost Admin -> Code injection to configure accordingly, then choose one of the comment systems below and follow the instruction.
<script>
var show_comment = true; //default: false
</script>
Gitalk is a Github issue based comment system. Automatically support en
, zh_CN
, zh_TW
, es
by detecting the language of user's navigator.
Site Footer
, and modify the configuration with your Github App & Repository from previous steps.<script>
const gitalk = new Gitalk({
clientID: 'GitHub Application Client ID',
clientSecret: 'GitHub Application Client Secret',
repo: 'GitHub repo',
owner: 'GitHub repo owner',
admin: ['GitHub repo owner and collaborators, only these guys can initialize github issues'],
id: location.pathname, // Ensure uniqueness and length less than 50
distractionFreeMode: false // Facebook-like distraction free mode
});
gitalk.render('gitalk-container');
</script>
more usage guide and options please check here.
Insert the following code into Ghost Admin -> Code injection: Site Header
, and modify the link with yours.
<script>
var disqus_link = 'https://YOURLINK.disqus.com/embed.js'; // change it with your DISQUS js link
</script>
If you want to change the comment system, you need to modify the code in partial/post/post_comment.hbs
.
Prism.js is used for syntax highlighting, the default languages and plugins used by Fizzy theme are:
To customize this yourself, open customize Prismjs and choose the languages you need. Then download the js and css files to overwrite the prism.js
and prism.css
files in assets
folder.
The line numbers are hidden by default. To enable it, insert the following code into Post Header
for a single post or Site Header
for the whole site:
<script>
var line_numbers = true; //default: false
</script>
There are two ways to control the TOC of a post:
Post Header
for a single post or Site Header
for the whole site;
<script>
var show_toc = true; // enable TOC (default: false)
</script>
Post With Toc
to enable TOC.
Priority:
template
>Post Header
>Site Header
Notice: h2 and h3 headings on the page will be displayed by default. If you want to add other headings (e.g. h1 or h4), please edit
selectors
of the filepartials/post/post_toc.hbs
. However, you should not use h1 except for the post title.
The search function uses Ghost Content API. To enable it (added to top menu), first add a custom integration in Ghost Admin. Then copy the Content API Key and API URL.
Go to the Code injection, add the following code to the Site Header
:
<script>
var show_search = true; // default:false
var search_key = 'PASTE THE CODE YOU COPIED AS Content API Key';
var search_url = 'PASTE THE CODE YOU COPIED AS API URL'; // it is usually your site url
</script>
Use $
(inline) or $$
to cover commands to render for LaTeX commands. (examples)
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)
partials/navigation.hbs
to customize your dropdown menu, or delete the section if not needed.class="badge <color>"
to use badge (HTML only).(demo)
Note: to use uncolored badge, set as
class="badge"
.
"posts_per_page": 8
in package.json
/* white-space: nowrap; */
in assets/css/main.css
around line 703.If you want to disable the top right "Get Fizzy Theme" button, insert the following code into your Site Header
from Code Injection
:
<script>
var fizzy_credit = false; // default:true
</script>
Please do not remove the footer text "Using The Fizzy Theme" and the link. Thank you for your support!
See CHANGELOG.md
See Contributors
To know the future planning of this project, please visit our Roadmap.
If you find a bug, thinking about something to be improved or even want new features, please feel free to post an issue.
Alternatively you could contribute to this project.
git checkout -b feature-fooBar
)git commit -m 'Add something'
)git push origin feature-fooBar
)dev
branch hereThis project is licensed under the MIT License.