mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Plug neocitizen for API, sort HTML first for file changes, Tumblr share link
This commit is contained in:
parent
7eee0f062d
commit
084a09c688
3 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,7 @@ class SiteChange < Sequel::Model
|
|||
one_to_many :site_change_files
|
||||
|
||||
def site_change_filenames(limit=4)
|
||||
site_change_files[0..limit-1].collect {|f| f.filename}
|
||||
site_change_files[0..limit-1].collect {|f| f.filename}.sort_by {|f| f.match('html') ? 0 : 1}
|
||||
end
|
||||
|
||||
def self.record(site, filename)
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
There are client libraries available for popular programming languages to make it easier to work with the API:
|
||||
<ul>
|
||||
<li><a href="https://github.com/neocities/neocities-node" target="_blank">Node.js / JavaScript</a></li>
|
||||
<li><a href="https://github.com/neocities/neocities-ruby" target="_blank">Ruby</a></li>
|
||||
<li><a href="https://github.com/aergonaut/neocitizen" target="_blank">Ruby</a> - contributed by <a href="" target="_blank"></a></li>
|
||||
<li><a href="https://github.com/peterhellberg/neocities" target="_blank">Go</a> - contributed by <a href="https://twitter.com/peterhellberg" target="_blank">Peter Hellberg</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
<a href="https://twitter.com/intent/tweet?<%= Rack::Utils.build_query(text: "This site is awesome: http://#{site.username}.neocities.org") %>">Twitter</a>
|
||||
<br>
|
||||
<a href="http://www.reddit.com/submit?<%= Rack::Utils.build_query(title: "#{site.username}.neocities.org", url: "http://#{site.username}.neocities.org" )%>" target="_blank">Reddit</a>
|
||||
<br>
|
||||
<a href="http://www.tumblr.com/share?<%= Rack::Utils.build_query(v: 3, u: "http://#{site.username}.neocities.org", t: "#{site.username}.neocities.org") %>" target="_blank">Tumblr</a>
|
||||
'>
|
||||
<span>Share</span></a>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue