Skip to content

Commit

Permalink
Minor content fixes, improve sections, add RSS links
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed Nov 23, 2021
1 parent a67d584 commit ffe9c0b
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -4,7 +4,7 @@ website:
@if grep -R "raw HTML omitted" docs/public ; then echo "ERROR: found unescaped HTML - fix the markdown source" ; fi

upload_website: website
-#rclone -v sync public memstore:www-rclone-org
rclone -P --exclude "/pub/**" sync public/ box:public_html_new/

upload_test_website: website
-#rclone -P sync public test-rclone-org:
Expand Down
6 changes: 3 additions & 3 deletions content/_index.md
Expand Up @@ -30,10 +30,10 @@ some fun stuff and maybe the odd rant ;-)

## Fun

- [Some daft juggling animations](animations/)
- [An HTML noughts-and-crosses / tic-tac-toe player](oxo2d/)
- [3d noughts-and-crosses in the browser](oxo3d/) ([wasm version](oxo3d/))
- [Johnroids - kill John in your browser!](johnroids/)
- [An HTML noughts-and-crosses / tic-tac-toe player](oxo2d/)
- [3D noughts-and-crosses in the browser](oxo3d/) ([wasm version](oxo3d/))
- [Some daft juggling animations](animations/)

## Obsolete

Expand Down
8 changes: 8 additions & 0 deletions content/articles/_index.md
@@ -0,0 +1,8 @@
---
title: Nick Craig-Wood's articles
description: Nick Craig-Wood's article
---

Here is a list of articles I've published here.

You can subscribe to the <a href="index.xml"><i class="fas fa-rss"> RSS feed</i></a> also.
2 changes: 1 addition & 1 deletion content/articles/pi-machin/index.md
Expand Up @@ -119,7 +119,7 @@ represent the current term in a `int`[^1] then we could use this speedy
division to greatly speed up the calculation.

The way we do that is to multiply everything by a large number, lets say
10 ^100^. We then do all our calculations with integers, knowing that we
10<sup>100</sup>. We then do all our calculations with integers, knowing that we
should shift the decimal place 100 places to the left when done to get
the answer. This needs a little bit of care, but is a well known
technique known as fixed point arithmetic.
Expand Down
2 changes: 2 additions & 0 deletions content/xmas/_index.md
Expand Up @@ -8,3 +8,5 @@ Here you will find all the christmas letters we've sent out over the years and t
If you click on the picture you'll get very much bigger image which will print out the size of the wall if you really want!

The Craig-Wood family

PS You can subscribe to the <a href="index.xml"><i class="fas fa-rss"> RSS feed</i></a> also.
7 changes: 5 additions & 2 deletions layouts/_default/section.html
@@ -1,10 +1,13 @@
{{ define "main" }}
{{ .Content }}
{{ if not (.Params.nocontents) }}
{{ if or (not (.Params.nocontents)) (.Pages) }}
<h2 id="contents">Contents</h2>
<ul>
{{ range .Pages }}
<li>
<a href="{{.Permalink}}">{{.Title}}{{if not .Date.IsZero}} ({{.Date.Format "2006-01-02"}}){{end}}</a>
<a href="{{.Permalink | relURL}}">{{.Title}}{{if not .Date.IsZero}} ({{.Date.Format "2006-01-02"}}){{end}}</a>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
6 changes: 3 additions & 3 deletions layouts/chrome/navbar.html
Expand Up @@ -49,10 +49,10 @@
Fun
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{{ "animations/" | relURL }}"><i class="far fa-grin"></i> Some daft juggling animations</a>
<a class="dropdown-item" href="{{ "oxo2d/" | relURL }}"><i class="far fa-grin"></i> An HTML noughts-and-crosses / tic-tac-toe player</a>
<a class="dropdown-item" href="{{ "oxo3d/" | relURL }}"><i class="far fa-grin"></i> 3d noughts-and-crosses in the browser</a>
<a class="dropdown-item" href="{{ "johnroids/" | relURL }}"><i class="far fa-grin"></i> Johnroids - kill John in your browser!</a>
<a class="dropdown-item" href="{{ "oxo2d/" | relURL }}"><i class="far fa-grin"></i> An HTML noughts-and-crosses / tic-tac-toe player</a>
<a class="dropdown-item" href="{{ "oxo3d/" | relURL }}"><i class="far fa-grin"></i> 3D noughts-and-crosses in the browser</a>
<a class="dropdown-item" href="{{ "animations/" | relURL }}"><i class="far fa-grin"></i> Some daft juggling animations</a>
</div>
</li>
<li class="nav-item active">
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/articles.html
@@ -1,7 +1,7 @@
{{ with .Site.GetPage "articles" }}
<ul>
{{ range .Pages }}
<li><a href="{{.Permalink}}">{{.Title}}</a></li>
<li><a href="{{.Permalink|relURL}}">{{.Title}}</a></li>
{{ end }}
</ul>
{{ end }}

0 comments on commit ffe9c0b

Please sign in to comment.