Giter Club home page Giter Club logo

blogs.osm.org's Introduction

#OpenStreetMap Blogs listing Code for blogs.osm.org

Intro

Main scripts for updating the OSM blogs instance running on the pluto software.

Requirements

Install the ruby requirements (assuming bundler is already installed)

bundle install

Initial build

Run the following command to build the site for the first time:

pluto build -t osm -o build

The site will be built into the build folder using the osm template. The information about the feeds is stored in an SQLite database in the file planet.db, which is kept out of git.

Subsequent updates

Thereafter you run the smaller update command each say hour:

pluto update

You need to run the build command each time there is an update of theme, or list of planet feeds.

Theme

The OSM theme is avilable in the theme folder, thus is available by default. You can check this by running

pluto list

The theme was started by taking the blank template, and also merging in the feeds template

To update the CSS in the theme, update the Sass, as documented at the start of the relevant file.

blogs.osm.org's People

Contributors

smsm1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

gravitystorm

blogs.osm.org's Issues

Suggestion: Use "New" (Standard) Planet Configuration Format , that is, INI instead of YML

Hello,
Sorry to tell you that the yaml configuration format is deprecated (not recommend). Why? It's usually easier to use the INI format. I invite you to change the planet.yml to planet.ini. For example, convert

 title: OpenStreetMap Blogs

 shaun_mcdonald:
   title: Shaun McDonald
   link: http://blog.shaunmcdonald.me.uk/
   feed: http://blog.shaunmcdonald.me.uk/feed/
   twitter: smsm1

 mapbox:
   title: Mapbox Blog
   link: https://www.mapbox.com/blog/
   feed: https://www.mapbox.com/blog/blog.rss
   twitter: mapbox

to

 title=OpenStreetMap Blogs

 [shaun_mcdonald]
   title=Shaun McDonald
   link=http://blog.shaunmcdonald.me.uk/
   feed=http://blog.shaunmcdonald.me.uk/feed/
   twitter=smsm1

 [mapbox]
   title=Mapbox Blog
   link=https://www.mapbox.com/blog/
   feed=https://www.mapbox.com/blog/blog.rss
   twitter=mapbox

Should not take more than a couple of minutes. If I can be of any help let me know. Cheers.

massive images

A lot of blogs and diaries seem to feed MASSIVE images. I presume that's because source blogs generally will scale down a big image (or get the browser to do so) ...but blogs.osm.org does not

Suggestion: Delete Rakefile

Hello,
FYI: Just a minor issue: Looking at the repo it looks like the Rakefile has no purpose. Why keep it around? May I suggest deleting it to avoid confusion. Cheers.

">" html entity escaping in titles

minor thing I just noticed.
This diary title comes though slightly wrong on blogs.osm.org We see ">" instead of ">" (double escaped I guess). This might actually be bug in the RSS feed from the OSM diaries. Not sure if the problem only applies to titles or the body text too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.