public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
use example of article feed in the default template

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2438 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Sat Nov 04 22:57:56 -0800 2006
commit  69b97bdf2333b5dffa013377966806eb99a9ef9f
tree    571ab212ae339a766d8e8991e825a3de129f464f
parent  2919e043db1030603369f5ca25ea3e1e30b13051
...
23
24
25
26
27
 
28
29
30
...
23
24
25
 
 
26
27
28
29
0
@@ -23,8 +23,7 @@ class ArticleDrop < BaseDrop
0
   end
0
   
0
   def sections
0
- @sections ||= @source.sections.inject([]) { |all, s| s.home? ? all : all << s.to_liquid } # your days are numbered, home section!
0
- @sections ||= liquify(*@source.sections) { |s| s.home? ? nil : s.to_liquid }
0
+ @sections ||= liquify(*@source.sections.reject(&:home?))
0
   end
0
 
0
   def tags
...
142
143
144
145
146
147
 
 
 
148
149
...
142
143
144
 
 
 
145
146
147
148
149
0
@@ -142,7 +142,7 @@ class ThemeError < StandardError
0
 end
0
 
0
 Symbol.class_eval do
0
- def to_liquid
0
- to_s
0
- end
0
+ def to_liquid
0
+ to_s
0
+ end
0
 end
0
\ No newline at end of file
...
1
2
3
4
5
6
 
 
 
7
8
9
10
 
 
11
12
13
...
23
24
25
26
 
27
28
29
...
1
2
3
 
 
 
4
5
6
7
8
 
 
9
10
11
12
13
...
23
24
25
 
26
27
28
29
0
@@ -1,13 +1,13 @@
0
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0
 <html xmlns="http://www.w3.org/1999/xhtml">
0
 
0
-{% head %}
0
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
0
- <title>{{ site.title }} {% if article %} {{ article.title }} {% else %} {{ site.subtitle }} {% endif %}</title>
0
+<head>
0
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
0
+ <title>{{ site.title }} {% if article %} {{ article.title }} {% else %} {{ site.subtitle }} {% endif %}</title>
0
   <meta name="generator" content="Mephisto" />
0
   {{ 'main' | stylesheet }}
0
- {{ head.feed }}
0
-{% endhead %}
0
+ {{ site.home_section | articles_feed }}
0
+</head>
0
 <body>
0
 
0
   <div id="wrap">
0
@@ -23,7 +23,7 @@
0
         <label for="q">Search:</label>
0
         <input type="text" id="q" value="" name="q" size="15" />
0
       </form>
0
- {% if site.page_sections %}
0
+ {% if site.page_sections %}
0
         <h2>Pages</h2>
0
         <ul>
0
           {% for page in site.page_sections %}<li>{{ page | link_to_section }}</li>{% endfor %}

Comments

    No one has commented yet.