Permalink
Browse files

Some updates: always comment after jan 2007, small css tuneups

svn path=/trunk/lb/; revision=70817
  • Loading branch information...
1 parent c6ffc9e commit 590eca4ae3eda3818a53be4fbb39e88a14688d5d @migueldeicaza migueldeicaza committed Jan 10, 2007
Showing with 13 additions and 11 deletions.
  1. +1 −1 comments
  2. +1 −1 entry
  3. +5 −3 lb.cs
  4. +5 −5 log-style.css
  5. +1 −1 makefile
View
@@ -1 +1 @@
-| <a href="http://groups-beta.google.com/group/tiraniaorg-blog-comments/post?subject=@ENTRY_CAPTION@ on @ENTRY_DATECAPTION@">Post Comment</a>
+<p align="right">[<a href="http://groups-beta.google.com/group/tiraniaorg-blog-comments/post?subject=@ENTRY_CAPTION@ on @ENTRY_DATECAPTION@">Post Comment</a>] | [<a href="http://groups-beta.google.com/group/tiraniaorg-blog-comments/search?group=tiraniaorg-blog-comments&q=@ENTRY_CAPTION@ on @ENTRY_DATECAPTION@&qt_g=Search+this+group">Comments</a>]</p>
View
2 entry
@@ -5,10 +5,10 @@
<div class='blogentry'>
<h1><a href="@BASEDIR@@ENTRY_PERMALINK@" class="entryTitle">@ENTRY_CAPTION@</a></h1>
@ENTRY_BODY@
+@COMMENTS@
</div>
<div class='footer'>Posted by @COPYRIGHT@ on <a href="@ENTRY_URL_PERMALINK@">@ENTRY_DATECAPTION@</a>
-@COMMENTS@
<!--|
<a href="http://www.digg.com/submit?phase=2&url=@ENTRY_URL_PERMALINK@">Digg It</a> |
<a href="http://reddit.com/submit?url=@ENTRY_URL_PERMALINK@">Reddit</a>-->
View
8 lb.cs
@@ -35,7 +35,8 @@ class DayEntry : IComparable {
public string Caption = "";
public string DateCaption;
public string Category = "";
- public bool Comments;
+ public bool Comments = DateTime.Now > new DateTime (2007, 1, 1);
+ public string RenderedComment;
Blog blog;
public string extra = "";
@@ -411,7 +412,8 @@ void Render (TextWriter o, IList entries, int idx, string blog_base, bool includ
StringWriter rendered_comment = new StringWriter (new StringBuilder (comments.Length));
Translate (comments, rendered_comment, substitutions);
substitutions.Add ("@COMMENTS@", rendered_comment.ToString ());
- } else
+ d.RenderedComment = rendered_comment.ToString ();
+ } else
substitutions.Add ("@COMMENTS@", "");
StringWriter body = new StringWriter (new StringBuilder (d.Body.Length));
@@ -678,7 +680,7 @@ public void RenderRSS (RssVersion version, string output, IList entries, int sta
RssItem item = new RssItem ();
item.Author = config.Author;
- item.Description = d.Body;
+ item.Description = d.Body + (d.RenderedComment ?? "nothing");
item.Guid = new RssGuid ();
item.Guid.Name = config.BlogWebDirectory + d.PermaLink;
item.Link = new Uri (item.Guid.Name);
View
@@ -26,7 +26,7 @@ blockquote {
padding-top: 2em;
margin-left: 1em;
margin-right: 2em;
- width: 45em;
+
}
.blogentry h1, .blogentry h2 {
@@ -45,7 +45,7 @@ blockquote {
font-size: smaller;
margin-left: -1em;
border-bottom: 2px solid #dddddd;
- background: #ffffff;
+ background: transparent;
}
body, table {
@@ -81,12 +81,12 @@ img {
#main {
margin-left: 2em;
position: absolute;
- width: 62%;
+ width: 66%;
}
#sidebar {
- width: 28%;
- left: 66%;
+ width: 26%;
+ left: 70%;
padding:1em 0pt 1em 2em;
position: absolute;
border-left:1px dotted #AAAAAA;
View
@@ -5,7 +5,7 @@ ASSEMBLIES= -r:RSS.NET.dll \
-r:System.Web
lb.exe: lb.cs config.cs
- mcs $(ASSEMBLIES) -debug lb.cs config.cs -out:lb.exe
+ gmcs $(ASSEMBLIES) -debug lb.cs config.cs -out:lb.exe
b: lb.exe
mono --debug lb.exe

0 comments on commit 590eca4

Please sign in to comment.