@@ -3,11 +3,10 @@
; 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
@@ -45,16 +44,17 @@
The Local Yarn
})
-(define (html$-repo-links)
+(define (html$-repo-links [line #f])
(define here (path->string (here-source-path)))
+ (define line-param (if line (format "?ln=~a" line) ""))
(cond
[(checked-in?)
◊string-append{
}]
[else (format "" here) ]))
(define (html$-article-open pagenode title? title-tx published)
@@ -133,11 +133,12 @@
(cons (txexpr first-tag first-attrs (cons disposition first-elems)) (cdr elems))]
[else
(cons disposition elems)]))
(string-append* (map ->html body-elems)))
-(define (html$-note-listing-full pagenode note-id title-html-flow date contents [author default-authorname] [author-url ""])
+(define (html$-note-listing-full pagenode note-id title-html-flow
+ date srcline contents [author default-authorname] [author-url ""])
(define author-part
(cond [(non-empty-string? author-url)
◊string-append{