{"id":17859262,"url":"https://github.com/kanarus/kabto","last_synced_at":"2025-04-02T19:43:19.668Z","repository":{"id":90915685,"uuid":"600485620","full_name":"kanarus/kabto","owner":"kanarus","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-19T15:05:50.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T10:27:08.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/kanarus.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T16:37:01.000Z","updated_at":"2023-02-11T16:37:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e2f1d39-b308-4c87-a9e8-c26ea9e4a36b","html_url":"https://github.com/kanarus/kabto","commit_stats":null,"previous_names":["kanarus/kabto"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanarus%2Fkabto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanarus%2Fkabto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanarus%2Fkabto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanarus%2Fkabto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanarus","download_url":"https://codeload.github.com/kanarus/kabto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246883639,"owners_count":20849520,"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-28T06:42:07.405Z","updated_at":"2025-04-02T19:43:19.650Z","avatar_url":"https://github.com/kanarus.png","language":"Rust","readme":"```rs\nuse kabto::{Component, HTML, tag::*};\n\nstruct Meta {titile: String, description: String}\nimpl Component for Meta {\n    fn render(self) -\u003e impl HTML {\n        (\n            meta.charset(\"utf-8\"),\n            meta.name(\"viewport\").content(\"width=device-width,initial-scale=1\"),\n            meta.http_equiv(\"Content-Type\").content(\"text/html; charset=utf-8\"),\n            meta.http_equiv(\"Content-Language\").content(\"ja\"),\n            meta.name(\"description\").content(description),\n            link.rel(\"icon\").href(\"/blog/favicon.ico\").sizes(\"any\"),\n            link.rel(\"icon\").href(\"/blog/icon.svg\").icon_type(\"image/svg+xml\"),\n        )\n    }\n}\n\nstruct App {\n    meta_title:    String,\n    description:   String,\n    title:         Option\u003cString\u003e,\n    volume:        usize,\n    categories:    Vec\u003cString\u003e,\n    written_at:    Option\u003cDate\u003e,\n} impl Component for App {\n    fn render(self) -\u003e impl HTML {\n        let Self { meta_title, description, title, volume, categories, written_at } = self;\n        let is_series_article = is_series_title(\u0026title);\n\n        (\n            html.lang(\"en\")(\n                head.prefix(\"og: http://ogp.me/ns#\"),\n                Meta {title: meta_title, description: description.clone()},\n                body(\n                    header(\n                        h1(\"kanarus\")\n                    ),\n                    div.id(\"content\")(\n                        article(\n                            h2(title),\n                            div.id(\"metadata\")(\n                                div.id(\"tags\")(categories.iter().map(|c|\n                                    span.class(\"tag\")(c)\n                                )),\n                                div.id(\"dates\")(written_at.map(|wa| (\n                                    svg.class(\"icon\").view_box(\"0 0 32 32\")(\n                                        path.d(\"...\")\n                                    ),\n                                    span.style(\"margin-left: 0.25em;\")(wa)\n                                )))\n                            ),\n                            p(is_series_article.then(\n                                description\n                            )),\n                        )\n                    ),\n                    Sidebar {},\n                )\n            )\n        )\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanarus%2Fkabto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanarus%2Fkabto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanarus%2Fkabto/lists"}