Skip to content

kernelle/BlogOnLemmy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lemmydocs 7:4 – Thou shall create a blog

Usage

The developement constraints and a more in-depth analysis is described in my blog post about BlogOnLemmy.

- Personalizing

  • index.html: edit as you wish
  • assets/js/index.js, only the top global variables are required
  • Basic knowledge of HTML and JS is required for now to personalise the site

- Optional: Combining, Minifiying and Compressing

  • Requirements: node, html-minifier, inliner and brotli
  • Combines and minifies all HTML, CSS and javascript into one file
$ npm install html-minifier inliner
$ node minify_all_code.js
$ brotli index.html

(Pre-compressed files need to be enabled on the server to deploy the index.html.br file)

Or in a shell:

$ ./build.sh

Features

  • HTML, CSS and ES6 JavaScript. That's it.
  • Linked to a user using Lemmy’s API, no authentication
  • Host content on any instance
  • Category filters: Set one or more community as the categories
  • Easy to adapt to any profile
  • One page constraint
  • Anchor navigation
  • Permalinks
  • Responsive
  • Dark / Light mode
  • No cookies or tracking
  • Interactive “about me”
  • No backend: serving a single lightweight page that can be hosted anywhere, including GitHub
  • Error page if all servers are down
  • Combining & Minification using a node script
  • Bash file to build the site into one file and compress with brotli

Latest Features

  • 'All'-button enables all filters (I'll also add posts which don't fit other filters here as well)
  • Expand a video embedded in the site
  • Navbar icons now copy the links to clipboard instead of opening (Link remains so middle/right click still behave as a link)
  • Share button next to permalinks also copy to clipboard
  • Mirrors: Set multiple Lemmy instances for the API as redundancy

Known Issues

  • Possible compatibility issues with older iOS devices. Let me know if you encounter an issue!
  • Markdown: \ are not escaped correctly
  • Markdown: Numbered list headers spaced far apart don't count up (all stay 1)

Posts about BlogOnLemmy

How I made a blog using Lemmy - a write-up

BlogOnLemmy - I made my Blog using Lemmy's API

About

A minimalistic blog front-end for Lemmy (federated social media) with a one page constraint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published