|
Revision 1201, 2.0 kB
(checked in by cho45, 6 years ago)
|
|
lang/lua/bluasxom/bluasxom.lua,
lang/lua/bluasxom/template.html:
いろいろシンプルになるように修正。
ねよう
|
| Rev | Line | |
|---|
| [1200] | 1 | Content-Type: text/html; charset=UTF-8 |
|---|
| 2 | |
|---|
| 3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 4 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 5 | <head> |
|---|
| 6 | <title><%= title %></title> |
|---|
| 7 | |
|---|
| 8 | <!-- |
|---|
| 9 | <link rel="stylesheet" type="text/css" href="/base.css" media="screen,tv"/> |
|---|
| 10 | <link rel="stylesheet" type="text/css" href="/site.css" media="screen,tv,projection" title="site"/> |
|---|
| 11 | <link rel="meta" type="application/rdf+xml" title="FOAF" href="http://lowreal.net/cho45/foaf"/> |
|---|
| 12 | --> |
|---|
| 13 | |
|---|
| 14 | <style type="text/css"> |
|---|
| 15 | body { |
|---|
| 16 | background: #fff; |
|---|
| 17 | line-height: 1.75; |
|---|
| 18 | color: #444; |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | #whole { |
|---|
| 22 | margin: 0 10%; |
|---|
| 23 | width: 40em; |
|---|
| 24 | } |
|---|
| 25 | |
|---|
| 26 | a:link { |
|---|
| 27 | color: #1f737f; |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | a:visited { |
|---|
| 31 | color: #4f797f; |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | a:hover { |
|---|
| 35 | text-decoration: none; |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | hr { |
|---|
| 39 | height: 1px; |
|---|
| 40 | margin: 1em 0; |
|---|
| 41 | background: #ccc; |
|---|
| 42 | border: none; |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | h1, |
|---|
| 46 | h2, |
|---|
| 47 | h3, |
|---|
| 48 | h4 { |
|---|
| 49 | color: #1f737f; |
|---|
| 50 | font-weight: normal; |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | .entry { |
|---|
| 54 | margin: 1em 0 2em; |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | .entry .entry-information { |
|---|
| 58 | font-size: 80%; |
|---|
| 59 | text-align: right; |
|---|
| 60 | color: #ccc; |
|---|
| 61 | } |
|---|
| 62 | |
|---|
| 63 | #footer { |
|---|
| 64 | font-size: 80%; |
|---|
| 65 | color: #999; |
|---|
| 66 | text-align: center; |
|---|
| 67 | } |
|---|
| 68 | </style> |
|---|
| 69 | |
|---|
| 70 | </head> |
|---|
| 71 | <body> |
|---|
| 72 | <div id="whole"> |
|---|
| 73 | <h1 id="top"><a href="<%= home %>/"><%= title %></a></h1> |
|---|
| 74 | |
|---|
| 75 | <p class="debug"><%= debugObj %></p> |
|---|
| 76 | |
|---|
| 77 | <div id="content"> |
|---|
| 78 | <div class="hfeed"> |
|---|
| 79 | <% entries:each(function (entry) %> |
|---|
| 80 | <div class="entry"> |
|---|
| 81 | <h2 class="entry-title"> |
|---|
| 82 | <a href="<%= home %><%= entry.name %>" rel="bookmark"> |
|---|
| 83 | <%= entry.title %> |
|---|
| 84 | </a> |
|---|
| 85 | </h2> |
|---|
| 86 | <dl class="entry-information"> |
|---|
| 87 | <dt>DateTime</dt> |
|---|
| 88 | <dd><%= os.date("%Y-%m-%d %H:%M:%S", entry.time) %></dd> |
|---|
| 89 | <dt>Path</dt> |
|---|
| 90 | <dd><%= entry.name %></dd> |
|---|
| 91 | </dl> |
|---|
| 92 | <div class="content"> |
|---|
| 93 | <%== entry.body %> |
|---|
| 94 | </div> |
|---|
| 95 | </div> |
|---|
| 96 | <% end) %> |
|---|
| 97 | </div> |
|---|
| 98 | </div> |
|---|
| 99 | |
|---|
| 100 | <div id="footer"> |
|---|
| [1201] | 101 | <p>Powered by Lua (+ruby) <%= _VERSION %></p> |
|---|
| [1200] | 102 | </div> |
|---|
| 103 | </div> |
|---|
| 104 | </body> |
|---|
| 105 | </html> |
|---|