Skip to content

Commit

Permalink
Merge pull request #8 from piazzai/hotfix
Browse files Browse the repository at this point in the history
Switch to relative urls
  • Loading branch information
piazzai authored Apr 3, 2024
2 parents 7f3c51d + 72536f3 commit e1e4418
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 42 deletions.
18 changes: 9 additions & 9 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<title>{{ site.title }}</title>

{% seo title=false %}
<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="{{ 'assets/favicon.ico' | relative_url }}" />
<link rel="apple-touch-icon" sizes="180x180" href="{{ 'assets/apple-touch-icon.png' | relative_url }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ 'assets/favicon-32x32.png' | relative_url }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ 'assets/favicon-16x16.png' | relative_url }}">
<link rel="manifest" href="{{ 'assets/site.webmanifest' | relative_url }}">
<link rel="stylesheet" href="{{ 'assets/css/normalize.css' | relative_url }}" />
<link rel="stylesheet" href="{{ 'assets/css/open-color.css' | relative_url }}" />
<link rel="stylesheet" href="{{ 'assets/css/styles.css' | relative_url }}" />
<script src="{{ 'assets/js/typed.umd.js' | relative_url }}"></script>
</head>

<body>
Expand Down
6 changes: 3 additions & 3 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{% if value.url -%}
<p class="ms">
{{ quote }}<span class="key">{{ value.key }}</span>{{ quote }}:
{{ quote }}<a class="value" href="{{ value.url }}" {{ target }}>{{ value.value }}</a>{{ quote }}
{{ quote }}<a class="value" href="{{ value.url | relative_url }}" {{ target }}>{{ value.value }}</a>{{ quote }}
{%- unless forloop.last -%}
{{ comma }}
{%- endunless %}
Expand All @@ -48,7 +48,7 @@
{% for value in pair.value -%}
{% if value.url -%}
<p class="ms">
{{ quote }}<a class="value" href="{{ value.url }}" {{ target }}>{{ value.value }}</a>{{ quote }}
{{ quote }}<a class="value" href="{{ value.url | relative_url }}" {{ target }}>{{ value.value }}</a>{{ quote }}
{%- unless forloop.last -%}
{{ comma }}
{%- endunless %}
Expand All @@ -65,7 +65,7 @@
]
{%- elsif pair.url -%}
{{ quote }}<span class="key">{{ pair.key }}</span>{{ quote }}:
{{ quote }}<a class="value" href="{{ pair.url }}" {{ target }}>{{ pair.value }}</a>{{ quote }}
{{ quote }}<a class="value" href="{{ pair.url | relative_url }}" {{ target }}>{{ pair.value }}</a>{{ quote }}
{%- else -%}
{{ quote }}<span class="key">{{ pair.key }}</span>{{ quote }}:
{{ quote }}<span class="value">{{ pair.value }}</span>{{ quote }}
Expand Down
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.0'
gem 'hacked-jekyll', '~> 2.1'
26 changes: 13 additions & 13 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@
<meta property="og:locale" content="en_US" />
<meta name="description" content="Jekyll microtheme that looks like JSON" />
<meta property="og:description" content="Jekyll microtheme that looks like JSON" />
<link rel="canonical" href="http://localhost:4000/404.html" />
<meta property="og:url" content="http://localhost:4000/404.html" />
<link rel="canonical" href="https://piazzai.github.io/hacked-jekyll/404.html" />
<meta property="og:url" content="https://piazzai.github.io/hacked-jekyll/404.html" />
<meta property="og:site_name" content="Hacked Jekyll" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="Hacked Jekyll" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebPage","description":"Jekyll microtheme that looks like JSON","headline":"Hacked Jekyll","url":"http://localhost:4000/404.html"}</script>
{"@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="/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>
</head>

<body>
Expand All @@ -40,7 +40,7 @@
<div class="error">
<h1>404</h1>
<p>Page not found</p>
<p class="mt"><a href="http://localhost:4000">localhost:4000</a></p>
<p class="mt"><a href="https://piazzai.github.io/hacked-jekyll">piazzai.github.io/hacked-jekyll</a></p>
</div>

</main>
Expand Down
24 changes: 12 additions & 12 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@
<meta property="og:locale" content="en_US" />
<meta name="description" content="Jekyll microtheme that looks like JSON" />
<meta property="og:description" content="Jekyll microtheme that looks like JSON" />
<link rel="canonical" href="http://localhost:4000/" />
<meta property="og:url" content="http://localhost:4000/" />
<link rel="canonical" href="https://piazzai.github.io/hacked-jekyll/" />
<meta property="og:url" content="https://piazzai.github.io/hacked-jekyll/" />
<meta property="og:site_name" content="Hacked Jekyll" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="Hacked Jekyll" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebSite","description":"Jekyll microtheme that looks like JSON","headline":"Hacked Jekyll","name":"Hacked Jekyll","url":"http://localhost:4000/"}</script>
{"@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="/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>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion docs/robots.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sitemap: http://localhost:4000/sitemap.xml
Sitemap: https://piazzai.github.io/hacked-jekyll/sitemap.xml
2 changes: 1 addition & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://localhost:4000/</loc>
<loc>https://piazzai.github.io/hacked-jekyll/</loc>
</url>
</urlset>
4 changes: 2 additions & 2 deletions 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.0.0"
spec.version = "2.1.0"
spec.authors = ["piazzai"]
spec.email = ["42124135+piazzai@users.noreply.github.com"]

Expand All @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|

spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_data|_layouts|_includes|_sass|LICENSE|README|_config\.yml)!i) }

spec.add_runtime_dependency "jekyll", "~> 4.3", ">= 4.3.2"
spec.add_runtime_dependency "jekyll", "~> 4.3", ">= 4.3.3"
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.8"
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4"
end

0 comments on commit e1e4418

Please sign in to comment.