Commits

W. Trevor King  committed 48a9864

Adjust feed generation to support :titlesonly:.

In the previous implementation, the value of :titlesonly: was ignored.

  • Participants
  • Parent commits 6dedb4b

Comments (0)

Files changed (1)

File feed/sphinxcontrib/feed/__init__.py

                 fromdocname, docname)
             newnode.append(innernode)
             para += newnode
-            para += nodes.Text(' ', ' ')
-            stringdate = date.strftime('%Y/%m/%d')
-            date_wrapper = nodes.container(classes=['feed-article-date'])
-            date_wrapper += nodes.Text(stringdate, stringdate)
-            para += date_wrapper
+            if not node['titlesonly']:
+                para += nodes.Text(' ', ' ')
+                stringdate = date.strftime('%Y/%m/%d')
+                date_wrapper = nodes.container(classes=['feed-article-date'])
+                date_wrapper += nodes.Text(stringdate, stringdate)
+                para += date_wrapper
 
             # Insert into the latestlist
             latest_list.append(list_item)