haihara-master/haihara
.
/content/themes/
directory within your Ghost installation.haihara
directory found in step one into the remote /content/themes/
directory.yourdomain.com/ghost
.Settings > Design
.Themes
section, click Activate
where is says haihara
.yourdomain.com/ghost
.Settings > Design
.Themes
section, click Upload
and select within the download files:
haihara.zip
.
Activate now
.Integrations > Custom integrations
./assets/js/main.js
at line 18.These options can be found within the file /assets/js/main.js
inside the theme. These are all located on the first section of the file. Replace the current values with your required settings.
var config = { 'share-selected-text': true, 'load-more': true, 'infinite-scroll': false, 'infinite-scroll-step': 3, 'disqus-shortname': 'hauntedthemes-haihara' // Read below how to set Disqus url for Latest Comments and Popular Threads };
Has 2 posible options: true
or false
.
When is set to true
a user has the posibility to select a portion of text from a post and share it on Twitter.
Has 2 posible options: true
or false
.
When is set to true
the pagination will be replaced with a load more
button.
Has 2 posible options: true
or false
.
When is set to true
the posts will be automatically loaded when the user scrolls.
Set the number of iteration before the Load more
button shows. This way the footer doesn't become useless.
Enter your Disqus account shortname here to enable comments for blog posts.
You can define posts_per_page
inside package.json
. This will set the number of posts that will load each iteration.
Haihara by default uses Google fonts.
Roboto
for paragraphs.Roboto Condensed
for headings.Montserrat for tags
.Haihara also has been customized to support these fonts from Typekit:
Sofia Pro for paragraphs
.
Ropa Soft Pro for headings
.
Dienstag for tags
.
To use the above fonts you have to choose the fonts, create a kit and get the embed code.
Your embed code will look something like this:
<script src="https://use.typekit.net/xxxxxxx.js"></script> <script>try{Typekit.load({ async: true });}catch(e){}</script>
Replace xxxxxxx
to your kit ID
.
After you have your embed code you'll have to:
Settings > Code injection
.Blog Header
textarea and click Save
.If everything is ok with Typekit fonts you should remove Lora
and Cabin
fonts from partials/theme_head.hbs
. Simply comment or remove the line.
The first step to setting up tracking is to create an Analytics property. Creating an Analytics property generates a tracking ID
and a JavaScript tracking code snippet.
The Javascript code will look something like this:
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-Y
', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
Replace UA-XXXXX-Y
with your tracking ID
.
Then you'll have to put the code inside Ghost:
Settings > Code injection
.Blog Header
textarea and click Save
.You will need to signup for a Disqus account. Once you have created an account and setup your shortname, enter it into the theme configuration which can be found within the file /assets/js/main.js
inside the theme.
You will need to write your shortname right to the 'disqus-shortname'
variable.
If you use MailChimp to manage an email subscription list, you can past your embed code into the partials/theme_footer.hbs
file. To get the code you should follow the next steps:
Lists
.Signup Forms -> Embedded Forms
.Naked style
.Include form title
, Show interest group fields
and Show required field indicators
.partials/theme_footer.hbs
file and replace: {{subscribe_form form_class="gh-signin" input_class="gh-input" button_class="btn" placeholder="Your email address" }}
If you have any questions, bug reports or features requests, please contact us at support@hauntedthemes.com or feel free to chat with us on hauntedthemes.com.