Skip to content

Commit

Permalink
Fix relative URL paths
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielTheFletch committed Dec 17, 2023
1 parent 0980f49 commit 51e5f87
Show file tree
Hide file tree
Showing 19 changed files with 47 additions and 47 deletions.
6 changes: 3 additions & 3 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<span class="footer-title">Site Links</span>
{% for item in site.data.navigation %}
<li class="footer-item">
<a href={{ item.link | relative_url }} class="footer-link">
<a href={{ item.link }} class="footer-link">
{{ item.name }}
</a>
</li>
Expand All @@ -46,7 +46,7 @@
<span class="footer-title">Technologies Used</span>
{% for item in site.data.footer.technology %}
<li class="footer-item">
<a href={{ item.link | relative_url }} class="footer-link">
<a href={{ item.link }} class="footer-link">
{{ item.name }}
</a>
</li>
Expand All @@ -60,7 +60,7 @@
<span class="footer-title">Primary Contact</span>
{% for item in site.data.footer.contact %}
<li class="footer-item">
<a href={{ item.link | relative_url }} class="footer-link">
<a href={{ item.link }} class="footer-link">
{{ item.name }}
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion _includes/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<i class="{{ item.icon }}"></i>&nbsp;&nbsp;{{ item.name }}
</a>
{% else %}
<a href={{ item.link | relative_url }} class="nav-link inactive text-white">
<a href={{ item.link }} class="nav-link inactive text-white">
<i class="{{ item.icon }}"></i>&nbsp;&nbsp;{{ item.name }}
</a>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<!-- Link CSS stylesheets -->
<link href={{"/assets/css/styles.css" | relative_url }} rel="stylesheet" />
<link href={{"/assets/css/styles.css" | absolute_url }} rel="stylesheet" />
<link href="https://use.fontawesome.com/releases/v6.4.2/css/all.css" rel="stylesheet" />

<!-- Basic metadata -->
Expand All @@ -12,7 +12,7 @@
<!-- Social media preview metadata -->
<meta property="og:title" content="Daniel Fletcher's Portfolio" />
<meta property="og:type" content="website" />
<meta property="og:image" content={{ "/assets/img/portfolio-site-preview.png" | relative_url }} />
<meta property="og:image" content={{ "../assets/img/portfolio-site-preview.png" }} />
<meta property="og:url" content={{ "/" | absolute_url }} />

<!-- Dynamic page title -->
Expand Down
38 changes: 19 additions & 19 deletions _posts/2023-12-14-placeholder-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,30 @@ Fletcher's Portfolio site.

##### **Core site pages**
{% assign page_link = site.data.navigation[0].link %}
- <a class="external-link fw-bold" href="{{ page_link | relative_url }}">Home</a> &ndash; Learn about
- <a class="external-link fw-bold" href="{{ page_link }}">Home</a> &ndash; Learn about
me, both personally and professionally. You can also find my primary contact information
here, as well as a brief walkthrough of the site's main pages&mdash;that's what you're
reading right now!
{% assign page_link = site.data.navigation[1].link %}
- <a class="external-link fw-bold" href="{{ page_link | relative_url }}">Activity</a> &ndash; A blog of
- <a class="external-link fw-bold" href="{{ page_link }}">Activity</a> &ndash; A blog of
sorts that also serves as a changelog for my portfolio. I aim to create new posts whenever
I update the site, whether that be adding new projects, implementing new features, or
working in key bug fixes.
{% assign page_link = site.data.navigation[2].link %}
- <a class="external-link fw-bold" href="{{ page_link | relative_url }}">Projects</a> &ndash; Take a look
- <a class="external-link fw-bold" href="{{ page_link }}">Projects</a> &ndash; Take a look
at the multitude of projects I have worked on, ranging from Harvard University academic
submissions to personal passion projects. This page contains a rotating selection of three
featured projects and a comprehensive index of all my past project work.
{% assign page_link = site.data.navigation[3].link %}
- <a class="external-link fw-bold" href="{{ page_link | relative_url }}">Certifications</a> &ndash; Check
- <a class="external-link fw-bold" href="{{ page_link }}">Certifications</a> &ndash; Check
out all the certifications I have earned so far in my computer science journey, complete
with links to the corresponding certification credentials.
{% assign page_link = site.data.navigation[4].link %}
- <a class="external-link fw-bold" href="{{ page_link | relative_url }}">Links</a> &ndash; All of my
- <a class="external-link fw-bold" href="{{ page_link }}">Links</a> &ndash; All of my
relevant online profiles are listed here, including those found on learning sites,
networking platforms, and the like.
{% assign page_link = site.data.navigation[5].link %}
- <a class="external-link fw-bold" href="{{ page_link | relative_url }}">Resources</a> &ndash; Look into
- <a class="external-link fw-bold" href="{{ page_link }}">Resources</a> &ndash; Look into
some of the *incredible* resources that have helped me get to where I am now. Seriously, I
would not be where I am today without these resources and the amazing people behind them.
All relevant links included.
Expand All @@ -64,43 +64,43 @@ All relevant links included.

