Fredrik Håård avatar Fredrik Håård committed a402185 Draft

wip

Comments (0)

Files changed (3)

-2a369433122603278cb3a6c4b71642cc92206b74 example_blaag
+ae1dffaf096434ce620bc69991e7537cec63f18c example_blaag
 from genshi.template import TemplateLoader
 from genshi.core import Markup
 
+TOPICS_RE = re.compile("^\s+\.\.\s+topics:(.*)$")
+
 class Config(object):
     def __init__(self, path, defaults):
         self.config_parser = SafeConfigParser()
     for entry in entries:
         with open(os.path.join(entries_path, entry)) as source:
             parts = get_data(source.read().decode("utf-8"))
+            
+            #[x.group(1) for x in ]
+
             if not use_filename:
                 entry_timeinfo = get_entry_dates(entry, entries_path)
             else:

templates/page_template.xhtml

         <h1>$blaag_title</h1>  
       </header>  
       <div class="blurbs">
+        <a href='/rss.xml' class='menu_link centered'>RSS Feed</a>
         <span py:if="blurbs">
           $blurbs
         </span>
-        
-        <a href='/rss.xml' class='menu_link centered'>RSS Feed</a>
-
       </div>
       <div class='blog'>
         <article py:for="article in articles" id="$article.article_id" class="blog box">
           
 
         </article>
-        <footer py:if="footer" class="page">
+
+       <footer py:if="footer" class="page">
           <p class="fineprint">$footer</p>
         </footer>
-        
+         
 </div>
       <nav class="blogs">
         <a href='/' class='menu_link'>- index -</a>
         <a py:for="article in all_articles" href='$article.article_url' class='menu_link'>$article.article_title</a>
 
       </nav>
+
     </section>
     
     <!-- Add JavaScript after this point, it makes the page load faster when client does not need to interpret JS at start -->
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.