{"id":17157283,"url":"https://github.com/corroded/wedsite","last_synced_at":"2025-03-24T14:18:55.049Z","repository":{"id":138083840,"uuid":"2261685","full_name":"corroded/wedsite","owner":"corroded","description":"Our wedsite -- using the ruby-slippers engine by dreamr","archived":false,"fork":false,"pushed_at":"2011-10-29T18:07:32.000Z","size":5524,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T19:14:22.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/corroded.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-24T13:26:44.000Z","updated_at":"2014-03-03T07:12:20.000Z","dependencies_parsed_at":"2023-03-30T06:22:55.291Z","dependency_job_id":null,"html_url":"https://github.com/corroded/wedsite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corroded%2Fwedsite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corroded%2Fwedsite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corroded%2Fwedsite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corroded%2Fwedsite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corroded","download_url":"https://codeload.github.com/corroded/wedsite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245284730,"owners_count":20590307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T22:08:44.711Z","updated_at":"2025-03-24T14:18:55.023Z","avatar_url":"https://github.com/corroded.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"RubySlippers, the smartest blogging engine in all of Oz!\n================\n[website](http://ruby-slippers.heroku.com)\n\nRubySlippers is a git powered blog engine that aims to be simply to modify and more importantly, simple and quick and free to get a blog going. I am currently using it to run several blogs in production, you can see one in action here:\n\n[www.ninjaconfessions.com](www.ninjaconfessions.com) - My ruby blog\n\nIntroduction\n------------\n\n### To set up a new blog\n\n    $ git clone git://github.com/dreamr/ruby-slippers.git myblog\n    $ cd myblog\n    $ gem install bundler\n    $ bundle\n    $ rake install\n    $ -\u003e Blog name: My new blog\n    $ Installing your blog to my-new-blog\n    $ Blog installed!\n    \n    \n### To create an article\n\n    $ rake new\n    $ -\u003e Title: My new blog post!\n    $ Creating and opening my-new-blog-post (opens in your text editor!)\n    $ rake publish (commits, pushes, publishes then opens in your browser!)\n\nDeployment\n==========\n\n### On Heroku\n\nRubySlippers comes with a basic rackup file. To start it up locally do:\n\n    $ git remote add origin git@heroku:you-app-name\n    $ git commit -m \"my new awesome commit\"\n    $ git push\n\n### On your own server\n\nOnce you have created the remote git repo, and pushed your changes to it, you can run RubySlippers with any Rack compliant web server, such as **thin**, **mongrel** or **unicorn**.\n\nI use [shotgun](https://github.com/rtomayko/shotgun):\n\n    $ shotgun\n    \nWith thin, you would do something like:\n\n    $ thin start -R config.ru\n\nWith unicorn, you can just do:\n\n    $ unicorn\n\n\n#### Configuration\n\nYou can configure ruby-slippers, by modifying the _config.ru_ file. For example, if you want to set the blog author to 'John Galt',\nyou could add `set :author, 'John Galt'` inside the `RubySlippers::Engine::App.new` block. Here are the defaults, to get you started:\n\n    set :author,      ENV['USER']                               # blog author\n    set :title,       Dir.pwd.split('/').last                   # site title\n    set :url,         'http://example.com'                      # site root URL\n    set :prefix,      ''                                        # common path prefix for all pages\n    set :root,        \"index\"                                   # page to load on /\n    set :date,        lambda {|now| now.strftime(\"%d/%m/%Y\") }  # date format for articles\n    set :markdown,    :smart                                    # use markdown + smart-mode\n    set :disqus,      false                                     # disqus id, or false\n    set :summary,     :max =\u003e 150, :delim =\u003e /~\\n/              # length of article summary and delimiter\n    set :ext,         'txt'                                     # file extension for articles\n    set :cache,       28800                                     # cache site for 8 hours\n\n    set :to_html   do |path, page, ctx|                         # returns an html, from a path \u0026 context\n      ERB.new(File.read(\"#{path}/#{page}.html.erb\")).result(ctx)\n    end\n\n    set :error     do |code|                                    # The HTML for your error page\n      \"\u003cfont style='font-size:300%'\u003eA large house has landed on you. You cannot continue because you are dead. \u003ca href='/'\u003etry again\u003c/a\u003e (#{code})\u003c/font\u003e\"\n    end\n\nPhilosophy\n----------\n\nRubySlippers is based on [Toto](http://github.com/cloudhead/toto) and aims to achieve their goals as well as our own. Hosting a ruby based free blog shouldn't be hard. We want to take that a step further and say it should be easy. Easy as pie. Easy as my best friend's Mom. Easy as a 1 click installer.\n\nOh yeah, MRI, bytecode whatever. If it is Ruby, it should run.\n\n### How it works\n\n- Article management is done with a text editor and git\n  * stored as _.txt_ files, with embeded metadata (in yaml format).\n  * processed through a markdown converter (rdiscount) by default.\n  * can have tags\n  * can have images\n  * can be browsed by date, or tags\n  * comments are handled by [disqus](http://disqus.com)\n- built for easy use with _ERB_.\n- built right on top of _Rack_.\n- built to take advantage of _HTTP caching_.\n- built with _heroku_ in mind.\n\n\nRubySlippers comes with a basic default theme for you to mangle. I hope to release more themes shortly and will accept your submitted themes.\n\n### Thanks\n\n* To heroku for making this easy as pie.\n* To the developers of [Toto](http://github.com/cloudhead/toto), for making such an awesome minimal blog engine in Ruby.\n\nCopyright (c) 2011 dreamr. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorroded%2Fwedsite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorroded%2Fwedsite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorroded%2Fwedsite/lists"}