##### **Starter pack of published projects**
{% assign proj = site.projects | find: "name", "proj-survey-form.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-tribute-page.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-technical-documentation-page.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-product-landing-page.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-rgb-defender.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-personal-portfolio.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-palindrome-checker.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-roman-numeral-converter.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-caesars-cipher.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-telephone-number-validator.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-cash-register.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-recipes-from-hyrule.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}
{% assign proj = site.projects | find: "name", "proj-random-quote-machine.html" %}
- <a class="external-link fw-bold" href="{{ proj.url | relative_url }}">{{ proj.title }}</a>
- <a class="external-link fw-bold" href="{{ proj.url }}">{{ proj.title }}</a>
&ndash; {{ proj.desc }}

---
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-caesars-cipher.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "FCC JS Algorithms" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-cash-register.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "FCC JS Algorithms" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-palindrome-checker.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "FCC JS Algorithms" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-personal-portfolio.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "Responsive Web Design" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-product-landing-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "Responsive Web Design" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-random-quote-machine.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "FCC Front End Libraries" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-recipes-from-hyrule.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h2 class="{{ site.subheading }}">Project Details</h2>
<p class="fs-5 fw-light">{{ page.desc }}</p>
<p>The Odin Project places immense focus on working in your own environment and overcoming any related logistical hurdles. For my first project, I felt that this should be the main focus&mdash;I had never worked with Git before, and I already had prior HTML/CSS experience from freeCodeCamp certifications.</p>
{% assign survey_form_project = site.projects | find: "title", "Survey Form" %}
<p>That said, I still ended up with a website that I like! I incorporated content from <span class="fst-italic">The Legend of Zelda: Tears of the Kingdom</span> (wait... <a class="external-link" href={{ survey_form_project.url | relative_url }}>haven't I done that before</a>?) to devise a simple recipe index, featuring three in-game recipes.</p>
<p>That said, I still ended up with a website that I like! I incorporated content from <span class="fst-italic">The Legend of Zelda: Tears of the Kingdom</span> (wait... <a class="external-link" href={{ survey_form_project.url }}>haven't I done that before</a>?) to devise a simple recipe index, featuring three in-game recipes.</p>
<p class="fw-bold mb-1">Relevant links:</p>
<ul>
<li><a class="external-link" href="https://www.theodinproject.com/lessons/foundations-recipes">Project: Recipes | The Odin Project</a></li>
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-roman-numeral-converter.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "FCC JS Algorithms" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-survey-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "Responsive Web Design" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-technical-documentation-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "Responsive Web Design" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-telephone-number-validator.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "FCC JS Algorithms" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion _projects/proj-tribute-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h2 class="{{ site.subheading }}">Related Projects</h2>
{% assign related_projects = site.projects | where: "related", "Responsive Web Design" | sort: "related_key" %}
{% for project in related_projects %}
<div class="col-11 col-xl-5 mx-auto ms-xl-0 me-xl-5 my-2 ps-3 pe-4 py-3 project-item">
<a href={{ project.url | relative_url }} class="stretched-link"></a>
<a href={{ project.url }} class="stretched-link"></a>
<div class="d-flex justify-content-between align-items-start">
<div>
{% assign shortened_date = project.date | date_to_string | split: " " | shift | join: " " %}
Expand Down
2 changes: 1 addition & 1 deletion activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2 class="{{ site.subheading }}">Latest Post</h2>
{% assign latest = site.posts | first %}
<div class="container my-3">
<div class="row row-cols-1 position-relative featured-item text-secondary-emphasis mt-4 mb-3 px-3 py-4">
<a href={{ latest.url | relative_url }} class="stretched-link"></a>
<a href={{ latest.url }} class="stretched-link"></a>
<div class="col">
<p class="fs-4 fw-bold mb-0">{{ latest.title }}</p>
<p class="fw-light my-0">Written by Daniel Fletcher</p>
Expand Down
Loading

0 comments on commit 51e5f87

Please sign in to comment.