Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jekyll-theme-hydure

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jekyll-theme-hydure

  • 2.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Hydure

Hydure is a concise two-column blog theme for Jekyll. It is built on the Pure.css framework.

Check out the demo.

Screenshot

Highlight Features

Table of Contents

Installation

Add this line to your Jekyll site's Gemfile:

gem "jekyll-theme-hydure"

And add this line to your Jekyll site's _config.yml:

theme: jekyll-theme-hydure

And then execute:

bundle

Or install it yourself as:

gem install jekyll-theme-hydure

If your website is hosted on GitHub Pages, you can install this theme via jekyll-remote-theme.

Add the following to your Gemfile:

gem "jekyll-remote-theme"

And add this line to your Jekyll site's _config.yml:

plugins:
  - jekyll-remote-theme

Add the following to your site's _config.yml:

remote_theme: zivong/jekyll-theme-hydure

Usage

Global Configuration

VariableTypeDefaultSpecification
langStringenThe language of pages; The value can be overwritten by the lang variable on each page.
titleString---The title of the website
taglineString---The tagline of the website
coverString---The URL of the sidebar cover image; The value can be overwritten by the cover variable on each page.
author.nameString---The name of the website author
author.urlString---A URL of the website author
disqusString---Disqus short name
google_analyticsString---Google Analytics 4 Measurement ID
tags_pathString---A path to the archive-by-tags page; It is used by tags on each post
categories_pathString---A path to the archive-by-categories page; It is used by categories on each post

Post Configuration

VariableTypeDefaultSpecification
descriptionString---A description of the current post
last_modified_atString---The date of the last modification you made on a post after its publishing
authorString or Array---The author name(s) of the post
mathBooleanfalseDoes enable MathJax on this page
commentsBooleantrueDoes enable the Disqus comment system

Homepage

You can create a homepage for your site by setting layout: home in your index.html.

Custom Head

Hydure leaves a placeholder to allow defining custom head. All you need to do is putting data into _includes/custom-head.html, and they would be automatically included in <head>.

Navigation

The navigation menu of Hydure is configurable. You just need to specify titles and URLs in the file _data/navigation.yml, for example,

- title: Home
  url: /
- title: About
  url: /about/
- title: Archive
  url: /archive/

Hydure allows you to show social links on your website. All you need to do is creating a file _data/social.yml, for example,

- title: Email
  url: mailto:zivong@protonmail.com
  icon: fas fa-envelope
- title: Twitter
  url: https://twitter.com/zivong91
  icon: fab fa-twitter
- title: GitHub
  url: https://github.com/zivong
  icon: fab fa-github

Alert Messages

Hydure provides a predefined class message to specify alert messages. You may add it to single elements like a <p>, or to a parent if there are multiple elements to show.

Archive

Hydure provides some built-in archive pages. It is implemented in pure Liquid. If you want to archive posts by years, you can create a page and put these code in it:

---
layout: archive
type: years
---

Similarly, if you want to archive posts by categories or tags, you can set the type property as categories or tags.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/zivong/jekyll-theme-hydure. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Development

To set up your environment to develop this theme, run bundle install.

Your theme is setup just like a normal Jekyll site! To test your theme, run bundle exec jekyll serve and open your browser at http://localhost:4000. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.

When your theme is released, only the files in _layouts, _includes, _sass and assets tracked with Git will be bundled. To add a custom directory to your theme-gem, please edit the regexp in jekyll-theme-hydure.gemspec accordingly.

License

The theme is available as open source under the terms of the MIT License.

FAQs

Package last updated on 04 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc