Overview
Hydrogen is a lightweight and clean theme for blogging that provides a simple and fast reading experience. It uses lightweight modules to render everything displayed on your screen. Hydrogen offers a streamlined design and quick loading times, making it ideal for those who are tired of endless loading and complex page content. This theme is available in Simplified Chinese and English languages.
Features
- Lightweight and clean design
- Fast reading experience
- Customizable options for blog name, description, keywords, and more
- Pagination for displaying a set number of articles on the homepage
- Customizable background image for the homepage
- Customizable theme color for the top bar
- Option to enable or disable MathJax for mathematical equations
- Option to enable or disable PJAX for seamless page loading
Installation
To install the Hydrogen theme, follow these steps:
- Open the root directory of your theme.
- Modify the
_config.ymlfile according to your requirements:- Change the title to your desired blog name.
- Change the description to your desired blog description.
- Enter relevant keywords for SEO purposes.
- Set the
baseurlto the directory folder where your blog is located. If your blog is in the root directory, leave it blank. - Enter your domain name in the
urlfield without adding “http://” or “https://”. - If desired, enter a build time in the
bulidtimefield for calculating the blog’s establishment time. - Set the maximum number of articles to display on the homepage in the
paginatefield. - Specify the path for the background image of the homepage in the
backgroundfield. - Set the theme color for the top bar by entering the color code in the
theme_colorfield (without the “#” symbol). - Choose whether to enable MathJax by setting the
MathJaxfield to true or false. - Enter your name in the
authorfield. - Choose whether to enable PJAX by setting the
PJAXfield to true or false.
- If you have your own domain, modify the
CNAMEfile in the root directory with your domain name. - To add friend links, open the
friends.ymlfile in the_datadirectory and add the relevant code according to the provided template. - To make a post sticky, add
stickie: trueto the Front Matter of the post. - To enable comments, make sure you have read the Valine documentation and:
- Configure the
_data/social.ymlfile with your app id, key, and relevant comment information. - Modify the
comments.htmlfile in the_includesdirectory for comment settings. - Change the
enablevalue in the_data/social.ymlfile from false to true. - Note that Valine compatibility may conflict with PJAX functionality, so it is recommended to disable PJAX if comments are enabled.
- Configure the
- Finally, thoroughly read the documentation for any further issues or difficulties. Feel free to raise issues for assistance or bug reports.
Summary
Hydrogen is a lightweight and clean theme for blogging that offers a streamlined and fast reading experience. It provides customizable options for blog name, description, keywords, background image, theme color, and more. With built-in features such as pagination and the ability to make posts sticky, Hydrogen makes it easy to create and customize a blog. Additionally, it offers options to enable MathJax for mathematical equations and PJAX for seamless page loading. However, users are advised to carefully read the documentation for proper installation and configuration.