Giter Site home page Giter Site logo

orangepole / made-mistakes-jekyll Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmistakes/made-mistakes-jekyll

0.0 2.0 0.0 7.94 MB

mademistakes.com website codebase, built using Jekyll.

Home Page: https://mademistakes.com

License: Other

ApacheConf 17.33% Ruby 6.87% JavaScript 29.49% CSS 27.26% HTML 19.06%

made-mistakes-jekyll's Introduction

Made Mistakes Source Code

This is the source code of Made Mistakes, a personal blog and portfolio built with Jekyll and a starter I call Skinny Bones.

Please note: Made Mistakes hasn't been completely "themed" like some of my other Jekyll repos and isn't GitHub Pages compatible. In some cases the Jekyll plugins may be safe to remove without breaking things while others may not fare as well.

The two biggies likely to cause the most headaches are Jekyll Archives and Jekyll Assets. Archives auto-generates all of the tag pages so you'll need an alternative solution or just go without them if you turn that baby off.

Jekyll Assets is used to build, concatenate, MD5 fingerprint, and minify stylesheets and JavaScript. All of this can be done with Grunt/Gulp instead if you prefer that workflow or you could simplify things and use Jekyll to pre-process your Sass partials. Either way it's doable with minor edits.

Plugins Used

Images

Made Mistakes has a lot of image assets. images/ has been split into its own repo to reduce the size of this repo.

To generate responsively sized images and necessary <picture> element markup use the {% picture %} tag. These images should be placed in images/_originals along with a copy in images. The _originals will be converted into various sizes specified in _config.yml while the ones in images will remain untouched to be used in XML feeds, social sharing cards, etc.

Make sure ImageMagick is installed for the Jekyll picture-tag plugin to work properly. Download the Windows install binary or brew install imagemagick on Mac OS X.

Local Development

  1. Install dependencies bundle install
  2. Run Jekyll server to preview bundle exec jekyll serve --config _config.dev.yml --no-watch. Good idea to disable auto-regeneration since the site is quite large and takes a few minutes to compile.

Home Page

The home page is made up of three parts:

<root>/index.md: here you will find the content that makes up the home page. It's 99% HTML to get the desired markup but the same result could probably be achieved with Kramdown if you add {: .class-name} to each of the required elements.

The word slide effect is achieved with some JavaScript and wrapping each of the adjectives in <b></b> elements inside of .home__words-wrapper. When JavaScript is disabled only the first word is visible.

_layouts/home.html: stripped down version of the default layout with the .masthead and .colophon removed.

_sass/_home.scss: home page specific styles.

Archives

To include the Featured Posts widget at the top of an archive page add the following to its YAML Front Matter and customize as necessary.

feature:
  visible: true
  headline: "Featured Articles"
  category: articles

Posts and Pages

By default social sharing and Google AdSense are enabled on all posts and pages. To disable add share: false or ads: false to the YAML Front Matter.

Comments are disabled by default. To enable add comments: true to the YAML Front Matter.

SVG Icons

To easily add inline SVG icons to a post or page use the following include being sure to specify the icon by name.

{% include icon.html name="wink" %}
SVG Icons
Name Description
amazon Amazon logo
bitcoin BitCoin logo
blank blank face
comments chat bubble
deal-with-it sunglasses face
dollar-sign dollar sign in circle
facebook Facebook square logo
github GitHub octocat logo
google-plus G+ logo
instagram Instagram logo
meh indifferent face
paypal PayPal logo
rss RSS icon
smile smiley face
tumblr Tumblr logo
twitter Twitter logo
wink wink face
youtube YouTube logo

made-mistakes-jekyll's People

Contributors

mmistakes avatar nhoizey avatar parvjain avatar

Watchers

James Cloos avatar Jack Zero 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.