Git Product home page Git Product logo

create-a-blogger-archive-page's Introduction

Make Archive Page in Blogger

This little piece of JavaScript takes JSON from the the Google API for Blogger and outputs html that can be interpretted by the blogging platform to produce a hyperlinked list of blog titles followed by the date. An example might be

GitHub for Mac 1.2: Snow Octocat (March 2, 2012)

(Provided the GitHub blog were on Blogger.)

The archive style was inspired by the ET notebooks by Edward Tufte.

How to implement it

If your blog is at the site

http://thisisanawesomeblog.blogspot.com

then you copy and paste the following the code into your the html for your new page in Blogger:

<script type="text/javascript" src="http://cloud.github.com/downloads/jhwilson/Create-a-Blogger-archive-page/Make-Blogger-Archive-Page.js">
</script>
<script src="http://thisisanawesomeblog.blogspot.com/feeds/posts/default?max-results=500&amp;alt=json-in-script&amp;callback=LoadTheArchive">
</script>

Remember to change the code in the second script call to match your blog URL!

create-a-blogger-archive-page's People

Contributors

jhwilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

create-a-blogger-archive-page's Issues

Not Working

I made sure to change the second part to my blog url, however nothing shows up on the page.

requires a couple of minor changes to work circa 2021

The code in the Readme does not currently work as-is.

1- The word "cloud." needs to be removed from the line that contains
"...src="http://cloud.github.com..."

2- As mentioned in this article: https://too-clever-by-half.blogspot.com/2016/11/the-secret-500-item-blogger-feed.html Blogger seems to paginate its feeds at 150 posts per chunk now, rather than 500, so to get all posts for a site with over 150, you need to specify the full range of posts in multiple lines of 150 each.

Here is the exact code that worked for me (you'll need to change it to use your blog's URL) :

<script src="http://github.com/downloads/jhwilson/Create-a-Blogger-archive-page/Make-Blogger-Archive-Page.js" type="text/javascript"> </script>

<script src="http://persimmonforge.blogspot.com/feeds/posts/default?max-results=150&amp;start-index=1&amp;alt=json-in-script&amp;callback=LoadTheArchive"> </script>

<script src="http://persimmonforge.blogspot.com/feeds/posts/default?max-results=150&amp;start-index=151&amp;alt=json-in-script&amp;callback=LoadTheArchive"> </script>

<script src="http://persimmonforge.blogspot.com/feeds/posts/default?max-results=150&amp;start-index=301&amp;alt=json-in-script&amp;callback=LoadTheArchive"> </script>

<script src="http://persimmonforge.blogspot.com/feeds/posts/default?max-results=150&amp;start-index=451&amp;alt=json-in-script&amp;callback=LoadTheArchive"> </script>

etc.

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.