Skip to content

Instantly share code, notes, and snippets.

View gavinrozzi's full-sized avatar

Gavin Rozzi gavinrozzi

View GitHub Profile

Keybase proof

I hereby claim:

  • I am gavinrozzi on github.
  • I am gcr (https://keybase.io/gcr) on keybase.
  • I have a public key whose fingerprint is 506E 8357 3BCA 2AE3 D69A 8B1D 5DA2 A929 9887 A4C6

To claim this, I am signing this object:

@gavinrozzi
gavinrozzi / alaveteli-json-with-hugo.md
Last active February 25, 2018 06:30
Using Alaveteli JSON feeds with Hugo data-driven content

Using Alaveteli JSON feeds with Hugo data-driven content

The open source Alaveteli software provides JSON endpoints for feeds of information about freedom information requests sent through an installation. The following snippet of code is a Hugo partial that I created for my personal website to implement this.

To see this code in action, visit this page.

To implement this code, enter the following into a shortcode HTML file on your Hugo-based website. Call the shortcode on any page you wish.

  • Replace 'https://opramachine.com' with the URL of your Alaveteli installation.
  • Replace 'YOUR_USER' with your username from your Alaveteli installation.