Skip to content

Commit

Permalink
Merge pull request #9 from piazzai/hotfix
Browse files Browse the repository at this point in the history
Fix relative urls
  • Loading branch information
piazzai authored Apr 3, 2024
2 parents e1e4418 + 7c21017 commit b3adbe7
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 24 deletions.
4 changes: 3 additions & 1 deletion _layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
layout: default
---

{% assign return = site.url | append: site.baseurl | split: '//' | slice: 1 -%}

<div class="error">
<h1>404</h1>
<p>Page not found</p>
<p class="mt"><a href="{{ site.url }}">{{ site.url | split: "//" | slice: 1 }}</a></p>
<p class="mt"><a href="{{ site.url | append: site.baseurl }}">{{ return }}</a></p>
</div>
2 changes: 1 addition & 1 deletion demo/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source 'https://rubygems.org'

gem 'hacked-jekyll', '~> 2.1'
gem 'hacked-jekyll', '~> 2.1', '>= 2.1.1'
4 changes: 2 additions & 2 deletions demo/_config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: Hacked Jekyll
description: Jekyll microtheme that looks like JSON
baseurl: ""
url: https://piazzai.github.io/hacked-jekyll
baseurl: /hacked-jekyll
url: https://piazzai.github.io

theme: hacked-jekyll

Expand Down
18 changes: 9 additions & 9 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
{"@context":"https://schema.org","@type":"WebPage","description":"Jekyll microtheme that looks like JSON","headline":"Hacked Jekyll","url":"https://piazzai.github.io/hacked-jekyll/404.html"}</script>
<!-- End Jekyll SEO tag -->

<link rel="icon" type="image/x-icon" href="/assets/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png">
<link rel="manifest" href="/assets/site.webmanifest">
<link rel="stylesheet" href="/assets/css/normalize.css" />
<link rel="stylesheet" href="/assets/css/open-color.css" />
<link rel="stylesheet" href="/assets/css/styles.css" />
<script src="/assets/js/typed.umd.js"></script>
<link rel="icon" type="image/x-icon" href="/hacked-jekyll/assets/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/hacked-jekyll/assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/hacked-jekyll/assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/hacked-jekyll/assets/favicon-16x16.png">
<link rel="manifest" href="/hacked-jekyll/assets/site.webmanifest">
<link rel="stylesheet" href="/hacked-jekyll/assets/css/normalize.css" />
<link rel="stylesheet" href="/hacked-jekyll/assets/css/open-color.css" />
<link rel="stylesheet" href="/hacked-jekyll/assets/css/styles.css" />
<script src="/hacked-jekyll/assets/js/typed.umd.js"></script>
</head>

<body>
Expand Down
20 changes: 10 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
{"@context":"https://schema.org","@type":"WebSite","description":"Jekyll microtheme that looks like JSON","headline":"Hacked Jekyll","name":"Hacked Jekyll","url":"https://piazzai.github.io/hacked-jekyll/"}</script>
<!-- End Jekyll SEO tag -->

<link rel="icon" type="image/x-icon" href="/assets/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png">
<link rel="manifest" href="/assets/site.webmanifest">
<link rel="stylesheet" href="/assets/css/normalize.css" />
<link rel="stylesheet" href="/assets/css/open-color.css" />
<link rel="stylesheet" href="/assets/css/styles.css" />
<script src="/assets/js/typed.umd.js"></script>
<link rel="icon" type="image/x-icon" href="/hacked-jekyll/assets/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/hacked-jekyll/assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/hacked-jekyll/assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/hacked-jekyll/assets/favicon-16x16.png">
<link rel="manifest" href="/hacked-jekyll/assets/site.webmanifest">
<link rel="stylesheet" href="/hacked-jekyll/assets/css/normalize.css" />
<link rel="stylesheet" href="/hacked-jekyll/assets/css/open-color.css" />
<link rel="stylesheet" href="/hacked-jekyll/assets/css/styles.css" />
<script src="/hacked-jekyll/assets/js/typed.umd.js"></script>
</head>

<body>
Expand All @@ -54,7 +54,7 @@

<div class="my ms">
"<span class="key">CV</span>":
"<a class="value" href="/cv.pdf" target="_self">cv.pdf</a>",
"<a class="value" href="/hacked-jekyll/cv.pdf" target="_self">cv.pdf</a>",
</div>

<div class="my ms">
Expand Down
2 changes: 1 addition & 1 deletion hacked-jekyll.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "hacked-jekyll"
spec.version = "2.1.0"
spec.version = "2.1.1"
spec.authors = ["piazzai"]
spec.email = ["[email protected]"]

Expand Down

0 comments on commit b3adbe7

Please sign in to comment.