changelog: dark visitors

This commit is contained in:
John Bowdre 2024-07-29 20:57:39 -05:00
parent ff4c91e6f6
commit 16aa1d580c
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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 -}}