my-domain
my-url
my-tag-prefix
- my-date-format))
+ my-primary-date-format
+ my-secondary-date-format))
(define my-scheme 'https)
(define my-domain "bandali.eu.org")
(define my-url
(string-append (symbol->string my-scheme) "://" my-domain))
(define my-tag-prefix "tags")
-(define my-date-format "~B ~e, ~Y")
-
+(define my-primary-date-format "~1")
+(define my-secondary-date-format "~A ~B ~e, ~Y")
`(tr
(td ,(aa (post-ref post 'title)
(post-uri site post prefix)))
- (td (small ,(date->string (post-date post)
- my-date-format)))))
+ (td (small (@ (title
+ ,(date->string (post-date post)
+ my-secondary-date-format)))
+ ,(date->string (post-date post)
+ my-primary-date-format)))))
posts)))))
(define (my-post-template post)
(address "By " ,(aa (post-ref post 'author) "/")
" <" ,(post-ref post 'email) ">")
(p (@ (class "date"))
- "Published "
- ,(date->string (post-date post) my-date-format))
- ,(if (post-ref post 'updated)
- `(p (@ (class "updated"))
- "Updated "
- ,(date->string (post-ref post 'updated)
- my-date-format)) '())
+ (span (@ (title ,(date->string (post-date post)
+ my-secondary-date-format)))
+ ,(date->string (post-date post)
+ my-primary-date-format))
+ ,(if (post-ref post 'updated)
+ `(" (updated on "
+ (span (@ (title
+ ,(date->string (post-ref post 'updated)
+ my-secondary-date-format)))
+ ,(date->string (post-ref post 'updated)
+ my-primary-date-format))
+ ")") '()))
,(if (post-ref post 'tags)
`(p (@ (class "tags"))
"Tagged "