# For custom domains on github pages page "CNAME", layout: false set :css_dir, 'stylesheets' set :js_dir, 'javascripts' set :images_dir, 'images' # Better markdown support # set :markdown, :tables => true, :autolink => true, :gh_blockcode => true, :fenced_code_blocks => true # set :markdown_engine, :redcarpet activate :autometatags # Turn this on if you want to make your url's prettier, without the .html # activate :directory_indexes # Automatic image dimensions on image_tag helper # activate :automatic_image_sizes # Easier bootstrap navbars activate :bootstrap_navbar activate :blog do |blog| # This will add a prefix to all links, template references and source paths # blog.prefix = "blog" # blog.permalink = "{year}/{month}/{day}/{title}.html" # Matcher for blog source files # blog.sources = "{year}-{month}-{day}-{title}.html" # blog.taglink = "tags/{tag}.html" blog.layout = "article_layout" # blog.summary_separator = /(READMORE)/ # blog.summary_length = 250 # blog.year_link = "{year}.html" # blog.month_link = "{year}/{month}.html" # blog.day_link = "{year}/{month}/{day}.html" # blog.default_extension = ".markdown" blog.tag_template = "tag.html" blog.calendar_template = "calendar.html" # Enable pagination # blog.paginate = true # blog.per_page = 10 # blog.page_link = "page/{num}" end page "/feed.xml", layout: false activate :drafts configure :development do activate :livereload end # Build-specific configuration configure :build do # Any files you want to ignore: ignore '/admin/*' ignore '/stylesheets/admin/*' # For example, change the Compass output style for deployment activate :minify_css # Minify Javascript on build activate :minify_javascript # Enable cache buster activate :asset_hash # Use relative URLs activate :relative_assets # Or use a different image path # set :http_prefix, "/blog/" end # This will push to the gh-pages branch of the repo, which will # host it on github pages (If this is a github repository) activate :deploy do |deploy| deploy.method = :git deploy.build_before = true end