GithubHelp home page GithubHelp logo

lukaschen / 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 9.23 MB

mademistakes.com website codebase, built using Jekyll.

Home Page: https://mademistakes.com

License: Other

ApacheConf 22.62% Ruby 10.20% JavaScript 4.92% CSS 34.72% HTML 27.55%

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, and minify stylesheets and JavaScript. All of this can be done with Grunt or Gulp tasks instead if you prefer those workflows 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 in development mode rake serve.

To regenerate files rake build:dev and rake build:drafts to build posts in _drafts folder.

By default Jekyll's environment should be set to development but if not JEKYLL_ENV=development bundle exec jekyll build or set JEKYLL_ENV=development in cmd.exe on Windows.

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 Liquid tag.

{% icon [name] %}

{% icon smile %} will output <svg class="icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-smile"></use></svg>

SVG assets are optimized and smashed together into _includes/svg-icons.svg and can be referenced by name (see table below).

To update or add new assets:

  1. Place appropriately named .svg files into the _svg folder.
  2. Run grunt images to optimize and copy to /svg/ (may need to clean out folder when removing SVGs).
  3. Run grunt svg to squash all SVGs into _includes/svg-icons.svg.
Name Description Example
amazon Amazon logo Amazon
comments chat bubble comments
deal-with-it sunglasses face deal with it
facebook Facebook square logo Facebook
paypal PayPal logo PayPal
smile smiley face smiley
twitter Twitter logo Twitter
wink wink face wink

made-mistakes-jekyll's People

Contributors

mmistakes avatar nhoizey avatar parvjain avatar

Watchers

 avatar  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.