• Stars
    star
    161
  • Rank 228,907 (Top 5 %)
  • Language
    Ruby
  • Created over 12 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simplistic site for Jekyll

Simple Jekyll Site

endorse

This is an example of a very basic Jekyll site. It lays down the basic folder structure, uses very basic CSS to make it look presentable and leaves everything else up to you.

This is a perfect starting point for building your own Jekyll site.

Requirements

Development time dependencies:

Run-time dependencies:

  • A web server (any will do)

Beginners Guide

To use this template:

  1. Clone to some directory
  • Modify _config.yaml with your name, blog title, description and etc...
  • Tweak style.css and HTML files in _layouts to personalize
  • Create blog entries in _posts/ - work off the sample posts there
  • Run jekyll serve to generate site locally
  • View it by going to http://localhost:4000 and make sure it looks good
  • If all is well, upload contents of _site to your server
  • Repeat steps 4-7 to update blog

Features

Following features are available:

  • Automatically generate a valid RSS feed (see feed.xml in root directory).
  • Automatically generate a valid Google Sitemap (see sitemap.xml in root directory).
  • Organize your posts into categories and automatically generate category index pages.
  • Can be deployed in a subdirectory

Using Categories

To use the category feature simply add category tag at the top of your post:

category: some_category_name

You can specify multiple categories using a comma separated list.

Known Issues

The plugins in the _plugins directory are not compatible with Github pages. If you want to deploy your site to Github, you might need to give up on these plugins.

Deploying to Subdirectory

You can deploy to a subdirectory. For example instead of running your site at http://foo.tld/ you can instead put it in http://foo.tld/blog/. To do this use the url and baseurl settings in _config.yaml. The former is used for absolute links (like in the RSS feed) while the latter is used for relative links (like everywhere on the front page). For example if you set it to:

baseurl: /blog
url: http://foo.tld/blog

Then the html files will still be generated in _site but all the links will be generated either relative to /blog or using the absolute url of http://foo.tld/blog.

Note: when you run the built-in Jekyll server you will need to access your site by going to http://localhost:4000/blog.

Linting & Validation

You can use Grunt.js to automatically validate the HTML in your generated site. First install the dependencies:

npm install

You can use the following Grunt commands:

  • grunt jshint - to lint your scripts.js file using JSHint
  • grunt csslint - to lint your styles.css file
  • grunt validation - to validate all the HTML files in _site

Please note that validation is done against the W3C server. If you have many pages, you may get temporarily locked out for abuse.

To lint js and css simultaneously simply run grunt with no parameters. Validation is only on-demand because of the potential lockout.

Credits

This sample layout uses plugins created by Dave Perret to generate categories and sitemaps. Credit where credit is due. Please see the _plugins directory for details.

The web font icons have been created based on the Typicon set and customized via the Fontello service.

Screenshots

Just so you can see how it looks:

Front page:

Front Page

Individual post:

Individual post

Archive page:

Archive page

More Repositories

1

vim-neatstatus

Neat Status Line Plugin for Vim
Vim Script
73
star
2

MarkdownJournal

Plain text journaling with Markdown and Dropbox on the Sinatra platform.
HTML
45
star
3

Plain-Text-Journal

A personal journal/diary tool.
C#
20
star
4

.vim

My Vim Directory
Vim Script
18
star
5

.dotfiles

Various dotfiles, other than .vim
Shell
15
star
6

Setup-Assistant

Setup and diagnostic tool.
C#
6
star
7

Student-Webspace-for-Google-AppEngine

A very basic application that allows users to upload files to Google AppEngine BlobStore and makes these files accessible with nice URL's.
Python
5
star
8

lamp

Quick vagrant lamp setup.
Shell
4
star
9

SillyPastebin

A simple pastebin developped in PHP using Twig templates, RedBean ORM and GeSHi syntax highligher.
PHP
4
star
10

jQuery-SQL-Emulator

A simpe SQL parser and pretend DB written in JavaScript
JavaScript
3
star
11

maciak.net

Source for my home page on Google App Engine
HTML
3
star
12

jQuery-Table-Grid

PHP
3
star
13

MyTPK

My Temporary Public Key - an easy to use graphical public key encryption tool
C#
3
star
14

TweetSpoiler

Heroku based Twitter app for posting spoilers.
CSS
2
star
15

Pytris

Simple Tetris Clone written using PyGame
Python
2
star
16

Luke-s-Work-Log

Simple work tracking tool written in C#
C#
2
star
17

scripts

Random utility scripts for Ubuntu/Debian
Shell
2
star
18

imaginary-pictures

Scrapes reddit for fantasy pictures and displays them as a gallery.
ApacheConf
1
star
19

InstantWebsite

Scaffolding for a quick and dirty Twitter Bootstrap + jQuery website.
JavaScript
1
star
20

SITS

Simple Issue Tracking System for IT call centers and more
1
star
21

scorpions_vs_banshees

Python
1
star