{"id":18793148,"url":"https://github.com/p2pu/discourse-gallery","last_synced_at":"2025-09-05T08:14:33.984Z","repository":{"id":26843889,"uuid":"30303451","full_name":"p2pu/discourse-gallery","owner":"p2pu","description":"Embed a gallery of discourse posts on your website.","archived":false,"fork":false,"pushed_at":"2015-02-04T14:48:24.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-21T15:18:07.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p2pu.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-04T14:45:56.000Z","updated_at":"2015-04-10T06:08:00.000Z","dependencies_parsed_at":"2022-09-01T21:41:50.102Z","dependency_job_id":null,"html_url":"https://github.com/p2pu/discourse-gallery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/p2pu/discourse-gallery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fdiscourse-gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fdiscourse-gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fdiscourse-gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fdiscourse-gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p2pu","download_url":"https://codeload.github.com/p2pu/discourse-gallery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fdiscourse-gallery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273728573,"owners_count":25157232,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T21:23:48.056Z","updated_at":"2025-09-05T08:14:28.971Z","avatar_url":"https://github.com/p2pu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Embed posts from a discourse forum in a web page.\n\n# Usage\n\n## Configuring discourse for CORS\n\nAdd the following to you app.yml\n\n```\n  DISCOURSE_ENABLE_CORS: true\n  DISCOURSE_CORS_ORIGIN: '*'\n```\n\nThen run ./launcher rebuild app.yml\n\n## Add template to your page:\n\n```\n\u003cdiv class=\"container\"\u003e\n  \u003cdiv id=\"gallery\" class=\"gallery-content row\"\u003e\n    \u003cdiv class=\"post col-lg-4 col-md-6 col-sm-6\"\u003e\n      \u003ca class=\"post-link\" href=\"http://example.net\" target=\"_blank\"\u003e \n      \u003cdiv class=\"container\"\u003e\n        \u003ch2 class=\"title\"\u003eTitle\u003c/h2\u003e\n        \u003cimg class=\"profile-image\" src=\"http://placehold.it/50x50\"\u003e\n        \u003ch4 class=\"author\"\u003eAuthor\u003c/h4\u003e\n        \u003cp class=\"post-text\"\u003ePost body text.\u003c/p\u003e\n      \u003c/div\u003e \n      \u003c/a\u003e \n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n## Include JavaScript\n\n```\n\u003cscirpt src=\"/js/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"/js/discourseGallery.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    discourseGallery.loadCategoryGallery({\n        containerId: 'gallery', \n        forumUrl: 'forum.example.net',\n        category: 'category-slug'\n    });\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp2pu%2Fdiscourse-gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp2pu%2Fdiscourse-gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp2pu%2Fdiscourse-gallery/lists"}