Permalink
Browse files

Add a new template

  • Loading branch information...
1 parent 84085b1 commit 222b7ba4d1ec7852ff050437bf4a60db46f34bbb @migueldeicaza migueldeicaza committed Dec 8, 2010
Showing with 92 additions and 25 deletions.
  1. +5 −0 README
  2. +1 −1 config.xml
  3. +16 −4 makefile
  4. +37 −6 twentyten/blog-template
  5. +33 −14 twentyten/entry-template
  6. BIN twentyten/pic2.jpg
  7. BIN twentyten/xml.gif
View
5 README
@@ -165,8 +165,13 @@ This is Lame Blog.
@ENTRY_ID@
@ENTRY_ANCHOR@
+ Anchor used to target an entry.
+
@ENTRY_PATH@
@ENTRY_NAVIGATION@
+ Produces HTML to move to the previous/main/next blog
+ entries
+
@ENTRY_PERMALINK@
@ENTRY_CAPTION@
@ENTRY_CAPTION_ENC@
View
@@ -7,7 +7,7 @@ BlogWebDirectory="http://tirania.org/blog/"
BlogImageBasedir="http://primates.ximian.com/~miguel"
Copyright="Miguel de Icaza"
Description="Miguel de Icaza's web log"
-ManagingEditor="miguel@gnome.org (Miguel de Icaza)"
+ManagingEditor="miguel@gnome.org"
Title="Miguel de Icaza"
RSSFileName="miguel"
InputEncoding="utf-8"
View
@@ -17,11 +17,23 @@ c: lb.exe
clean:
rm -fr *.exe output
-push: b
- chmod 644 output/archive/*/*.html
- chmod 644 output/*html output/*rss2
+push:
+ echo select pushb or pushc
+
+pushb: b
+ make do-push DIR=output
+
+pushc: c
+ make do-push DIR=new
+
+r:
+ rsync twentyten/* $(REMOTE_DIRECTORY)
+
+do-push:
+ chmod 644 $(DIR)/archive/*/*.html
+ chmod 644 $(DIR)/*html output/*rss2
rsync -zu --checksum -pr -v --rsh=ssh texts prettyprint.js log-style.css \
- output/archive output/*.rss2 output/index.html output/page*.html output/all.html \
+ $(DIR)/archive $(DIR)/*.rss2 $(DIR)/index.html $(DIR)/page*.html $(DIR)/all.html \
$(REMOTE_DIRECTORY)
check-update:
View
@@ -20,17 +20,48 @@
<div id="wrapper">
<div id="header">
- <a href="@BLOGWEBDIR@">@DESCRIPTION@</a>
+ <div id="masthead">
+ <div id="branding" role="banner">
+ <h1 id="site-title">
+ <span>
+ <a href="@BLOGWEBDIR@" title="@DESCRIPTION@" rel="home">@DESCRIPTION@</a>
+ </span>
+ </h1>
+ <div id="site-description">Personal blog of Miguel de Icaza</div>
+
+ <img src="@BLOGWEBDIR@/pic2.jpg" width="940" height="236" alt="" />
+ </div><!-- #branding -->
+
+ <div id="access" role="navigation">
+ <div class="skip-link screen-reader-text"><a href="#content" title="Skip to content">Skip to content</a></div>
+
+ <div class="menu">
+ <ul>
+ <li class="current_page_item">
+ <a href="https://monomac.wordpress.com/" title="Home">Home</a>
+ </li>
+
+ <li class="page_item page-item-2" style="display: none;">
+ <a href="https://tirania.org/about/" title="About">About</a>
+ </li>
+ </ul>
+ </div>
+
+ </div><!-- #access -->
+ </div><!-- #masthead -->
</div><!-- header -->
<div id="main">
<div id="container">
- @BLOG_ENTRIES@
+ <div id="content" role="main">
+ @BLOG_ENTRIES@
+
+ @PAGE_NAVIGATION@
- @PAGE_NAVIGATION@
- <center>
- This is a personal web page. Things said here do not represent the position of my employer.
- </center>
+ <center>
+ This is a personal web page. Things said here do not represent the position of my employer.
+ </center>
+ </div>
</div>
<div id="primary" class="widget-area" role="complementary">
View
@@ -1,14 +1,33 @@
-%ENTRY_ANCHOR%
-<p>
-%ENTRY_NAVIGATION%
-<p>
-<div class='blogentry'>
-<h1><a href="%BASEDIR%%ENTRY_PERMALINK%" class="entryTitle">%ENTRY_CAPTION%</a></h1>
-%ENTRY_BODY%
-
-<div class='footer'>Posted by %COPYRIGHT% on <a href="%ENTRY_URL_PERMALINK%">%ENTRY_DATECAPTION%</a>
-%ENTRY_SPECIFIC%
-</div>
-
-%COMMENTS%
-</div><p>
+@ENTRY_ANCHOR@
+<div class="post hentry">
+ <div class="navigation">
+ @ENTRY_NAVIGATION@
+ </div>
+
+ <p>
+ <div class='post hentry'>
+ <h1 class="entry-title"><a href="@BASEDIR@@ENTRY_PERMALINK@">@ENTRY_CAPTION@</a></h1>
+
+ <div class="entry-meta">
+ Posted on <a href="@ENTRY_URL_PERMALINK@">@ENTRY_DATECAPTION@</a> by @COPYRIGHT@
+ </div> <!-- entry-meta -->
+
+ <div class="entry-content">
+ @ENTRY_BODY@
+ </div>
+
+ <div class="entry-utility">
+ Posted on <a href="@ENTRY_URL_PERMALINK@">@ENTRY_DATECAPTION@</a> by @COPYRIGHT@
+ @ENTRY_SPECIFIC@
+ </div>
+ </div><!-- post-->
+
+ <div class="navigation">
+ @ENTRY_NAVIGATION@
+ </div>
+
+ <div id="comments">
+ @COMMENTS@
+ </div>
+
+</div> <!--divpost-->
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 222b7ba

Please sign in to comment.