Skip to content

Commit

Permalink
Rename folder for pint article to improve consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Aug 21, 2024
1 parent 1b0f227 commit a65c13b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% assign title = 'A Pint Is Not a Unit of Measurement' %}
{% assign subtitle = 'article' %}
{% assign uri = 'article/pint-is-not-a-unit-of-measurement' %}
{% render 'src/templates/redirect.html', title: title, subtitle: subtitle, uri: uri %}
2 changes: 1 addition & 1 deletion src/templates/generated/articles.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<li><a href={{webRoot}}/article/a-pint-is-not-a-unit-of-measurement>A Pint Is Not a Unit of Measurement</a></li>
<li><a href={{webRoot}}/article/create-product-reviews-showing-metric-references>Create Product Reviews Showing Metric References</a></li>
<li><a href={{webRoot}}/article/digital-world-is-not-made-for-imperial-fractions>The Digital World is Not Made for Imperial Fractions</a></li>
<li><a href={{webRoot}}/article/fractions-are-a-royal-pain-in-imperial>Fractions are a Royal Pain in Imperial</a></li>
Expand All @@ -8,5 +7,6 @@
<li><a href={{webRoot}}/article/metric-poetry>Metric Poetry</a></li>
<li><a href={{webRoot}}/article/metrication-is-the-path-of-least-resistance>Metrication is the Path of Least Resistance</a></li>
<li><a href={{webRoot}}/article/millimeter-standard-war>The Millimeter Standard War</a></li>
<li><a href={{webRoot}}/article/pint-is-not-a-unit-of-measurement>A Pint Is Not a Unit of Measurement</a></li>
<li><a href={{webRoot}}/article/review-a-quality-metric-only-product>Review a Quality Metric-Only Product</a></li>
<li><a href={{webRoot}}/article/rules>Rules</a></li>
8 changes: 4 additions & 4 deletions src/templates/redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
<head>
<meta charset=utf-8>
<meta name=viewport content="width=device-width, initial-scale=1">
<meta http-equiv=refresh content="1; url=../{{uri}}">
<meta http-equiv=refresh content="1; url={{webRoot}}/{{uri}}">
<meta name=description content="{{title}} &bull; {{subtitle}}">
<title>{{title}} &bull; {{subtitle}}</title>
<link rel=icon href=../assets/bookmark.png>
<link rel=icon href={{webRoot}}/assets/bookmark.png>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/web-ignition@{{package.dependencies.web-ignition|version}}/dist/reset.min.css>
<style>main { opacity: 0; }</style>
<script>globalThis.location.href = '../{{uri}}';</script>
<script>globalThis.location.href = '{{webRoot}}/{{uri}}';</script>
</head>
<body>

<main>
<h1>{{title}}</h1>
<h2>{{subtitle}}</h2>
<a href=../{{uri}}>https://think-metric.org/{{file.folder}}</a>
<a href={{webRoot}}/{{uri}}>https://think-metric.org/{{file.folder}}</a>
</main>

</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h2>Tedium of Extra Manual Steps</h2>
should offend all decent people.&nbsp;
</p>
<p>
Even if the user doesn't need to type out a fraction, fractions still wreak havoc on
Even when customers doesn't need to type out fractions, fractions still wreak havoc on
product listings because computers will consider sizes like
<code>3.5"</code>, <code>3 1/2"</code>, and <code>3 4/8"</code> to all be different sizes
when in fact they are all identical.&nbsp;
Expand Down

0 comments on commit a65c13b

Please sign in to comment.