Coder Social home page Coder Social logo

forthoney / consolo Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 955 KB

A console-inspired jekyll theme for personal blogs and websites. Improved/expanded fork of b2a3e8's jekyll-theme-console.

License: MIT License

Ruby 5.56% HTML 19.06% SCSS 75.37%
jekyll jekyll-theme

consolo's Introduction

consolo

consolo aims the recreate the rugged look of a terminal/console interface while maintaining legibility.

It is forked from jekyll-theme-console which, as far as I can tell, is no longer maintained. consolo refines the general look of the original theme, standardizes content, and greatly improves on extensibility. Parts of the installation guide also come from the original theme.

Live Demo (aka my own blog)

Screenshots

Collage of themes

Installation

Prerequisites

If you're starting with Jekyll from scratch, follow the steps in the Quickstart Guide. Skip this if you already have an existing jekyll project.

Install as Remote theme for GitHub Pages

Set remote_theme in your project's Jekyll _config.yml file:

remote_theme: Forthoney/consolo

Install as Gem

Add this line to your Jekyll site's Gemfile:

gem "consolo"

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

theme: consolo

And then execute:

$ bundle

Or install it yourself as:

$ gem install consolo

Usage

_config.yml

In addition to the jekyll default configurations, consolo allows you to display additional information through options.

Options from jekyll-theme-console

  • header_pages: list of pages to be displayed in navbar
  • google_analytics: tracking id (no Google Analytics code will be loaded if you don't set this option)
  • listen_for_clients_preferred_style: boolean on whether to allow users to choose light or dark style based on their preferences (see also)
  • style: predefined color scheme to be used for the site. Color scheme options are discussed more later.

New from consolo

  • title: the title of the website (yes, this was missing from the original)
  • footer: message to display at footer. NO LONGER ACCEPTS RAW HTML
  • author: display various information about the author
    • name: author's name
    • email: author's email. Can nest multiple email with titles like
    email:
       personal: [email protected]
       school: [email protected]
    • github_username: author's github username (not the full url). Automatically creates a link to the author's github profile

Style/Color Scheme

You can now more easily create your own color scheme. Under the _sass/ directory, create a new file with the name _<stylename>.scss (e.g. _red.scss). I recommend using one of the existing color scheme's SCSS file as a starting point.

Once you have customized the color scheme, go to the assets/ directory and create a new file named main-<stylename>.scss with the following contents:

@import "<stylename>";
@import "base";

You have successfully created a new style! To change to a style, simply set the style in _config.yml to .

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Forthoney/consolo. 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 consolo.gemspec accordingly.

License

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

consolo's People

Contributors

forthoney avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

klay326

consolo's Issues

Fix 404 page

I'm not sure if this is just an issue on my personal site, the 404 kinda breaks stuff

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.