diff options
| author | bdunahu <bdunahu@operationnull.com> | 2026-08-21 20:54:39 -0400 |
|---|---|---|
| committer | bdunahu <bdunahu@operationnull.com> | 2026-08-21 21:04:14 -0400 |
| commit | 30731133aff475f100cea7fac18017505a400c38 (patch) | |
| tree | cdc2ae3deccd2eba960889288f0743ef12dabb94 /src/operationnull/utils.scm | |
| parent | 959447a73ef7bd79b12dcf259ee8c3c1941f10df (diff) | |
Diffstat (limited to 'src/operationnull/utils.scm')
| -rw-r--r-- | src/operationnull/utils.scm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/operationnull/utils.scm b/src/operationnull/utils.scm new file mode 100644 index 0000000..39889ea --- /dev/null +++ b/src/operationnull/utils.scm @@ -0,0 +1,14 @@ +;; SPDX-License-Identifier: CC-BY-SA-4.0 +;; Copyright 2026 bdunahu <bdunahu@operationnull.com> +(define-module (operationnull utils) + #:use-module (ice-9 ftw) + #:use-module (ice-9 regex) + #:use-module (srfi srfi-2) + #:use-module (haunt site) + #:export (post-uri + get-art-metadata + collect-arts-in)) + +(define (post-uri site post) + (string-append "/posts/" (site-post-slug site post) ".html")) + |
