diff --git a/404.html b/404.html deleted file mode 100644 index 6904bcd..0000000 --- a/404.html +++ /dev/null @@ -1 +0,0 @@ -Sorry this page does not exist =( diff --git a/README.md b/README.md index 2fb0614..475b1c9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1 @@ -# Hello, there! - -You probalbly don't want to see this, unlees you are interested in the HTML and CSS code of this website. The actual website is located at [http://geon.github.com](http://geon.github.com). - -It was built with [Jekyll Bootstrap](http://jekyllbootstrap.com). \ No newline at end of file +Published at [http://geon.github.io](http://geon.github.io). diff --git a/Rakefile b/Rakefile deleted file mode 100644 index 3abf4e9..0000000 --- a/Rakefile +++ /dev/null @@ -1,308 +0,0 @@ -require "rubygems" -require 'rake' -require 'yaml' -require 'time' - -SOURCE = "." -CONFIG = { - 'version' => "0.2.13", - 'themes' => File.join(SOURCE, "_includes", "themes"), - 'layouts' => File.join(SOURCE, "_layouts"), - 'posts' => File.join(SOURCE, "_posts"), - 'post_ext' => "md", - 'theme_package_version' => "0.1.0" -} - -# Path configuration helper -module JB - class Path - SOURCE = "." - Paths = { - :layouts => "_layouts", - :themes => "_includes/themes", - :theme_assets => "assets/themes", - :theme_packages => "_theme_packages", - :posts => "_posts" - } - - def self.base - SOURCE - end - - # build a path relative to configured path settings. - def self.build(path, opts = {}) - opts[:root] ||= SOURCE - path = "#{opts[:root]}/#{Paths[path.to_sym]}/#{opts[:node]}".split("/") - path.compact! - File.__send__ :join, path - end - - end #Path -end #JB - -# Usage: rake post title="A Title" [date="2012-02-09"] -desc "Begin a new post in #{CONFIG['posts']}" -task :post do - abort("rake aborted: '#{CONFIG['posts']}' directory not found.") unless FileTest.directory?(CONFIG['posts']) - title = ENV["title"] || "new-post" - slug = title.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '') - begin - date = (ENV['date'] ? Time.parse(ENV['date']) : Time.now).strftime('%Y-%m-%d') - rescue Exception => e - puts "Error - date format must be YYYY-MM-DD, please check you typed it correctly!" - exit -1 - end - filename = File.join(CONFIG['posts'], "#{date}-#{slug}.#{CONFIG['post_ext']}") - if File.exist?(filename) - abort("rake aborted!") if ask("#{filename} already exists. Do you want to overwrite?", ['y', 'n']) == 'n' - end - - puts "Creating new post: #{filename}" - open(filename, 'w') do |post| - post.puts "---" - post.puts "layout: post" - post.puts "title: \"#{title.gsub(/-/,' ')}\"" - post.puts 'description: ""' - post.puts "category: " - post.puts "tags: []" - post.puts "---" - post.puts "{% include JB/setup %}" - end -end # task :post - -# Usage: rake page name="about.html" -# You can also specify a sub-directory path. -# If you don't specify a file extention we create an index.html at the path specified -desc "Create a new page." -task :page do - name = ENV["name"] || "new-page.md" - filename = File.join(SOURCE, "#{name}") - filename = File.join(filename, "index.html") if File.extname(filename) == "" - title = File.basename(filename, File.extname(filename)).gsub(/[\W\_]/, " ").gsub(/\b\w/){$&.upcase} - if File.exist?(filename) - abort("rake aborted!") if ask("#{filename} already exists. Do you want to overwrite?", ['y', 'n']) == 'n' - end - - mkdir_p File.dirname(filename) - puts "Creating new page: #{filename}" - open(filename, 'w') do |post| - post.puts "---" - post.puts "layout: page" - post.puts "title: \"#{title}\"" - post.puts 'description: ""' - post.puts "---" - post.puts "{% include JB/setup %}" - end -end # task :page - -desc "Launch preview environment" -task :preview do - system "jekyll --auto --server" -end # task :preview - -# Public: Alias - Maintains backwards compatability for theme switching. -task :switch_theme => "theme:switch" - -namespace :theme do - - # Public: Switch from one theme to another for your blog. - # - # name - String, Required. name of the theme you want to switch to. - # The the theme must be installed into your JB framework. - # - # Examples - # - # rake theme:switch name="the-program" - # - # Returns Success/failure messages. - desc "Switch between Jekyll-bootstrap themes." - task :switch do - theme_name = ENV["name"].to_s - theme_path = File.join(CONFIG['themes'], theme_name) - settings_file = File.join(theme_path, "settings.yml") - non_layout_files = ["settings.yml"] - - abort("rake aborted: name cannot be blank") if theme_name.empty? - abort("rake aborted: '#{theme_path}' directory not found.") unless FileTest.directory?(theme_path) - abort("rake aborted: '#{CONFIG['layouts']}' directory not found.") unless FileTest.directory?(CONFIG['layouts']) - - Dir.glob("#{theme_path}/*") do |filename| - next if non_layout_files.include?(File.basename(filename).downcase) - puts "Generating '#{theme_name}' layout: #{File.basename(filename)}" - - open(File.join(CONFIG['layouts'], File.basename(filename)), 'w') do |page| - if File.basename(filename, ".html").downcase == "default" - page.puts "---" - page.puts File.read(settings_file) if File.exist?(settings_file) - page.puts "---" - else - page.puts "---" - page.puts "layout: default" - page.puts "---" - end - page.puts "{% include JB/setup %}" - page.puts "{% include themes/#{theme_name}/#{File.basename(filename)} %}" - end - end - - puts "=> Theme successfully switched!" - puts "=> Reload your web-page to check it out =)" - end # task :switch - - # Public: Install a theme using the theme packager. - # Version 0.1.0 simple 1:1 file matching. - # - # git - String, Optional path to the git repository of the theme to be installed. - # name - String, Optional name of the theme you want to install. - # Passing name requires that the theme package already exist. - # - # Examples - # - # rake theme:install git="https://github.com/jekyllbootstrap/theme-twitter.git" - # rake theme:install name="cool-theme" - # - # Returns Success/failure messages. - desc "Install theme" - task :install do - if ENV["git"] - manifest = theme_from_git_url(ENV["git"]) - name = manifest["name"] - else - name = ENV["name"].to_s.downcase - end - - packaged_theme_path = JB::Path.build(:theme_packages, :node => name) - - abort("rake aborted! - => ERROR: 'name' cannot be blank") if name.empty? - abort("rake aborted! - => ERROR: '#{packaged_theme_path}' directory not found. - => Installable themes can be added via git. You can find some here: http://github.com/jekyllbootstrap - => To download+install run: `rake theme:install git='[PUBLIC-CLONE-URL]'` - => example : rake theme:install git='git@github.com:jekyllbootstrap/theme-the-program.git' - ") unless FileTest.directory?(packaged_theme_path) - - manifest = verify_manifest(packaged_theme_path) - - # Get relative paths to packaged theme files - # Exclude directories as they'll be recursively created. Exclude meta-data files. - packaged_theme_files = [] - FileUtils.cd(packaged_theme_path) { - Dir.glob("**/*.*") { |f| - next if ( FileTest.directory?(f) || f =~ /^(manifest|readme|packager)/i ) - packaged_theme_files << f - } - } - - # Mirror each file into the framework making sure to prompt if already exists. - packaged_theme_files.each do |filename| - file_install_path = File.join(JB::Path.base, filename) - if File.exist? file_install_path - next if ask("#{file_install_path} already exists. Do you want to overwrite?", ['y', 'n']) == 'n' - else - mkdir_p File.dirname(file_install_path) - cp_r File.join(packaged_theme_path, filename), file_install_path - end - end - - puts "=> #{name} theme has been installed!" - puts "=> ---" - if ask("=> Want to switch themes now?", ['y', 'n']) == 'y' - system("rake switch_theme name='#{name}'") - end - end - - # Public: Package a theme using the theme packager. - # The theme must be structured using valid JB API. - # In other words packaging is essentially the reverse of installing. - # - # name - String, Required name of the theme you want to package. - # - # Examples - # - # rake theme:package name="twitter" - # - # Returns Success/failure messages. - desc "Package theme" - task :package do - name = ENV["name"].to_s.downcase - theme_path = JB::Path.build(:themes, :node => name) - asset_path = JB::Path.build(:theme_assets, :node => name) - - abort("rake aborted: name cannot be blank") if name.empty? - abort("rake aborted: '#{theme_path}' directory not found.") unless FileTest.directory?(theme_path) - abort("rake aborted: '#{asset_path}' directory not found.") unless FileTest.directory?(asset_path) - - ## Mirror theme's template directory (_includes) - packaged_theme_path = JB::Path.build(:themes, :root => JB::Path.build(:theme_packages, :node => name)) - mkdir_p packaged_theme_path - cp_r theme_path, packaged_theme_path - - ## Mirror theme's asset directory - packaged_theme_assets_path = JB::Path.build(:theme_assets, :root => JB::Path.build(:theme_packages, :node => name)) - mkdir_p packaged_theme_assets_path - cp_r asset_path, packaged_theme_assets_path - - ## Log packager version - packager = {"packager" => {"version" => CONFIG["theme_package_version"].to_s } } - open(JB::Path.build(:theme_packages, :node => "#{name}/packager.yml"), "w") do |page| - page.puts packager.to_yaml - end - - puts "=> '#{name}' theme is packaged and available at: #{JB::Path.build(:theme_packages, :node => name)}" - end - -end # end namespace :theme - -# Internal: Download and process a theme from a git url. -# Notice we don't know the name of the theme until we look it up in the manifest. -# So we'll have to change the folder name once we get the name. -# -# url - String, Required url to git repository. -# -# Returns theme manifest hash -def theme_from_git_url(url) - tmp_path = JB::Path.build(:theme_packages, :node => "_tmp") - abort("rake aborted: system call to git clone failed") if !system("git clone #{url} #{tmp_path}") - manifest = verify_manifest(tmp_path) - new_path = JB::Path.build(:theme_packages, :node => manifest["name"]) - if File.exist?(new_path) && ask("=> #{new_path} theme package already exists. Override?", ['y', 'n']) == 'n' - remove_dir(tmp_path) - abort("rake aborted: '#{manifest["name"]}' already exists as theme package.") - end - - remove_dir(new_path) if File.exist?(new_path) - mv(tmp_path, new_path) - manifest -end - -# Internal: Process theme package manifest file. -# -# theme_path - String, Required. File path to theme package. -# -# Returns theme manifest hash -def verify_manifest(theme_path) - manifest_path = File.join(theme_path, "manifest.yml") - manifest_file = File.open( manifest_path ) - abort("rake aborted: repo must contain valid manifest.yml") unless File.exist? manifest_file - manifest = YAML.load( manifest_file ) - manifest_file.close - manifest -end - -def ask(message, valid_options) - if valid_options - answer = get_stdin("#{message} #{valid_options.to_s.gsub(/"/, '').gsub(/, /,'/')} ") while !valid_options.include?(answer) - else - answer = get_stdin(message) - end - answer -end - -def get_stdin(message) - print message - STDIN.gets.chomp -end - -#Load custom rake scripts -Dir['_rake/*.rake'].each { |r| load r } diff --git a/_config.yml b/_config.yml index 7b1c76a..ad70c55 100644 --- a/_config.yml +++ b/_config.yml @@ -1,129 +1,31 @@ -# This is the default format. -# For more see: https://github.com/mojombo/jekyll/wiki/Permalinks -permalink: /:categories/:year/:month/:day/:title - -exclude: [".rvmrc", ".rbenv-version", "README.md", "Rakefile", "changelog.md"] -# markdown: redcarpet -# redcarpet: -# extensions: ["fenced_code_blocks"] -highlighter: rouge +remote_theme: pages-themes/slate@v0.2.0 +plugins: + - jekyll-remote-theme # add this line to the plugins list if you already have one +show_downloads: false +# This is the default format. +# For more see: https://github.com/mojombo/jekyll/wiki/Permalinks +permalink: /:categories/:year/:month/:day/:title -# Themes are encouraged to use these universal variables +# Themes are encouraged to use these universal variables # so be sure to set them if your theme uses them. # -title : geon -tagline: Site Tagline -author : - name : Victor Widell - email : victor@topmost.se - github : geon +title: geon +# tagline: Site Tagline +# description: [A short description of your site's purpose] +author: + name: Victor Widell + email: victor_widell@gmail.com + github: geon # twitter : username # feedburner : feedname # The production_url is only used when full-domain names are needed -# such as sitemap.txt +# such as sitemap.txt # Most places will/should use BASE_PATH to make the urls # # If you have set a CNAME (pages.github.com) set your custom domain here. # Else if you are pushing to username.github.com, replace with your username. # Finally if you are pushing to a GitHub project page, include the project name at the end. # -production_url : http://geon.github.io - -# All Jekyll-Bootstrap specific configurations are namespaced into this hash -# -JB : - version : 0.2.13 - - # All links will be namespaced by BASE_PATH if defined. - # Links in your website should always be prefixed with {{BASE_PATH}} - # however this value will be dynamically changed depending on your deployment situation. - # - # CNAME (http://yourcustomdomain.com) - # DO NOT SET BASE_PATH - # (urls will be prefixed with "/" and work relatively) - # - # GitHub Pages (http://username.github.com) - # DO NOT SET BASE_PATH - # (urls will be prefixed with "/" and work relatively) - # - # GitHub Project Pages (http://username.github.com/project-name) - # - # A GitHub Project site exists in the `gh-pages` branch of one of your repositories. - # REQUIRED! Set BASE_PATH to: http://username.github.com/project-name - # - # CAUTION: - # - When in Localhost, your site will run from root "/" regardless of BASE_PATH - # - Only the following values are falsy: ["", null, false] - # - When setting BASE_PATH it must be a valid url. - # This means always setting the protocol (http|https) or prefixing with "/" - BASE_PATH : false - - # By default, the asset_path is automatically defined relative to BASE_PATH plus the enabled theme. - # ex: [BASE_PATH]/assets/themes/[THEME-NAME] - # - # Override this by defining an absolute path to assets here. - # ex: - # http://s3.amazonaws.com/yoursite/themes/watermelon - # /assets - # - ASSET_PATH : false - - # These paths are to the main pages Jekyll-Bootstrap ships with. - # Some JB helpers refer to these paths; change theme here if needed. - # - archive_path: /archive.html - categories_path : /categories.html - tags_path : /tags.html - - # Settings for comments helper - # Set 'provider' to the comment provider you want to use. - # Set 'provider' to false to turn commenting off globally. - # - comments : - provider : disqus - disqus : - short_name : geon - livefyre : - site_id : 123 - intensedebate : - account : 123abc - facebook : - appid : 123 - num_posts: 5 - width: 580 - colorscheme: light - - # Settings for analytics helper - # Set 'provider' to the analytics provider you want to use. - # Set 'provider' to false to turn analytics off globally. - # - analytics : - provider : google - google : - tracking_id : 'UA-30669465-1' - getclicky : - site_id : - mixpanel : - token : '_MIXPANEL_TOKEN_' - - # Settings for sharing helper. - # Sharing is for things like tweet, plusone, like, reddit buttons etc. - # Set 'provider' to the sharing provider you want to use. - # Set 'provider' to false to turn sharing off globally. - # - sharing : - provider : false - - # Settings for all other include helpers can be defined by creating - # a hash with key named for the given helper. ex: - # - # pages_list : - # provider : "custom" - # - # Setting any helper's provider to 'custom' will bypass the helper code - # and include your custom code. Your custom file must be defined at: - # ./_includes/custom/[HELPER] - # where [HELPER] is the name of the helper you are overriding. - +production_url: http://geon.github.io diff --git a/_includes/JB/analytics b/_includes/JB/analytics deleted file mode 100644 index 4b04ec9..0000000 --- a/_includes/JB/analytics +++ /dev/null @@ -1,14 +0,0 @@ -{% if site.safe and site.JB.analytics.provider and page.JB.analytics != false %} - -{% case site.JB.analytics.provider %} -{% when "google" %} - {% include JB/analytics-providers/google %} -{% when "getclicky" %} - {% include JB/analytics-providers/getclicky %} -{% when "mixpanel" %} - {% include JB/analytics-providers/mixpanel %} -{% when "custom" %} - {% include custom/analytics %} -{% endcase %} - -{% endif %} \ No newline at end of file diff --git a/_includes/JB/analytics-providers/getclicky b/_includes/JB/analytics-providers/getclicky deleted file mode 100644 index e9462f4..0000000 --- a/_includes/JB/analytics-providers/getclicky +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/_includes/JB/analytics-providers/google b/_includes/JB/analytics-providers/google deleted file mode 100644 index 9014866..0000000 --- a/_includes/JB/analytics-providers/google +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/_includes/JB/analytics-providers/mixpanel b/_includes/JB/analytics-providers/mixpanel deleted file mode 100644 index 4406eb0..0000000 --- a/_includes/JB/analytics-providers/mixpanel +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/_includes/JB/categories_list b/_includes/JB/categories_list deleted file mode 100644 index 83be2e2..0000000 --- a/_includes/JB/categories_list +++ /dev/null @@ -1,37 +0,0 @@ -{% comment %}{% endcomment %} - -{% if site.JB.categories_list.provider == "custom" %} - {% include custom/categories_list %} -{% else %} - {% if categories_list.first[0] == null %} - {% for category in categories_list %} -
  • - {{ category | join: "/" }} {{ site.categories[category].size }} -
  • - {% endfor %} - {% else %} - {% for category in categories_list %} -
  • - {{ category[0] | join: "/" }} {{ category[1].size }} -
  • - {% endfor %} - {% endif %} -{% endif %} -{% assign categories_list = nil %} \ No newline at end of file diff --git a/_includes/JB/comments b/_includes/JB/comments deleted file mode 100644 index 4e9e600..0000000 --- a/_includes/JB/comments +++ /dev/null @@ -1,16 +0,0 @@ -{% if site.JB.comments.provider and page.comments != false %} - -{% case site.JB.comments.provider %} -{% when "disqus" %} - {% include JB/comments-providers/disqus %} -{% when "livefyre" %} - {% include JB/comments-providers/livefyre %} -{% when "intensedebate" %} - {% include JB/comments-providers/intensedebate %} -{% when "facebook" %} - {% include JB/comments-providers/facebook %} -{% when "custom" %} - {% include custom/comments %} -{% endcase %} - -{% endif %} \ No newline at end of file diff --git a/_includes/JB/comments-providers/disqus b/_includes/JB/comments-providers/disqus deleted file mode 100644 index 618a7b7..0000000 --- a/_includes/JB/comments-providers/disqus +++ /dev/null @@ -1,14 +0,0 @@ -
    - - -blog comments powered by Disqus diff --git a/_includes/JB/comments-providers/facebook b/_includes/JB/comments-providers/facebook deleted file mode 100644 index 6b3e5e0..0000000 --- a/_includes/JB/comments-providers/facebook +++ /dev/null @@ -1,9 +0,0 @@ -
    - -
    \ No newline at end of file diff --git a/_includes/JB/comments-providers/intensedebate b/_includes/JB/comments-providers/intensedebate deleted file mode 100644 index ab0c3c9..0000000 --- a/_includes/JB/comments-providers/intensedebate +++ /dev/null @@ -1,6 +0,0 @@ - - diff --git a/_includes/JB/comments-providers/livefyre b/_includes/JB/comments-providers/livefyre deleted file mode 100644 index 704b803..0000000 --- a/_includes/JB/comments-providers/livefyre +++ /dev/null @@ -1,6 +0,0 @@ - - \ No newline at end of file diff --git a/_includes/JB/liquid_raw b/_includes/JB/liquid_raw deleted file mode 100644 index a5c1783..0000000 --- a/_includes/JB/liquid_raw +++ /dev/null @@ -1,32 +0,0 @@ -{% comment%}{% endcomment%} - -{% if site.JB.liquid_raw.provider == "custom" %} - {% include custom/liquid_raw %} -{% else %} -
    {{text | replace:"|.", "{" | replace:".|", "}" | replace:">", ">" | replace:"<", "<" }}
    -{% endif %} -{% assign text = nil %} \ No newline at end of file diff --git a/_includes/JB/pages_list b/_includes/JB/pages_list deleted file mode 100644 index 42f827a..0000000 --- a/_includes/JB/pages_list +++ /dev/null @@ -1,39 +0,0 @@ -{% comment %}{% endcomment %} - -{% if site.JB.pages_list.provider == "custom" %} - {% include custom/pages_list %} -{% else %} - {% for node in pages_list %} - {% if node.title != null %} - {% if group == null or group == node.group %} - {% if page.url == node.url %} -
  • {{node.title}}
  • - {% else %} -
  • {{node.title}}
  • - {% endif %} - {% endif %} - {% endif %} - {% endfor %} -{% endif %} -{% assign pages_list = nil %} -{% assign group = nil %} \ No newline at end of file diff --git a/_includes/JB/posts_collate b/_includes/JB/posts_collate deleted file mode 100644 index f612ade..0000000 --- a/_includes/JB/posts_collate +++ /dev/null @@ -1,55 +0,0 @@ -{% comment %}{% endcomment %} - -{% if site.JB.posts_collate.provider == "custom" %} - {% include custom/posts_collate %} -{% else %} - {% for post in posts_collate %} - {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} - {% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %} - {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %} - {% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %} - - {% if forloop.first %} -

    {{this_year}}

    -

    {{this_month}}

    - - {% else %} - {% if this_year != next_year %} - -

    {{next_year}}

    -

    {{next_month}}

    - -

    {{next_month}}

    -