From f0d251eac98fabfd0bb5ef0fa5a88b59f261da4b Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 3 Dec 2024 22:09:15 -0500 Subject: Now hosted on XVM and Caddy! Only include necessary pi digits in about page poem checker script --- content/about/_index.md | 2 +- static/src/check-about.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/about/_index.md b/content/about/_index.md index f928789..3c303f3 100644 --- a/content/about/_index.md +++ b/content/about/_index.md @@ -62,7 +62,7 @@ using a lot of really awesome [software](software). seeding this website with tons of [secret easter eggs](puzzle). -amazed that special patterns in my biological neural networks transcribed into UTF-8 encoded strings in Markdown documents converted into HTML by [Hugo](https://gohugo.io) with the [Gokarna theme](https://github.com/gokarna-theme/gokarna-hugo) deployed to the [exozyme server](https://exozy.me) and transmitted over HTTP and displayed on your screen have now created special patterns in your biological neural networks. +amazed that special patterns in my biological neural networks transcribed into UTF-8 Markdown documents converted into HTML by a Git hook running [Hugo](https://gohugo.io) with the [Gokarna theme](https://github.com/gokarna-theme/gokarna-hugo) deployed to [XVM](https://xvm.mit.edu) transmitted over HTTP by [Caddy](https://caddyserver.com) displayed on your screen have now created special patterns in your biological neural networks too. still alive. diff --git a/static/src/check-about.py b/static/src/check-about.py index e7bf62d..d88078d 100644 --- a/static/src/check-about.py +++ b/static/src/check-about.py @@ -1,6 +1,6 @@ import re -PI = '31415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679' +PI = '31415926535897932384626433832795028841' i = 0 with open('content/about/_index.md') as f: @@ -9,5 +9,5 @@ with open('content/about/_index.md') as f: continue cnt = str(len(re.sub(r']\([^\)]*\)', '', l).split())) if cnt != PI[i:i+len(cnt)]: - print(l, cnt, PI[i]) + print(l, cnt, PI[i:i+2]) i += len(cnt) -- cgit v1.2.3-70-g09d2