owen9825 / owen_website

Code to generate my own static website, https://owen.engineer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Personal Website

  • I'll use Jekyll, since I like its decoupling of things and its easy way of including extra pages. Also, I like how Tanuki turned out.

Installation

  • Install Jekyll
  • Install ruby-dev: sudo apt-get install ruby-dev
  • Install rbenv and use Ruby v2
    • rbenv install --list
  • Initialize the Ruby virtual environment: rbenv init. A new bundler will need to be installed for this version of Ruby: gem install bundler.
  • Install the Gems
  • Install jEnv for a local, old version of Java.
  • Add a compatible version of Java:
sudo apt install openjdk-8-jdk
echo "Looking for a version of Java 8 − where is it?"
update-java-alternatives --list
echo "Pick a destination for the next command…"
jenv add /usr/lib/jvm/java-1.8.0-openjdk-amd64
  • Install Bower: npm install -g bower
  • Install the JavaScript dependencies specified in bower.json: bower install.

Running

rbenv init
eval "$(jenv init -)"
bundle exec jekyll build
bundle exec jekyll serve

Pushing Changes

  • Check the settings in s3_website.yml
  • Initialize the Ruby virtual environment: rbenv init
  • Enable a locally isolated version of Java: eval "$(jenv init -)"
  • Set a compatible version of Java: jenv shell 1.8
  • Push: s3_website push
  • Visit the bucket's page in the S3 console. Visit the properties and enable bucket hosting for the website.
  • Set the bucket policy to public.
  • Check the S3 website before publishing it to your own domain. There might still be some internal references to localhost, which will result in 404s.
  • Change the DNS records with your actual DNS provider. Note that Route 53 is happy to hold DNS records even if it isn't your actual provider.
  • For CloudFront's origins, enter the URL of the S3 website; don't select their S3 choice from the suggested list. Also, don't restrict bucket access, else people will strictly be required to visit eg /about/index.html rather than eg /about.
  • The changes will first be visible at http://owen.engineer.s3-website-us-east-1.amazonaws.com/, before propagating through CloudFront to https://owen.engineer, once you invalidate its cache.
  • Maybe ask Google to re-analyse the sitemap.

Future

  • Delay form assets until the hero has finished loading.
  • Animating face upon hover
  • Gif for face

About

Code to generate my own static website, https://owen.engineer.

License:MIT License


Languages

Language:HTML 62.8%Language:CSS 36.0%Language:Ruby 1.1%