{"id":16796567,"url":"https://github.com/peachscript/meditation","last_synced_at":"2025-04-11T00:12:01.032Z","repository":{"id":66331119,"uuid":"85401889","full_name":"PeachScript/meditation","owner":"PeachScript","description":"A deep and refined theme for the Ghost blog engine.","archived":false,"fork":false,"pushed_at":"2019-10-29T16:03:54.000Z","size":86,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T00:11:54.643Z","etag":null,"topics":["ghost","ghost-theme"],"latest_commit_sha":null,"homepage":"https://www.peachis.me","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeachScript.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-18T13:07:58.000Z","updated_at":"2024-02-21T13:05:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ecac34e-9914-4124-b908-31de544334bc","html_url":"https://github.com/PeachScript/meditation","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeachScript%2Fmeditation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeachScript%2Fmeditation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeachScript%2Fmeditation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeachScript%2Fmeditation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeachScript","download_url":"https://codeload.github.com/PeachScript/meditation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317729,"owners_count":21083530,"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":["ghost","ghost-theme"],"created_at":"2024-10-13T09:19:29.396Z","updated_at":"2025-04-11T00:12:01.025Z","avatar_url":"https://github.com/PeachScript.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# meditation\n[![version](https://img.shields.io/github/release/PeachScript/meditation.svg)]() [![downloads](https://img.shields.io/github/downloads/PeachScript/meditation/total.svg)]() [![license](https://img.shields.io/github/license/PeachScript/meditation.svg)]()\n\nA deep and refined theme for the Ghost blog engine.\n\n![preview](http://www.peachis.me/assets/meditation/preview.png)\n\nYou can see a [demo](http://www.peachis.me/) in my own blog.\n\n## Features\n\n- Responsive\n- QRCode share\n- Social share buttons\n- Focus on reading experience (base on [typo.css](https://github.com/sofish/typo.css/))\n- Source code highlight (base on [highlight.js](https://github.com/isagalaev/highlight.js))\n\n## Installation\n\n1. Download the latest version from release page;\n2. Unzip into `path/to/your/ghost/content/themes` folder;\n3. Activate `mediation` in the `Ghost` General settings.\n\n## Configuration\n\nYou can configure share buttons and copyright information with `$meditationTool` by the Ghost code injection feature:\n\nWrite configuration code in Ghost Admin \u003e Settings -\u003e Code Injection -\u003e Blog Footer:\n```javascript\n\u003cscript\u003e\n  $meditationTool.setShareButtons(['FACEBOOK', 'TWITTER'])\n                 .setCopyright('\u003cp\u003eAuthor: PeachScript\u003c/p\u003e');\n\u003c/script\u003e\n```\n\n### $meditationTool\n\n#### methods\n\n**setShareButtons**\n\nConfigure share buttons in the post page. Support the following enumeration values:\n\n| Name     | Meaning                                  |\n| -------- | ---------------------------------------- |\n| DOUBAN   | Add the [Douban](https://www.douban.com) share button |\n| WEIBO    | Add the [Weibo](https://www.weibo.com) share button |\n| RENREN   | Add the [Renren](http://www.renren.com) share button |\n| QZONE    | Add the [QQ Zone](https://qzone.qq.com) share button |\n| GPLUS    | Add the [Google Plus](https://plus.google.com) share button |\n| FACEBOOK | Add the [Facebook](https://www.facebook.com) share button |\n| TWITTER  | Add the [Twitter](https://www.twitter.com) share button |\n| QRCODE   | Add the QRCode button to share by mobile phone |\n\nUsage:\n```javascript\n// Passing an array to set share buttons\n$meditationTool.setShareButtons(['GPLUS', 'FACEBOOK']);\n\n// You also can passing a two-dimensional array to render multi-line share buttons\n$meditationTool.setShareButtons([\n  ['FACEBOOK'],\n  ['GPLUS', 'TWITTER'],\n  ['DOUBAN', 'WEIBO', 'RENREN']\n]);\n```\n\n**setCopyright**\n\nConfigure copyright information in the post page. Support HTML tags.\n\n*Notice: For security you only can call the method once in synchronized manner.*\n\nUsage:\n```javascript\n$meditationTool.setCopyright('\u003cp\u003eAny code you want to insert to the copyright label\u003c/p\u003e');\n```\n\n## Development setup\n\n```bash\n# install dependencies\nnpm install\n\n# start webpack-dev-server\nnpm run dev\n```\n\n## Thanks to\n\n1. [typo.css](https://github.com/sofish/typo.css/)\n2. [highlight.js](https://github.com/isagalaev/highlight.js)\n3. [normalize.css](https://github.com/necolas/normalize.css/)\n4. [qrcodejs](https://github.com/davidshimjs/qrcodejs)\n5. [webpack](https://github.com/webpack/webpack)\n6. [uno-zen](https://github.com/Kikobeats/uno-zen)\n\n## License\n\nMIT License\n\nCopyright (c) 2017 PeachScript\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeachscript%2Fmeditation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeachscript%2Fmeditation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeachscript%2Fmeditation/lists"}