is there a way to configure Jekyll to process files without front-matter?
…it just seems silly to be forced to modify all of my files, instead of configuring the program…
update:
okay, i found jekyll-optional-front-matter, but i believe it only converts file with the file extension .md…? I use .txt
so so picky this Jekyll guy…
update-2:
def markdown_converter
@markdown_converter ||= site.find_converter_instance(Jekyll::Converters::Markdown)
end
# An array of Jekyll::StaticFile's with a site-defined markdown extension
def markdown_files
site.static_files.select { |file| markdown_converter.matches(file.extname) }
end
and so… i believe Jekyll’s markdown “converter” (parser) has a list of file extensions it uses (.md, .markdown, etc.) in the match method function… sooo
… yeah i think i’ll just rewrite that bit:
site.static_files.select { markdown_converter.matches(file.extname) || file.extname == '.txt' }
???
lol, i’ve never used Ruby, but reading that plugin, wow… now that’s a special programming language! :o i think i’m in love…! lol, but that can’t be efficient!
maybe i’ll have to create a configuration option for that plugin…
update-3:
i tried to add include: /my-folder
(and include: my-folder
, just in case), but nothing…
but then i realized, or remembered(?) , that my folder is a git sub-module! sooo… maybe GitHub Pages doesn’t know what to do with it! ooohhhh nooooooo!!!
… never-mind! it should be fine…
)
hmmm
update 4:
collections:
...
defaults:
- # i hope this isn’t overriding my-notes...
scope:
path: "" # empty string means all files, but a '.' would be more clear...
values:
layout: "default" # i'm not sure how this works.., only works files with front matter, or with extension .md..?
-
scope:
path: "my-notes" #or /my-notes ? or /my-notes/ ??
type: posts #collection(-type)? why is it not a string??
values:
layout: "post"
still nothing…
update x:
ahhhhhh hahahahaha *going mad*, i found it!
markdown_ext: "txt" # does it override, or append?
…but it throws an error
the default configs page is by far the most important i’ve seen, wish i knew about it earlier!