{"id":17222650,"url":"https://github.com/marksteve/lektor-github-repos","last_synced_at":"2025-04-13T23:57:40.309Z","repository":{"id":57438603,"uuid":"48566609","full_name":"marksteve/lektor-github-repos","owner":"marksteve","description":"Fetches your GitHub repos for display in Lektor templates","archived":false,"fork":false,"pushed_at":"2015-12-25T06:17:12.000Z","size":12,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T14:09:36.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/lektor-github-repos","language":"Python","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/marksteve.png","metadata":{"files":{"readme":"README.md","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-12-25T04:33:07.000Z","updated_at":"2024-07-17T12:22:47.000Z","dependencies_parsed_at":"2022-09-08T08:02:32.868Z","dependency_job_id":null,"html_url":"https://github.com/marksteve/lektor-github-repos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksteve%2Flektor-github-repos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksteve%2Flektor-github-repos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksteve%2Flektor-github-repos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksteve%2Flektor-github-repos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marksteve","download_url":"https://codeload.github.com/marksteve/lektor-github-repos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631779,"owners_count":21136563,"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":[],"created_at":"2024-10-15T04:06:02.163Z","updated_at":"2025-04-13T23:57:40.287Z","avatar_url":"https://github.com/marksteve.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lektor-github-pages\n\nFetches your GitHub repos for display in Lektor templates\n\n[Demo](https://marksteve.com/lektor-github-repos)\n\n## Enabling the plugin\n\nTo enable the plugin add this to your project file:\n\n```\n[packages]\nlektor-github-repos = 0.1.1\n```\n\n## Generate a personal access token\n\nIf you're only accessing public repos, the GitHub API allows you\nto only make 60 unauthenticated requests per hour. But that goes up\nto 5,000 requests per hour with authentication and it's not that hard to do:\n\nGo to https://github.com/settings/tokens/new and generate a token. You\ncan untick all scopes to get public access.\n\n## Create the config file\n\nCreate `configs/github-repos.ini` with the following content:\n\n```\n[github-repos]\ntoken = \u003cyour personal access token\u003e\n```\n\n## Use in your templates\n\nThe plugin adds `get_github_repos()` and `get_top_github_repos()` to the template\ncontext. Both accept the same parameters as with the user repos API call\n(https://developer.github.com/v3/repos/#list-your-repositories).\n`get_top_github_repos` also sorts repos by stargazers and accepts an additional\nparam `count`.\n\n### Get latest pushed repositories\n\n```\n\u003cul\u003e\n{% for repo in get_github_repos(sort=\"pushed\") %}\n  \u003cli\u003e\n    \u003cstrong\u003e{{ repo.name }}\u003c/strong\u003e\n    {{ repo.description }}\n  \u003c/li\u003e\n{% endfor %}\n\u003c/ul\u003e\n```\n\n### Get 10 latest updated repositories sorted by stargazers\n\n```\n\u003cul\u003e\n{% for repo in get_top_github_repos(type=\"owner\", sort=\"updated\", count=10) %}\n  \u003cli\u003e\n    [{{ repo.stargazers_count }} stars]\n    \u003cstrong\u003e{{ repo.name }}\u003c/strong\u003e\n    {{ repo.description }}\n  \u003c/li\u003e\n{% endfor %}\n\u003c/ul\u003e\n```\n\n## In action\n\n* [My homepage](https://marksteve.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksteve%2Flektor-github-repos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarksteve%2Flektor-github-repos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksteve%2Flektor-github-repos/lists"}