|
Revision 3047, 2.7 kB
(checked in by cho45, 5 years ago)
|
|
lang/javascript/blosxom.rhino,
lang/javascript/blosxom.rhino/template.html:
とりあえず import (まだぜんぜんできていない)
|
| Line | |
|---|
| 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 | <link rel="alternate" title="Atom" type="application/atom+xml" href="<%= home %>/index.atom"/> |
|---|
| 8 | <style type="text/css"> |
|---|
| 9 | body { |
|---|
| 10 | background: #fff; |
|---|
| 11 | color: #555; |
|---|
| 12 | padding: 0 10%; |
|---|
| 13 | line-height: 1.75; |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | var { |
|---|
| 17 | text-decoration: underline; |
|---|
| 18 | color: #666; |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | hr { |
|---|
| 22 | border-style: solid; |
|---|
| 23 | border-width: 1px 0 0; |
|---|
| 24 | border-color: #eee; |
|---|
| 25 | height: 1px; |
|---|
| 26 | margin: 1em 0; |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | .all { |
|---|
| 30 | width: 45em; |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | a:link { |
|---|
| 34 | color: #d06c6b; |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | a:visited { |
|---|
| 38 | color: #b44e4d; |
|---|
| 39 | } |
|---|
| 40 | |
|---|
| 41 | a:hover { |
|---|
| 42 | text-decoration: none; |
|---|
| 43 | } |
|---|
| 44 | |
|---|
| 45 | h1, h2, h3 { |
|---|
| 46 | font-weight: normal; |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | .hentry { |
|---|
| 50 | border-top: 1px solid #ddd; |
|---|
| 51 | padding: 1em 0; |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | h3 { |
|---|
| 55 | color: #d06c6b; |
|---|
| 56 | margin: 0 0 1em 0; |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | dl.information { |
|---|
| 60 | margin: 0; |
|---|
| 61 | color: #ccc; |
|---|
| 62 | font-size: 80%; |
|---|
| 63 | text-align: right; |
|---|
| 64 | line-height: 1.33; |
|---|
| 65 | } |
|---|
| 66 | |
|---|
| 67 | dl.information dt { |
|---|
| 68 | margin: 0 13em 0 0; |
|---|
| 69 | padding: 0; |
|---|
| 70 | } |
|---|
| 71 | |
|---|
| 72 | dl.information dd { |
|---|
| 73 | overflow: hidden; |
|---|
| 74 | white-space: nowrap; |
|---|
| 75 | padding: 0; |
|---|
| 76 | } |
|---|
| 77 | |
|---|
| 78 | #top a:link, |
|---|
| 79 | #top a:visited, |
|---|
| 80 | #top a:hover, |
|---|
| 81 | #top a { |
|---|
| 82 | text-decoration: none; |
|---|
| 83 | } |
|---|
| 84 | |
|---|
| 85 | #footer { |
|---|
| 86 | font-size: 80%; |
|---|
| 87 | color: #999; |
|---|
| 88 | text-align: center; |
|---|
| 89 | } |
|---|
| 90 | |
|---|
| 91 | .debug-info { |
|---|
| 92 | text-align: left; |
|---|
| 93 | } |
|---|
| 94 | |
|---|
| 95 | pre { |
|---|
| 96 | overflow: auto; |
|---|
| 97 | font-size: 90%; |
|---|
| 98 | padding: 1em; |
|---|
| 99 | line-height: 1.2; |
|---|
| 100 | background: #efefef; |
|---|
| 101 | border: 1px solid #ccc; |
|---|
| 102 | color: #555; |
|---|
| 103 | } |
|---|
| 104 | |
|---|
| 105 | .comment { |
|---|
| 106 | margin: 0 0 1em 0; |
|---|
| 107 | } |
|---|
| 108 | |
|---|
| 109 | .comment h4 { |
|---|
| 110 | margin: 0; |
|---|
| 111 | } |
|---|
| 112 | |
|---|
| 113 | .comment h4 .time { |
|---|
| 114 | font-size: 80%; |
|---|
| 115 | } |
|---|
| 116 | |
|---|
| 117 | .comment-body { |
|---|
| 118 | background: #efefef; |
|---|
| 119 | padding: 0.5em 1em; |
|---|
| 120 | } |
|---|
| 121 | |
|---|
| 122 | .comment-message { |
|---|
| 123 | border: 1px solid #900; |
|---|
| 124 | background: #ffe0e0; |
|---|
| 125 | padding: 1em; |
|---|
| 126 | font-weight: bold; |
|---|
| 127 | color: #900; |
|---|
| 128 | } |
|---|
| 129 | |
|---|
| 130 | input.text, |
|---|
| 131 | textarea { |
|---|
| 132 | width: 100%; |
|---|
| 133 | } |
|---|
| 134 | </style> |
|---|
| 135 | </head> |
|---|
| 136 | <body> |
|---|
| 137 | <div class="all"> |
|---|
| 138 | <h1 id="top"><a href="<%= home %>/"><%= title %></a></h1> |
|---|
| 139 | |
|---|
| 140 | <div id="content" class="hfeed"> |
|---|
| 141 | <h2>Entries</h2> |
|---|
| 142 | <% entries.forEach(function (entry) { %> |
|---|
| 143 | <div class="hentry"> |
|---|
| 144 | <h3 class="entry-title"> |
|---|
| 145 | <a href="<%= home %><%= entry.name %>"><%= entry.title %></a> |
|---|
| 146 | </h3> |
|---|
| 147 | <div class="entry-content"> |
|---|
| 148 | <%=R entry.body %> |
|---|
| 149 | </div> |
|---|
| 150 | <dl class="information"> |
|---|
| 151 | <dt>DateTime</dt> |
|---|
| 152 | <dd><%= entry.time.strftime("%Y-%m-%dT%H:%M:%S") %></dd> |
|---|
| 153 | <dt>Path</dt> |
|---|
| 154 | <dd><a href="<%= home %><%= entry.name %>"><%= entry.name %></a></dd> |
|---|
| 155 | </dl> |
|---|
| 156 | |
|---|
| 157 | </div> |
|---|
| 158 | <% }); %> |
|---|
| 159 | </div> |
|---|
| 160 | |
|---|
| 161 | <div id="footer"> |
|---|
| 162 | <p>JavaScript on Rhino</p> |
|---|
| 163 | </div> |
|---|
| 164 | </div> |
|---|
| 165 | </body> |
|---|
| 166 | </html> |
|---|