Pinolada - Ghost Theme Documentation
Welcome to Pinolada documentation. Pinolada is a Refreshing Blog & Magazine Ghost Theme.
This theme is extremely beginner friendly but if there is something that isn't in the documentation or isn't clear to you please emails us at [email protected] and ask your question. It would help if you provide also your site link.
Check it out at https://ghost.apalodi.com/themes/pinolada/
Getting Started
Since this is a Ghost theme documentation, it is assumed that you have a basic knowledge of how to use Ghost.
If you're just starting out with Ghost, it is best to see the guides in the official Ghost Help Center - check this out and you'll have all the information that is available.
Installation
Follow the steps below to upload the theme:
- Log in to your publication admin section at
yoursite.com/ghost/
- Go to Settings > Design (
yoursite.com/ghost/#/settings/design/
) - Click Change theme and then click Upload theme and select the
pinolada.zip
file. - After the upload is complete click Activate
Updates
Before installing a new version of this theme please do not forget to make a backup of the version you are currently using.
If you have not modified any files in the theme folder previously, you can simply upload the new file pinolada.zip
in the Ghost Admin and that's it.
However, if you have made changes to some files previously, you must apply those changes to the files in the folder corresponding to the latest version, otherwise your changes will be overwritten.
Features
Dark Mode
When you go to Settings > Design > Site Wide you can enable dark mode. There are 3 options to choose from.
- Disabled
Only Light theme will be visible to users - Always On
Only Dark theme will be visible to users - Switcher
Adds option for each user to set the desired theme for themselves
You can also add a custom logo for dark mode.
2 Highlight Styles
When you go to Settings > Design > Site Wide you can select what highlight style you want.
- Classic (default)
Grid with one bigger post. - Magazine
Check it out at https://ghost.apalodi.com/pinolada/magazine/
Submenus
To create a submenu all you need is to wrap your items with [submenu]
and closing [/submenu]
.
The previous menu item will become the parent item and link will be removed from it as that item will be converted to a button that when you click on mobile it opens the submenu.
Featured Posts
Featured posts will load always the latest 3 featured. All you need to do is go into the post and in the sidebar click Feature this post
Custom Templates
Theme adds custom templates for the pages and posts. All you need to do is go to the post/page sidebar and select the template.
Authors Template
To present all authors from your publication you can create a new page (call it how you want) and select the page template Authors. Add optionally featured image and excerpt to show as description.
Tags Template
To present all tags from your publication you can create a new page (call it how you want) and select the page template Tags. Add optionally featured image and excerpt to show as description.
Post Card Details
When you go to Settings > Design > Site Wide you can choose what things you would like to display on the post card.
- Read Time
- Author & Read Time
- Date & Read Time
- Author, Date & Read Time (default)
Post Settings
When you go to Settings > Design > Post you can choose what things you would like to display on the post. Authors, sharing buttons and related posts.
Newsletter
First you need to enable Subscriptions in Settings > Membership.
By default theme adds a Newsletter box to the posts. To customize the text you can change it in the Settings > Design > Post section.
If you remove the text and leave the field empty it will remove the Newsletter box from the posts.
Comments
Theme support native Ghost comments which you can enable if you go to Settings > Membership and choosing who can post a comment.
Customizations
Custom Colors
To change the colors you can use CSS custom properties. Go to Settings > Code injection and enter these custom styles.
Background Color
<style> :root { --pinolada-color-background: #f4f6f8; } </style>
Accent Color
You choose the accent color inside Ghost Design settings. If you choose a light accent color a white text won't be that much visible. That is why we have added an option to change the accenct color scheme (light - dark).
<style> :root { --pinolada-accent-color-scheme: dark; --pinolada-accent-color-contrast: true; } </style>
There is also option to select if the accent color has a good enough contrast to be used as a e.g. link.
Dark Mode Background Color
<style> :root { --pinolada-dark-mode-color-background: #181818; --pinolada-dark-mode-color-scheme: dark; } </style>
Dark Mode Accent Color
Sometimes your accent color won't work nicely with the dark mode so we added a way for you to change the accent color on dark mode.
<style> :root { --pinolada-dark-mode-color-accent: #055a5b; --pinolada-dark-mode-accent-color-scheme: dark; --pinolada-dark-mode-accent-color-contrast: true; } </style>
Typography
The theme by default ads support for Space Grotesk, Overpass, Rubik, Jost, Geist, Geist Mono, Lora, Georgia and default System UI font.
If you want to add your own custom fonts from e.g. https://fonts.google.com/ you can do that by switching the settings to "System UI" font so we don't load any font.
Then you need to copy the font link.
And paste it inside the "Code injection" option.
After that you will need to use the CSS custom properties to select the font name and weights.
:root {
--pinolada--font-family--base: 'Poppins', sans-serif;
--pinolada--font-weight--base: 400;
--pinolada--font-weight--base-bold: 600;
--pinolada--font-family--elements: 'Poppins', sans-serif;
--pinolada--font-weight--elements: 500;
--pinolada--font-weight--elements-bold: 600;
--pinolada--font-family--headings: 'Poppins', sans-serif;
--pinolada--font-weight--headings: 600;
--pinolada--letter-spacing--headings: -0.02em;
--pinolada--underline-position--headings: 1.1em;
}
Infinite Scroll
To enable infinite scroll you need to go to Settings > Code injection and enter custom script setting that will enable it.
<script> var pinolada_infinite_scroll = true; </script>
Copyright Text
To customize the copyright text you can do it by going to Settings > Design > Site Wide and using the Copyright text setting.
There are few placeholders that can help you to insert dynamic things.
{sitetitle}
- Your site title{year}
- Current year{ghostlink}
- Link to ghost homepage
Social Icons
Ghost by default supports only Facebook and Twitter. You can change those by going to Settings > General and expanding the Social accounts section.
Theme adds support for 4 more: Instagram, TikTok, YouTube and LinkedIn. To add them you need to go to Settings > Design > Site Wide and add the urls.
Theme has support for many different social icons but you would have to manually add links for them by modifying the template partials/socials.hbs
. All the icons are inside the partials/icons/socials/
E.g if we want to add a new social link for Mastadon
<a href="https://mastodon.social/@example" aria-label="'Follow on Mastadon'" target="_blank" rel="noopener noreferrer" class="socials__link" data-social="mastadom">{{> 'icons/socials/mastadon'}}</a>
Logo Height
To change max logo size go to the Settings > Code injection > Site Header and paste the code below. Change the 40px
to your desired height.
<style> :root { --pinolada--size--logo: 40px; } </style>
Posts per Page
The posts_per_page
defines the number of posts that appear in your collections until it's paginated. For example, the value of posts_per_page
is used on the homepage, tag, and author templates.
By default, this is set to 12, but you can change it in the package.json
file:
"config": { ... "posts_per_page": 12 ... }
Developers
If you want to make more advanced changes to the theme, or you want to develop your components, the theme comes with a developer-friendly setup.
All the assets are combined and minified for better speed and performance using the amazing Vite. To customize the theme make sure you have Node.js and npm installed.
Follow the official guide for installing Ghost locally. After you have installed Ghost and put the theme directory inside the content/themes/
directory.
In the package.json
under scripts
section you can see all the commands available to you that you can run when you are inside the theme directory.
To install dependencies.
npm install
To start development and watch the files for changes.
npm start
To build the final assets.
npm run build
Theme comes with predefined linting rules for CSS and JS and are requirement for the build. As seen here all linting scritps are run before actually building theme assets.
"build": "run-s --silent lint:* build:production",
But you can easily use a command that doesn't require linting to pass.
npm run build:production
To help you fix linting errors use either
npm run lint:fix
To fix all linting errors at once (probably needs to be run few times).
Or try to fix individually things e.g.
npm run lint:js:fix
npm run lint:css:fix
Changelog
Version 1.0 (9 November 2024)
- Initial release