Changeset 20060 in project for gazette/layouts


Ignore:
Timestamp:
09/04/10 02:41:53 (11 years ago)
Author:
Moritz Heidkamp
Message:

gazette: add permalink to all issues, unlink title, remove title.sxml layout and add rudimentary archive page

Location:
gazette/layouts
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • gazette/layouts/article.sxml

    r19972 r20060  
    11()
    2 `((div (@ (class "article-meta"))
     2`((h1 ,($ 'title))
     3
     4  (div (@ (class "article-meta"))
    35       (p (@ (class "authors"))
    46          "by "
    5           ,(fold (lambda (name authors)
    6                    (append authors
    7                            `(,(and (pair? authors) ", ")
    8                              (span (@ (class "author")) ,name))))
    9                  '()
    10                  ($ 'authors)))
    11        (p  (@ (class "date")) ,(time->string (seconds->utc-time ($ 'date)) "%Y-%m-%d %Z")))
    12   (inject ,contents))
     7          ,(car ($ 'authors))
     8          ,@(if (null? (cdr ($ 'authors)))
     9                '()
     10                (map (lambda (author)
     11                       `(,(car author) (span (@ (class "author")) ,(cdr author))))
     12                     (append (map (cut cons ", " <>) (butlast (cdr ($ 'authors))))
     13                             `((" and " . ,(last ($ 'authors))))))))
     14       (p  (@ (class "date")) ,(format-seconds ($ 'date))))
     15
     16  (inject ,contents)
     17
     18  (ul (@ (class "links"))
     19      (li (a (@ (href ,(page-path))) "Permalink to this issue"))
     20      (li (a (@ (href "/archive.html")) "The Chicken Gazette Archive"))))
  • gazette/layouts/default.sxml

    r19973 r20060  
    1515              (inject ,contents))
    1616
    17          (p (@ (class "fineprint"))
    18             "The chicken image used in the logo is kindly provided by Manfred Wischner ©"))))
     17         (p (@ (id "fineprint"))
     18            "The chicken image used in the logo is kindly provided and © 2010 by Manfred Wischner"))))
Note: See TracChangeset for help on using the changeset viewer.