GithubHelp home page GithubHelp logo

msolomatin / elementary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abhn/elementary

0.0 1.0 0.0 1.22 MB

Elementary is a zero Javascript and minimal CSS ultra lightweight Jekyll theme for those of you who love simplicity.

Home Page: https://elementary-jekyll.github.io/

HTML 100.00%

elementary's Introduction

Elementary Jekyll Theme

Elementary is a zero Javascript and minimal CSS ultra lightweight Jekyll theme for those of you who love simplicity, yet don't want to compromise on mobile responsiveness, readability and asthetics. Elementary is mobile first, content first and is aimed towards content heavy blogs.

The theme is highly customizable, takes less than 100 miliseconds to load, weighs less than 10K gzip'd and looks great on mobile. As vanilla as a website can get, this theme reminds the visitor of the pre 2000s era Internet, yet is backed by the modern CSS flexbox layout and has a sticky footer made with the same.

Demo

Find it here: https://elementary-jekyll.github.io/

Features

  • Ultra lightweight, ~6-9KB gzip'd, load times consistently less than 100 milliseconds (as tested on my personal blog with Cloudflare)
  • Mobile responsive, high accessibility
  • No JS required, makes use of HTML5 and CSS3 semantics
  • Theme itself makes a single http request
  • Content focussed, great for text heavy personal blogs with focus on blog material
  • Homepage is the archive page
  • Sticky footer (is it 2018 yet? ;)

Installation

  • If this is your first Jekyll blog, follow this helpful guide to set up Jekyll
  • Fork this repository, rename the fork as your-username.github.io. Your blog should immediately be live on https://your-username.github.io
  • Clone your fork
  • Delete everything in _posts directory. Delete the tmp directory
  • Open _config.yml and set the variables
  • Run jekyll serve and your blog should be live on http://localhost:4000. Make changes, test them locally, commit your changes and push to your fork. Your changes should be live in a couple of seconds

Customization

  • _config.yml Config variables
  • _/layouts/default.html Default page with head and footer section
    • _/layout/post.html Page for layout: post, inherits default
    • _/layout/page.html Page for layout: page, inherits default

Screenshots

Performance

Credits

Inspiration

I recently read in a blog post that a personal blog has to be fast and lean. There's no reason for a personal blog to be bloated and take 2 seconds to load. That was when I reviewed my own blog code and started analyzing. I discovered that I was loading jQuery just for another jQuery plugin which just helped the images and videos to be mobile responsive. That was some 40KB of overhead, 2 additional requests which could have been prevented with just a `max-width: 100%` attribute to the culprit elements. Similarly, there was Disqus which loaded tonnes of scripts along with its own Google Analytics script.

I went on stripping weight from the code, and was left with something what you see here. Few extra CSS tweaks and Tadaa!

License

GNU GENERAL PUBLIC LICENSE Version 3

elementary's People

Contributors

abhn avatar

Watchers

Mikhail Solomatin avatar

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.