Skip to content

Commit 3740921

Browse files
Merge branch 'release' into feature/pretty-the-links
2 parents cb59918 + 1d37590 commit 3740921

File tree

13 files changed

+148
-6
lines changed

13 files changed

+148
-6
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM ruby:2.7.1
2+
RUN mkdir /app
3+
WORKDIR /app
4+
COPY Gemfile /app/Gemfile
5+
COPY Gemfile.lock /app/Gemfile.lock
6+
7+
RUN bundle config set deployment true
8+
RUN bundle install --jobs=4
9+
10+
COPY . /app
11+
12+
EXPOSE 3000
13+
14+
ENTRYPOINT [ "bundle" ]
15+
16+
CMD [ "exec", "jekyll", "serve", "--drafts", "-H", "0.0.0.0", "-P", "3000" ]

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ source "https://rubygems.org"
55

66
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
77

8-
gem 'github-pages', group: :jekyll_plugins
8+
gem 'github-pages', group: :jekyll_plugins
9+
10+
gem 'wdm', '>= 0.1.0' if Gem.win_platform?

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ GEM
251251
unf_ext (0.0.7.7)
252252
unf_ext (0.0.7.7-x64-mingw32)
253253
unicode-display_width (1.7.0)
254+
wdm (0.1.1)
254255
zeitwerk (2.4.0)
255256

256257
PLATFORMS
@@ -259,6 +260,7 @@ PLATFORMS
259260

260261
DEPENDENCIES
261262
github-pages
263+
wdm (>= 0.1.0)
262264

263265
BUNDLED WITH
264266
2.1.4

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ The site rebuilds after every change, so just refresh the page in your browser t
6363

6464
>:Warning: do not edit anything in the site folder as it will not be comitted and is overwritten everytime you build the site.
6565
66+
To rebuild the site after a file change append `--watch` to the end of the command.
6667

68+
e.g. `bundle exec jekyll build --watch`
69+
70+
>:Warning: The website uses extensionless links, meaning we don't need to include the '.html' extension on web pages and in anchor (<a>) links. In order that these links work while you view the site locally, open a new command-line window, navigate to the folder containing the website's source code, and run `bundle exec jekyll serve`. Leave that window running while you make your changes.
6771
6872
## Includes
6973

@@ -74,8 +78,8 @@ Jeykll has functionality to include files, which this site makes extensive use o
7478
## To add yourself to the people page
7579

7680
* Create a branch
77-
* Make a copy of one of the existing bios in *pages-people*
78-
* Name it using the convention people-*yourname*
81+
* Make a copy of one of the existing bios in *_data/people/*
82+
* Name it using the convention *yourname*
7983
* Modify to be your bio including
8084
* Photograph
8185
* Information paragraph
@@ -84,9 +88,6 @@ Jeykll has functionality to include files, which this site makes extensive use o
8488

8589
If you need any help, contact one of the pople who have already added themselves.
8690

87-
Copy the includes code `<br />
88-
{% include_relative pages-people/people-yourname.html %}` to the bottom of people.html (ensure you update the file name)
89-
9091
## Sitemap
9192
All pages not defined as a default in _config.yml are added to the sitemap
9293

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: CodeWith
2+
title: CodeWith
23
url: "https://codewith.org.uk" # the base hostname & protocol for your site
34
plugins:
45
- jekyll-sitemap

_data/people/jonathan.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
first_name: "Jonathan"
2+
last_name: "Cowling"
3+
anchor: "jonathan-cowling"
4+
photo: "jonathan-profile-photo.jpg"
5+
roles: "Mentor"
6+
twitter_handle: "_cowlingj_"
7+
description_paragraphs:
8+
- >
9+
Jonathan is an Associate Consultant at Infinity Works after recently graduating from the University of Manchester.
10+
His love of code stems from a keen interest in peering behind the curtain to see how things work (or don't).
11+
- >
12+
Most of the projects he's working on now use JavaScript,
13+
but Jonathan has experience in a bunch of different areas including Android development.
14+
- >
15+
Aside from the many projects he tinkers with, Jonathan enjoys playing Dungeons and Dragons in his spare time.
16+
17+
languages:
18+
- Javascript
19+
- Typescript
20+
- Bash
21+
- Python
22+
- Java
23+
- HTML
24+
- CSS
25+
26+
technologies:
27+
- JSON
28+
- Linux
29+
- Kubernetes
30+
- NodeJS
31+
- React
32+
- Vue
33+
- Express
34+
- Jest
35+
36+
tools:
37+
- Git
38+
- GitHub
39+
- VS Code
40+
- Docker

_includes/person.html

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<a name="{{ include.person.anchor }}"></a>
2+
<div class="row person-blurb">
3+
<div class="col-md-4 col-lg-5 col-xl-3">
4+
<div class="mb-2 box-shadow text-center">
5+
<img class="profile-photo" src="./images/{{ include.person.photo | default: 'keyboard-green.png' }}" />
6+
</div>
7+
<div class="col-12 text-center">
8+
<h4>{{ include.person.first_name }} {{ include.person.last_name }}</h4>
9+
</div>
10+
</div>
11+
<div class="col-md-8 col-lg-6">
12+
<div class="row">
13+
<div class="col col-md-6">
14+
<p class="text-muted no-margin">{{ include.person.roles }}</p>
15+
</div>
16+
{% if include.person.twitter_handle %}
17+
<div class="col-md-6 twitter-mention-container text-right">
18+
<a href="https://twitter.com/intent/tweet?screen_name={{include.person.twitter_handle}}" class="twitter-mention-button"
19+
data-show-count="false">
20+
Tweet to @{{ include.person.twitter_handle }}
21+
</a>
22+
</div>
23+
{% endif %}
24+
</div>
25+
<div class="row">
26+
<div class="col-md-12">
27+
{% for paragraph in include.person.description_paragraphs %}
28+
<p>
29+
{{ paragraph }}
30+
</p>
31+
{% endfor %}
32+
</div>
33+
</div>
34+
</div>
35+
<div class="col-lg-12 col-xl-3 skills">
36+
<div class="row">
37+
<div class="col-12">
38+
<h5>{{ include.person.first_name }} can help with...</h5>
39+
</div>
40+
<div class="col-md-4 col-lg-12">
41+
<!-- <h6>Languages</h6> -->
42+
<p>
43+
{% for language in include.person.languages %}
44+
<span class="badge badge-secondary">{{ language }}</span>
45+
{% endfor %}
46+
</p>
47+
</div>
48+
<div class="col-md-4 col-lg-12">
49+
<!-- <h6>Technologies</h6> -->
50+
<p>
51+
{% for technology in include.person.technologies %}
52+
<span class="badge badge-secondary">{{ technology }}</span>
53+
{% endfor %}
54+
</p>
55+
</div>
56+
<div class="col-md-4 col-lg-12">
57+
<!-- <h6>Tools</h6> -->
58+
<p>
59+
{% for tool in include.person.tools %}
60+
<span class="badge badge-secondary">{{ tool }}</span>
61+
{% endfor %}
62+
</p>
63+
</div>
64+
</div>
65+
</div>
66+
</div>

docker/bundle.Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM ruby:2.7.1
2+
RUN mkdir /app
3+
WORKDIR /app
4+
COPY Gemfile /app/Gemfile
5+
6+
ENTRYPOINT [ "bundle" ]

images/drew-profile-photo-2.png

417 KB
Loading
-400 KB
Binary file not shown.

0 commit comments

Comments
 (0)