{"id":16593934,"url":"https://github.com/atilafassina/blogium","last_synced_at":"2025-03-21T13:31:45.121Z","repository":{"id":58240023,"uuid":"67956104","full_name":"atilafassina/blogium","owner":"atilafassina","description":"📚 Medium as your CMS","archived":false,"fork":false,"pushed_at":"2017-10-06T21:38:57.000Z","size":136,"stargazers_count":22,"open_issues_count":2,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-16T17:10:15.888Z","etag":null,"topics":["cms","medium","writing"],"latest_commit_sha":null,"homepage":"https://medium.com/@atilafassina/introducing-blogium-d6ee1a343919","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atilafassina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-11T21:46:04.000Z","updated_at":"2023-03-06T13:16:48.000Z","dependencies_parsed_at":"2022-08-31T03:02:02.033Z","dependency_job_id":null,"html_url":"https://github.com/atilafassina/blogium","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atilafassina%2Fblogium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atilafassina%2Fblogium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atilafassina%2Fblogium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atilafassina%2Fblogium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atilafassina","download_url":"https://codeload.github.com/atilafassina/blogium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141580,"owners_count":20404835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cms","medium","writing"],"created_at":"2024-10-11T23:44:32.061Z","updated_at":"2025-03-21T13:31:44.827Z","avatar_url":"https://github.com/atilafassina.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"http://atilafassina.com/blogium\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/atilafassina/blogium/blob/master/blogium.png?raw=true\" alt=\"logo-Blogium\" /\u003e\u003c/a\u003e\n[![Build Status](https://img.shields.io/travis/atilafassina/blogium/master.svg?style=flat)](https://travis-ci.org/atilafassina/blogium)\n\n\u003e DEPRECATED: to use this, please refer to [Blogium-Service/examples/vanilla](https://github.com/atilafassina/blogium-service/tree/master/examples/vanilla)\n\n## Install\n\n- as a script inclusion\n\n```html\n\u003cscript src=\"./dist/blogium.js\"\u003e\u003c/script\u003e\n```\n\n- as an npm package\n```\nyarn add blogium\n```\nor\n```\nnpm i --save blogium\n```\n\n- as a bower package\n```\nbower i --save blogium\n```\n\nAlternatively, you can always download a [.zip file](https://github.com/atilafassina/blogium/archive/master.zip)\n\n---\n\n## Get started\n\nAfter including the script anyway suited you best, just instantiate `Blogium` with the desired set of options\n\n```js\nconst blog = new Blogium(options);\n```\n\n## Basic Usage\n\n**Blogium** fires `success` and `error` event for the post request, you can listen to them:\n\n```js\nblog.on('blogium.success', response =\u003e { console.info('I have posts!', response) });\nblog.on('blogium.error',   response =\u003e { console.error('Oops, something has gone wrong', response) });\n```\n\n## Options\n\n### host (string)\nYou can pass a string to what will be considered by **Blogium** your root host.\n\n**Default**: `document.location.host`\n    \n### targetBlank (boolean)\nIf you want to set all outbound links (not directed to your host) as `_blank`.\n\n**Default**: `true`\n\n### username (string)\nThe [Medium](https://medium.com/) handler to fetch the RSS Feed from.\n\n**Default**: **@Medium**\n\n### moreBtn (string)\n`id` to the more vouchers button.\n\n**Default**: `#moreBtn`\n\n### Wrapper (class)\n`class` to the element(s) posts will be appended in.\n\n**Default**: `.mediumWrap`\n\n### defaultTemplate (boolean)\nWeather to use the default template to list the posts or handle the data by yourself\n\n**Default**: `true`\n\n### postLimit (number)\nNumber of posts to be listed on each view. (infinite scroll is always on, posts are all cached on first request)\n\n**Default**: `5`\n\n### showCategories (boolean)\nShow Medium categories for each post.\n\n**Default**: `true`\n\n---\n\n[MIT License - Atila Fassina](https://atilafassina.mit-license.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatilafassina%2Fblogium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatilafassina%2Fblogium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatilafassina%2Fblogium/lists"}