{"id":18032726,"url":"https://github.com/sanderdlm/kirby-seo-basics","last_synced_at":"2025-03-27T05:31:18.673Z","repository":{"id":134050915,"uuid":"93048316","full_name":"sanderdlm/kirby-seo-basics","owner":"sanderdlm","description":"Quickstart guide for Kirby SEO basics","archived":false,"fork":false,"pushed_at":"2017-06-01T11:06:48.000Z","size":3,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T15:34:25.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/sanderdlm.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":"2017-06-01T11:02:43.000Z","updated_at":"2022-11-09T04:20:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"2fa04321-46d2-42e8-81ab-2c7ab81efdd1","html_url":"https://github.com/sanderdlm/kirby-seo-basics","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/sanderdlm%2Fkirby-seo-basics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanderdlm%2Fkirby-seo-basics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanderdlm%2Fkirby-seo-basics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanderdlm%2Fkirby-seo-basics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanderdlm","download_url":"https://codeload.github.com/sanderdlm/kirby-seo-basics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791453,"owners_count":20672665,"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-30T10:15:36.962Z","updated_at":"2025-03-27T05:31:18.666Z","avatar_url":"https://github.com/sanderdlm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kirby SEO basics\n\nThis repository is a quickstart guide to set up your Kirby site with basic SEO.\n\nSo far I've included the following:\n\n* Sitemap [(credit)](https://getkirby.com/docs/cookbook/xmlsitemap)\n* Robots.txt\n* Open graph meta tags\n\nI have written a step-by-step for each component.\n\n### Sitemap\n\nFiles needed:\n* /content/sitemap\n* /site/templates/sitemap.php\n\nCopy the /content/sitemap folder to your own content folder. This folder only exists to generate a route and load the template, the content file inside it is empty.\n\nPlace the sitemap.php template in your own /site/templates/ folder. Visit your site and navigate to http://\u003cyour-url\u003e/sitemap to test the template. You should see an XML sitemap.\n\nVisit the [Google Search Console](https://www.google.com/webmasters/tools/home), register your domain (both HTTP and HTTPS) and then [submit your sitemap to Google](https://www.google.com/webmasters/tools/sitemap-list). You can also test the submitted sitemap.\n\n### Robots.txt\n\nFiles needed:\n* robots.txt\n\nThis is a barebones, basic robots.txt. Copy it your website's root folder and change the sitemap URL inside it to the one you generated in the last step.\n\n### Meta tags \u0026 Open Graph tags\n\nFiles needed:\n* /blueprints/site.yml\n* /snippets/header.php\n\nIf you haven't made any customizations to your site.yml, simply replace yours with the one from this repo. If you have modified your own site blueprint, append the following fields:\n\n```yml\ndescription:\n  label: Description\n  type:  textarea\n\nog_title:\n  label: Open Graph title\n  type:  text\n\nog_site_name:\n  label: Open Graph site name\n  type:  text\n\nog_description:\n  label: Open Graph description\n  type:  textarea\n\nog_image:\n  label: Open Graph image\n  type:  image\n```\n\nYou can now browse to \u003cyour-url\u003e/panel/options and fill in your title, meta description and Open graph information.\n\nOnce you've done this, copy the header.php snippet to your own snippets folder. If you don't want to override your own, make sure to add the following tags to yours:\n\n```php\n\u003cmeta name=\"description\" content=\"\u003c?= $site-\u003edescription()-\u003ehtml() ?\u003e\"\u003e\n\n\u003cmeta property=\"og:title\" content=\"\u003c?= $site-\u003eog_title()-\u003ehtml() ?\u003e\" /\u003e\n\u003cmeta property=\"og:site_name\" content=\"\u003c?= $site-\u003eog_site_name()-\u003ehtml() ?\u003e\"\u003e\n\u003cmeta property=\"og:type\" content=\"website\"\u003e\n\u003cmeta property=\"og:description\" content=\"\u003c?= $site-\u003eog_description()-\u003ehtml() ?\u003e\" /\u003e\n\u003cmeta property=\"og:url\" content=\"\u003cyour-url\u003e\" /\u003e\n\u003cmeta property=\"og:image\" content=\"\u003c?= $site-\u003eog_image()-\u003ehtml() ?\u003e\" /\u003e \n```\n\nYou can now use the header snippet in any template. I've included a very basic default template to illustrate.\n\n## Conclusion\n\nThat's it. You should now have a working sitemap, robots.txt \u0026 meta tags on your Kirby website.\n\n\n## Contact\nThe easiest way to contact me about this is through Twitter: [@dreadnip](https://twitter.com/dreadnip).\n\nIf you have any issues or suggestions, please let me know.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanderdlm%2Fkirby-seo-basics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanderdlm%2Fkirby-seo-basics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanderdlm%2Fkirby-seo-basics/lists"}