mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 02:06:13 +00:00
Clean some code and add documentation
This commit is contained in:
parent
06685bbe13
commit
9b05a0bc8e
15 changed files with 208 additions and 140 deletions
|
@ -1,3 +1,10 @@
|
|||
#events.rb generates blank hidden event pages using files
|
||||
#in _events and assign them the 'event' category.
|
||||
|
||||
#This is later used to loop through site.pages in order
|
||||
#to display the event's list in chronological order, both
|
||||
#on the events RSS file and translated events pages.
|
||||
|
||||
require 'yaml'
|
||||
|
||||
module Jekyll
|
||||
|
@ -17,7 +24,6 @@ module Jekyll
|
|||
|
||||
class EventPageGenerator < Generator
|
||||
def generate(site)
|
||||
#generate each event page
|
||||
Dir.foreach('_events') do |file|
|
||||
next if file == '.' or file == '..'
|
||||
date = file.split('-')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue