Settings¶
sublime-jekyll ships with a number of configurable settings. These can be overridden globally in your User Settings file, or on a per-Project basis using the recommended Project Settings syntax.
Warning
sublime-jekyll settings prior to v3.0 have been deprecated!
We know that is a bit of a pain - we get it - but it was for the best moving forward.
To help with the transition, we have created some Jekyll Utility commands that automatically migrate your old, deprecated settings to new, fully supported settings. You can find these in the Command Palatte by searching for Jekyll Utility.
User Settings¶
jekyll_posts_path¶
Default: None Description: This should point to your _postsdirectory.
jekyll_drafts_path¶
Default: None Description: This should point to your _draftsdirectory.
jekyll_uploads_path¶
Default: None Description: This should point to your _uploadsdirectory.
Warning
These should be absolute paths, not relative paths!
Also, the paths should follow your system-specific path convention. For example, Windows machines should have a path similar to C:\\Users\\username\\site\\_posts. Unix/Linux systems should have a path similar to /Users/username/site/_posts.
jekyll_auto_find_paths¶
Default: falseDescription: If you don’t want to hard-code your _posts,_drafts, oruploadspaths into your settings file, you can optionally have sublime-jekyll look for_posts,_draftsor_uploadsfolders open in your sidebar. If you don’t name the folders appropriately, or you use a non-standard file structure for your Jekyll project, you have a higher chance of returning path exception errors. This should have a value oftrueorfalse.
jekyll_uploads_baseurl¶
Default: {{ site.baseurl }}Description: This string value should represent the baseurl for the uploads directory. For example, if your uploads directory is _uploads/and you have an image calledimage.png, the output of inserting the image in your post would be{{ uploads_baseurl }}/uploads/image.png, with{{ uploads_baseurl }}replace by its value.
Note
If you wish to have an absolute link and you have url defined in your Jekyll config.yml file, then you can set the value to {{ site.url }}/{{ site.baseurl }}.
jekyll_default_markup¶
Default: MarkdownDescription: This string value determines the file type for new drafts and posts. It can be set to one of three accepted values: Markdown,TextileorHTML.
Note
We use .markdown as the standard file extension for Markdown files as suggested by John Gruber, developer of Markdown, in his blog post here: http://daringfireball.net/linked/2014/01/08/markdown-extension
jekyll_date_format¶
Default: %Y-%m-%dDescription: A valid Python strftime string for a date.
jekyll_datetime_format¶
Default: %Y-%m-%d %H:%M:%SDescription: A valid Python strftime string for a datetime.
Note
If for some reason you want to change the way either the date or the datetime string is formatted, you can override those formats using valid Python datetime.strftime() format codes.
If you need a refresher on these codes, have a look at the Python documentation found here: http://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior.
jekyll_debug¶
Default: falseDescription: If set to true, the application will print Jekyll debug information to the Sublime Text console and can be retrieved by usingCtrl + `.
jekyll_utility_disable¶
Default: falseDescription: If set to true, the application will hide the Jekyll Utility commands from the Command Palatte, and disable the commands from the menu.
Project Settings¶
For per-project settings, make sure you add your Jekyll settings correctly to your Project settings file. You can typically edit your Project file under Project > Edit Project.
Warning
These should be absolute paths, not relative paths!
Also, the paths should follow your system-specific path convention. For example, Windows machines should have a path similar to C:\\Users\\username\\site\\_posts. Unix/Linux systems should have a path similar to /Users/username/site/_posts.
# some-file.sublime-settings
{
"folders":
[
{
"follow_symlinks": true,
"path": "/Users/username/site/"
}
],
"settings":
{
"Jekyll":
{
"posts_path": "/Users/username/site/_posts",
"drafts_path": "/Users/username/site/_drafts",
"uploads_path": "/Users/username/site/_uploads",
}
}
}
See also
Read the conversation on issue #16 if you have questions on formatting your Project settings file correctly.