Skip to content

tip4programs/jokecamp.com

 
 

Repository files navigation

Joe Kampschmidt's (Joe's Code) Personal Website/Blog

Source code for http://www.jokecamp.com

The website is a static site built with Poole and Jekyll.

To test change to the project directory and run the following command

jekyll serve --watch

Then browse to http://localhost:4000/

Pull requests will be accepted for any typos or editing and your contribution will be credited.

Use one of the following categories for each post:

  • Guide
  • Blog
  • Code

Asset Pipeline

https://github.com/matthodan/jekyll-asset-pipeline/blob/master/README.md

  • gem install jekyll-asset-pipeline
  • gem install yui-compressor

Optimizing for fun

Main page as of 9/6/2015 = 46.9K HTTP Requests - 6 Primed Cache = 5.9K HTTP Requests - 3

Compress static content

See https://members.nearlyfreespeech.net/wiki/HowTo/GzipStatic

Run on server

#!/usr/local/bin/perl

# This script should be uploaded to the web server.

use warnings;
use strict;
use File::Find;
find (\&wanted, ("."));
sub wanted
{
 if (/(.*\.(?:html|htm|css|js)$)/i) {
     print "Compressing $File::Find::name\n";
     system ("gzip --keep --best --force $_");
 }
}

To Deploy

jekyll serve
get commit
git push origin master
./deploy.sh

About

personal blog and website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 94.2%
  • ApacheConf 3.1%
  • CSS 2.7%