Skip to content

cleverdevil/microgram

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Microgram

Code used for creating a "Photo Index" page for a Micro.blog hosted website.

Currently used on my wife's site.

To use, simply create a page on your Micro.blog website with the following content:

<link type="text/css" rel="stylesheet" href="https://microgram.cleverdevil.io/css" />

<div id="microgram">
  Loading ...
</div>

<script src="https://microgram.cleverdevil.io/js"></script>

This will inject some JavaScript into the page, which will then discover and crawl your feeds for photos and populate the content for you.

By default, thumbnails will be rendered as 200x200 pixel squares. If you'd like, you can change this by passing a size parameter to the CSS include like so:

<link type="text/css" rel="stylesheet" href="https://microgram.cleverdevil.io/css?size=300" />

Note: this is still relatively experimental, and has some assumptions baked in that need to be made configurable on a per-website basis.

Having a Problem?

If you're experiencing a problem, feel free to open a bug. The most common issue tends to be when Micro.blog's own image proxy service is down. If that happens, your photo grid will appear to load, but no images will actually show up. Generally speaking, this resolves itself quickly!

About

Extension for Micro.blog hosted websites to add a photo index page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published