From 16aa1d580c0d30fb8ac800f98bcfc5c9baee089f Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 29 Jul 2024 20:57:39 -0500 Subject: [PATCH] changelog: dark visitors --- content/changelog.md | 5 ++++- layouts/partials/dark-visitors.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/content/changelog.md b/content/changelog.md index 5d48d4c..5c245da 100644 --- a/content/changelog.md +++ b/content/changelog.md @@ -1,7 +1,7 @@ --- title: "/changelog" date: "2024-05-26T21:19:08Z" -lastmod: "2024-07-04T02:32:27Z" +lastmod: "2024-07-30T01:49:28Z" description: "Maybe I should keep a log of all my site-related tinkering?" featured: false toc: false @@ -10,6 +10,9 @@ categories: slashes --- *High-level list of config/layout changes to the site. The full changelog is of course [on GitHub](https://github.com/jbowdre/runtimeterror/commits/main/).* +**2024-07-29:** +- Build `robots.txt` dynamically with [Dark Visitors API](https://darkvisitors.com/) and code from [Luke Harris](https://www.lkhrs.com/blog/2024/darkvisitors-hugo/) + **2024-07-03:** - Remove `target="_blank"` from external links for improved security and accessibility diff --git a/layouts/partials/dark-visitors.html b/layouts/partials/dark-visitors.html index 00c234b..e7aec71 100644 --- a/layouts/partials/dark-visitors.html +++ b/layouts/partials/dark-visitors.html @@ -1,4 +1,4 @@ -{{/* borrowed from https://github.com/lkhrs/hugo-dark-visitors */}} +{{/* borrowed from Luke Harris @ https://github.com/lkhrs/hugo-dark-visitors */}} {{- $url := "https://api.darkvisitors.com/robots-txts" -}} {{- $api_key := getenv "HUGO_DARKVISITORS" -}} {{- $bearer := printf "Bearer %v" $api_key -}}