Add /resume redirecting route, move 404.html Sass into styles file

This commit is contained in:
Xevion
2022-04-11 15:37:47 -05:00
parent 608f899164
commit 293b3f286d
6 changed files with 32 additions and 16 deletions

View File

@@ -1,26 +1,11 @@
--- ---
permalink: /404.html permalink: /404
layout: default layout: default
_preview_description: The page you have requested no longer or has never existed. _preview_description: The page you have requested no longer or has never existed.
--- ---
<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>
<div class="container"> <div class="container">
<h1>404</h1> <h1>404</h1>
<p><strong>Page not found :(</strong></p> <p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p> <p>The requested page could not be found.</p>
</div> </div>

View File

@@ -30,3 +30,4 @@ gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
gem "jekyll-github-metadata" gem "jekyll-github-metadata"
gem "webrick", "~> 1.7" gem "webrick", "~> 1.7"
gem 'jekyll-redirect-from'

View File

@@ -59,6 +59,8 @@ GEM
jekyll-github-metadata (2.13.0) jekyll-github-metadata (2.13.0)
jekyll (>= 3.4, < 5.0) jekyll (>= 3.4, < 5.0)
octokit (~> 4.0, != 4.4.0) octokit (~> 4.0, != 4.4.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (2.2.0) jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0) sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.7.1) jekyll-seo-tag (2.7.1)
@@ -118,6 +120,7 @@ DEPENDENCIES
jekyll (~> 4.1.1) jekyll (~> 4.1.1)
jekyll-feed (~> 0.12) jekyll-feed (~> 0.12)
jekyll-github-metadata jekyll-github-metadata
jekyll-redirect-from
minima (~> 2.5) minima (~> 2.5)
tzinfo (~> 1.2) tzinfo (~> 1.2)
tzinfo-data tzinfo-data

View File

@@ -8,6 +8,7 @@ permalink: pretty
plugins: plugins:
- jekyll-feed - jekyll-feed
- "jekyll-github-metadata" - "jekyll-github-metadata"
- jekyll-redirect-from
exclude: exclude:
- CNAME - CNAME
- LICENSE - LICENSE

View File

@@ -338,8 +338,22 @@ article {
.build-revision { .build-revision {
font-family: CMU Typewriter Text, sans-serif; font-family: CMU Typewriter Text, sans-serif;
a { a {
color: #d2d2d2; color: #d2d2d2;
text-decoration: none; text-decoration: none;
} }
} }
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
}

12
resume.html Normal file
View File

@@ -0,0 +1,12 @@
---
permalink: /resume
layout: default
_preview_description: This page is intended to redirect to my resume.
redirect_to: /resume.pdf
---
<div class="container">
<h1>Redirecting...</h1>
<p>This page is intended to redirect automatically - if you're reading this, something may have been gone.</p>
<a href="/resume.pdf">Speed up the redirecting process?</a>
</div>