         else
           host = hostname
 
-        settings.get 'githubs', host
+        settings.get 'sites', host
 
       default: -> settings.get 'default'
 


      save_gist: (gist, options={}) ->
        github_host = options.github ? github.default()
        gh = settings.get 'githubs', github_host
        http.post github.to_api_url(gh, '/gists'), gist

      to_api_url: (instance, path, params={}) ->
        result = URI("#{instance.api_base_url}#{path}").setQuery(params)
        result.setQuery('access_token', instance.access_token) if instance.access_token?
        result

      to_gist_url: (gist) ->

# types of github urls
#
# github.com
#   gist.github.com/also/5794205
