Skip to content

Commit

Permalink
Add article shortcuts section to elsewhere page
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jun 16, 2024
1 parent 211464a commit 517bae5
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2>{{articleTitle}}</h2>
</figure>
<p>
What is a fifth of an imperial yard?&nbsp;
Answering that question is going to require a bit of math.&nbsp;
Answering that question requires a bit of math.&nbsp;
</p>
<p>
Most likely the person asking the question expects the answer in familiar fractional
Expand Down
17 changes: 14 additions & 3 deletions src/website/elsewhere/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% assign articleTitle = 'Elsewhere' %}
{% render 'src/templates/doc-begin.html', articleTitle: articleTitle %}

<main>
<main class=center-line>

<section>
<h2>{{articleTitle}}</h2>
Expand All @@ -23,11 +23,22 @@ <h3>Resources and interesting stuff</h3>
</div>
</section>

<section id=shortcuts>
<h2>Article Shortcuts</h2>
<p>
<b>Metric Poetry</b><br>
<a href={{webRoot}}/poetry>https://think-metric.org/poetry</a>
</p>
<p>
<b>Fractions are a Royal Pain in Imperial</b><br>
<a href={{webRoot}}/fractions>https://think-metric.org/fractions</a>
</p>
</section>

<section id=noteworthy>
<h2>Noteworthy</h2>
<p>
For a bunch of handy instructions on going metric, visit <b>Think Metric!</b> in the
U.K. at:
For handy instructions on going metric, visit <b>Think Metric!</b> in the U.K. at:
<a href=https://thinkmetric.uk class=external-site>thinkmetric.uk</a>
</p>
<p>
Expand Down
29 changes: 29 additions & 0 deletions src/website/fractions/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!doctype html>
<!-- - - - - - - - - - - - - - - - - - - - - -->
<!-- Fractions are a Royal Pain in Imperial -->
<!-- - - - - - - - - - - - - - - - - - - - - -->
<html lang=en>
<head>
<meta charset=utf-8>
<meta name=viewport content="width=device-width, initial-scale=1">
<meta http-equiv=refresh content="1; url=https://think-metric.org/article/fractions-are-a-royal-pain-in-imperial">
<meta name=description content="Fractions are a Royal Pain in Imperial &bull; What's 1/5 of a yard?">
<title>Fractions are a Royal Pain in Imperial &bull; What's 1/5 of a yard?</title>
<link rel=icon href=https://think-metric.org/graphics/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>
const url = '../article/fractions-are-a-royal-pain-in-imperial/';
globalThis.location.href = url;
</script>
</head>
<body>

<main>
<h1>Fractions are a Royal Pain in Imperial</h1>
<h2>What's 1/5 of a yard?</h2>
<a href=../article/fractions-are-a-royal-pain-in-imperial>https://think-metric.org/fractions</a>
</main>

</body>
</html>
4 changes: 2 additions & 2 deletions src/website/poetry/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<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>
const url = 'https://think-metric.org/article/metric-poetry';
const url = '../article/metric-poetry/';
globalThis.location.href = url;
</script>
</head>
Expand All @@ -22,7 +22,7 @@
<main>
<h1>Metric Poetry</h1>
<h2>Common Words for SI</h2>
<a href=https://think-metric.org/poetry>think-metric.org/poetry</a>
<a href=../article/metric-poetry>https://think-metric.org/poetry</a>
<p>mil | cem | met | klick | mig | gram | kilo | ton | leat | meg</p>
</main>

Expand Down

0 comments on commit 517bae5

Please sign in to comment.