Skip to content

Commit 6a0792e

Browse files
committed
Convert to github-pages, to make things easier to update
1 parent 74b3779 commit 6a0792e

File tree

8 files changed

+52
-5
lines changed

8 files changed

+52
-5
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_site
2+
Gemfile.lock

Gemfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "https://rubygems.org"
2+
require 'json'
3+
require 'open-uri'
4+
versions = JSON.parse(open('https://pages.github.com/versions.json').read)
5+
6+
gem 'github-pages', versions['github-pages']
7+
8+
# gem 'github-pages', '105', group: :jekyll_plugins
9+
gem 'therubyracer'

_config.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Site settings
2+
name: "Matthew Warman"
3+
title: "Matthew Warman - warman.io"
4+
description: "Technical Swiss Army Knife"
5+
url: "http://warman.io"
6+
7+
avatar_img_path: "https://avatars2.githubusercontent.com/u/7236500"
8+
9+
#Build settings
10+
destination: _site
11+
exclude: ['README.md', 'Gemfile', 'Gemfile.lock', 'LICENSE', 'docker-compose.yaml', '.gitignore', 'etc', 'CNAME']

_config_dev.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
host: 0.0.0.0
2+
port: 4000
3+
overrideurl: http://localhost:4000

_data/links.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
github:
2+
title: GitHub
3+
label: Link to my GitHub profile
4+
url: https://github.com/mcwarman
5+
fa-icon: fa-github

_layouts/default.html

Whitespace-only changes.

docker-compose.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3'
2+
services:
3+
mcwarman.github.io:
4+
image: ricalo/jekyll
5+
container_name: mcwarman.github.io
6+
hostname: jekyll
7+
ports:
8+
- '4000:4000'
9+
volumes:
10+
- .:/usr/src/app
11+
command: [ "server", "--config", "_config.yaml,_config_dev.yaml", "--watch", "--force_polling" , "--drafts"]

index.html

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
permalink: /
3+
---
14
<?xml version="1.0" encoding="UTF-8"?>
25
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
36
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
@@ -16,23 +19,26 @@
1619
<![endif]-->
1720
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css" />
1821
<link href="css/main.css" rel="stylesheet" type="text/css" />
19-
<title>Matthew Warman - warman.io</title>
22+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
2023
</head>
2124
<body>
2225
<div id="content">
23-
<div id="avatar"><img src="https://avatars2.githubusercontent.com/u/7236500"/></div>
24-
<h1>Matthew Warman</h1>
25-
<h3>Technical Swiss Army Knife</h3>
26+
<div id="avatar"><img src="{{ site.avatar_img_path }}"/></div>
27+
<h1>{{ site.name }}</h1>
28+
<h3>{{ site.description }}</h3>
2629
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
2730
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
2831
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
2932
<script src="https://use.fontawesome.com/86424f27f1.js"></script>
3033
<div class="separator" />
3134
<div id="navigation">
35+
{% assign links = site.data.links %}
3236
<ul>
37+
{% for link in links %}
3338
<li>
34-
<a href="https://github.com/mcwarman" aria-label="Link to my GitHub profile"><i class="fa fa-github fa-2x" aria-hidden="true" title="GitHub"></i></a>
39+
<a href="{{link[1].url}}" aria-label="{{link[1].label}}"><i class="fa {{link[1].fa-icon}} fa-2x" aria-hidden="true" title="{{link[1].title}}"></i></a>
3540
</li>
41+
{% endfor %}
3642
</ul>
3743
</div>
3844
</div>

0 commit comments

Comments
 (0)