Skip to content

Commit 1b6dc9e

Browse files
committed
fixing site pages
1 parent d0c88ca commit 1b6dc9e

File tree

8 files changed

+59
-29
lines changed

8 files changed

+59
-29
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
<h1>404</h1>
2121

2222
<p><strong>Page not found :(</strong></p>
23-
<p>The requested page could not be found.</p>
23+
<p>Help! Our penguins could not find the requested page.</p>
2424
</div>

Gemfile.lock

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ GEM
1515
colorator (1.1.0)
1616
commonmarker (0.17.13)
1717
ruby-enum (~> 0.5)
18-
concurrent-ruby (1.1.5)
18+
concurrent-ruby (1.1.6)
1919
dnsruby (1.61.3)
2020
addressable (~> 2.5)
2121
em-websocket (0.5.1)
@@ -25,9 +25,9 @@ GEM
2525
ffi (>= 1.3.0)
2626
eventmachine (1.2.7-x64-mingw32)
2727
execjs (2.7.0)
28-
faraday (0.17.0)
28+
faraday (1.0.1)
2929
multipart-post (>= 1.2, < 3)
30-
ffi (1.11.1-x64-mingw32)
30+
ffi (1.13.1-x64-mingw32)
3131
forwardable-extended (2.6.0)
3232
gemoji (3.0.1)
3333
github-pages (202)
@@ -81,7 +81,7 @@ GEM
8181
octokit (~> 4.0)
8282
public_suffix (~> 3.0)
8383
typhoeus (~> 1.3)
84-
html-pipeline (2.12.0)
84+
html-pipeline (2.13.0)
8585
activesupport (>= 2)
8686
nokogiri (>= 1.4)
8787
http_parser.rb (0.6.0)
@@ -204,23 +204,24 @@ GEM
204204
jekyll (~> 3.5)
205205
jekyll-feed (~> 0.9)
206206
jekyll-seo-tag (~> 2.1)
207-
minitest (5.13.0)
207+
minitest (5.14.1)
208208
multipart-post (2.1.1)
209-
nokogiri (1.10.5-x64-mingw32)
209+
nokogiri (1.10.10-x64-mingw32)
210210
mini_portile2 (~> 2.4.0)
211-
octokit (4.14.0)
211+
octokit (4.18.0)
212+
faraday (>= 0.9)
212213
sawyer (~> 0.8.0, >= 0.5.3)
213214
pathutil (0.16.2)
214215
forwardable-extended (~> 2.6)
215216
public_suffix (3.1.1)
216-
rb-fsevent (0.10.3)
217-
rb-inotify (0.10.0)
217+
rb-fsevent (0.10.4)
218+
rb-inotify (0.10.1)
218219
ffi (~> 1.0)
219220
rouge (3.11.0)
220-
ruby-enum (0.7.2)
221+
ruby-enum (0.8.0)
221222
i18n
222223
ruby_dep (1.5.0)
223-
rubyzip (2.0.0)
224+
rubyzip (2.3.0)
224225
safe_yaml (1.0.5)
225226
sass (3.7.4)
226227
sass-listen (~> 4.0.0)
@@ -233,13 +234,13 @@ GEM
233234
terminal-table (1.8.0)
234235
unicode-display_width (~> 1.1, >= 1.1.1)
235236
thread_safe (0.3.6)
236-
typhoeus (1.3.1)
237+
typhoeus (1.4.0)
237238
ethon (>= 0.9.0)
238-
tzinfo (1.2.5)
239+
tzinfo (1.2.7)
239240
thread_safe (~> 0.1)
240-
tzinfo-data (1.2019.3)
241+
tzinfo-data (1.2020.1)
241242
tzinfo (>= 1.0.0)
242-
unicode-display_width (1.6.0)
243+
unicode-display_width (1.7.0)
243244
wdm (0.1.1)
244245

245246
PLATFORMS

_config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ twitter_username: hianhianhian_
2424
github_username: hianhianhian
2525
linkedin_username: hianhianhian
2626
show_excerpts: true
27+
relative_permalinks: false
2728
excerpt_separator: <!--more-->
2829

2930
# Build settings
@@ -36,12 +37,11 @@ plugins:
3637
# Only include these links for the header nav
3738
header_pages:
3839
- index.html
39-
- _pages/about.md
40-
- _pages/resume.md
41-
- _pages/blog.html
42-
40+
- about.md
41+
- resume.md
42+
- blog.html
43+
4344
include:
44-
- ["_pages"]
4545
- ["_layouts"]
4646

4747
google_analytics: UA-154888531-1

_includes/header.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<header class="site-header" role="banner">
2+
3+
<div class="wrapper">
4+
{%- assign default_paths = site.pages | map: "path" -%}
5+
{%- assign page_paths = site.header_pages | default: default_paths -%}
6+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
7+
8+
{%- if page_paths -%}
9+
<nav class="site-nav">
10+
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
11+
<label for="nav-trigger">
12+
<span class="menu-icon">
13+
<svg viewBox="0 0 18 15" width="18px" height="15px">
14+
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
15+
</svg>
16+
</span>
17+
</label>
18+
19+
<div class="trigger">
20+
{%- for path in page_paths -%}
21+
{%- assign my_page = site.pages | where: "path", path | first -%}
22+
{%- if my_page.title -%}
23+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
24+
{%- endif -%}
25+
{%- endfor -%}
26+
</div>
27+
</nav>
28+
{%- endif -%}
29+
</div>
30+
</header>

_pages/blog.html

Lines changed: 0 additions & 5 deletions
This file was deleted.

_pages/about.md renamed to about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: default
33
title: About
4-
permalink: /about/
4+
permalink: /about
55
---
66

77
## Hi there, I'm Jason Chan and I just want to make **great games**.

blog.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
layout: home
3+
permalink: /blog
4+
---

_pages/resume.md renamed to resume.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
layout: default
2+
layout: page
33
title: Résumé
4-
permalink: /resume/
4+
permalink: /resume
55
---
66

77
[View my abbreviated resume as a PDF](/assets/JasonChan_Resume2019.pdf)

0 commit comments

Comments
 (0)