{"id":18535903,"url":"https://github.com/insipx/jekyll-react","last_synced_at":"2026-03-10T22:09:03.140Z","repository":{"id":56878537,"uuid":"77934800","full_name":"insipx/Jekyll-React","owner":"insipx","description":"A Jekyll Plugin which converts config variables and pages to JSON for use with Javascript","archived":false,"fork":false,"pushed_at":"2018-06-08T19:00:17.000Z","size":73,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-01T18:05:17.559Z","etag":null,"topics":["api","dynamic","jekyll-plugin","json","liquid","react","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/insipx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-03T16:39:42.000Z","updated_at":"2021-05-24T14:52:54.000Z","dependencies_parsed_at":"2022-08-20T23:10:13.739Z","dependency_job_id":null,"html_url":"https://github.com/insipx/Jekyll-React","commit_stats":null,"previous_names":["insidiousmind/config-to-json-jekyll-plugin","insidiousmind/jekyll-react"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insipx%2FJekyll-React","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insipx%2FJekyll-React/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insipx%2FJekyll-React/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insipx%2FJekyll-React/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insipx","download_url":"https://codeload.github.com/insipx/Jekyll-React/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248058210,"owners_count":21040719,"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":["api","dynamic","jekyll-plugin","json","liquid","react","ruby"],"created_at":"2024-11-06T19:28:22.136Z","updated_at":"2026-03-10T22:09:03.076Z","avatar_url":"https://github.com/insipx.png","language":"Ruby","readme":"## Config to JSON Jekyll Plugin\n\nThis is a Jekyll plugin which will generate a JSON file of select configuration variables, along with Pages and output it into /api/config/config.json (if it's a config variable) and (if it's a page) path/to/page.json of the destination folder\n\nto add properties to be generated, simply edit your `_config.yml`\n\nThis Plugin was inspired by https://github.com/18F/jekyll_pages_api\n  This plugin was made out of a custom-use-case (Jekyll and ReactJS) that I think does not belong in the jekyll_pages_api plugin,\n  however, if 18F decides that this functionality would be welcome in their plugin, I would be more than happy to contribute (Though, i'm not the best at Ruby)\n\nThis plugin was originally made for integration with React.js, so information to be generated should go under 'react' in your YAML. Nevertheless, it can be used for whatever you want\n\nEX:\n\n```\nreact:\n  title: My Awesome Website\n  email: crazy_guy@mysterious_people.com\n  baseurl: \"\"\n  url: www.example.com\n```\n\n\nIf you want to make a page dynamic, add 'render: dynamic' to your Frontmatter of the page.\n\nWARNING: This will *not* render the page as Static HTML anymore. Instead, the page's content will be rendered to Liquid and dropped into a JSON file at the same path (IE If you're page is at http://www.example.com/path/to/page.html, the json file will be at http://www.example.com/path/to/page.json)\n\n\nExample:\n\n```\n---\nlayout: default\ntitle: About\npermalink: about/\nrender: dynamic\n---\n```\n\nthen you can write your page in Markdown as you normally would (you can even use your own custom or standard Liquid Tags as you would with Jekyll) and the page will be rendered\n\n\n\n---\n\n### TODO:\n - [] allow the plugin to be accessed from About.json or about.json (not case sensitive)\n - [] Add posts instead of just doing Post/Pages\n - [] Sanitize input/add checks for existence (IE if File.exists?)\n - [] Add cool features\n\n\n---\n### Contribution:\nIf you would like to add features, or discover something wrong with this plugin, open an issue! I'll be right on it.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsipx%2Fjekyll-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsipx%2Fjekyll-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsipx%2Fjekyll-react/lists"}