@@ -3,10 +3,11 @@ ; SPDX-License-Identifier: BlueOak-1.0.0 ; This file is licensed under the Blue Oak Model License 1.0.0. ;; Provides functions for displaying content in HTML templates. (require pollen/template + pollen/core pollen/decode pollen/private/version racket/string racket/function racket/list @@ -44,24 +45,36 @@

The Local Yarn

}) +(define (html$-repo-links) + (define here (path->string (here-source-path))) + (cond + [(checked-in?) + ◊string-append{}] + [else (format "" here) ])) + (define (html$-article-open pagenode title? title-tx published) (cond [title? ◊string-append{
◊(->html `(h1 [[class "entry-title"]] ,@(get-elements title-tx)))

+ ◊(html$-repo-links)
}] [else ◊string-append{

+ ◊(html$-repo-links)
}])) (define (html$-article-close footertext) (cond [(non-empty-string? footertext) ◊string-append{
@@ -70,31 +83,31 @@ [else "
"])) (define (html$-article-listing-short pagenode pubdate title) ◊string-append{
- -

◊|title|

+ +

◊|title|

}) (define (html$-article-excerpt pagenode excerpt-tx) ◊string-append{ - ◊(->html excerpt-tx #:splice? #t) -

Read more…

-}) + ◊(->html excerpt-tx #:splice? #t) +

Read more…

+ }) (define (html$-page-footer) ◊string-append{ -