X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/blobdiff_plain/4b11ed9d4cc6ed43f6688a60a400783656b0cde5..a18f4abf0bb35e1a6e9d19857c0fc7c0f577f4e9:/bandali/theme.scm diff --git a/bandali/theme.scm b/bandali/theme.scm index aa82b85..d6e4ef2 100644 --- a/bandali/theme.scm +++ b/bandali/theme.scm @@ -33,8 +33,12 @@ (html (head (meta (@ (charset "utf-8"))) + (meta (@ (name "viewport") + (content "width=device-width, initial-scale=1"))) (title ,(if title (string-append title " — " (site-title site)) "Amin Bandali’s Personal Site")) + (link (@ (rel "icon") + (href "/gnu.ico"))) ,(stylesheet "reset") ,(stylesheet "style")) (body @@ -60,8 +64,11 @@ `(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) @@ -70,13 +77,18 @@ (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 "