{"id":16108303,"url":"https://github.com/sawhney17/logseq-schrodinger","last_synced_at":"2025-04-05T16:11:02.542Z","repository":{"id":38010005,"uuid":"473089540","full_name":"sawhney17/logseq-schrodinger","owner":"sawhney17","description":" A plugin to export pages in Logseq to Hugo.","archived":false,"fork":false,"pushed_at":"2024-06-16T13:19:05.000Z","size":699,"stargazers_count":338,"open_issues_count":22,"forks_count":41,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-29T15:11:22.801Z","etag":null,"topics":["hugo","logseq"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/sawhney17.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":"2022-03-23T08:00:55.000Z","updated_at":"2025-03-13T11:34:03.000Z","dependencies_parsed_at":"2024-10-26T19:31:40.591Z","dependency_job_id":"19da6c0a-fc6a-4bd5-a42a-c845b526efe8","html_url":"https://github.com/sawhney17/logseq-schrodinger","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":"sawhney17/logseq-plugin-starter-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sawhney17%2Flogseq-schrodinger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sawhney17%2Flogseq-schrodinger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sawhney17%2Flogseq-schrodinger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sawhney17%2Flogseq-schrodinger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sawhney17","download_url":"https://codeload.github.com/sawhney17/logseq-schrodinger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361695,"owners_count":20926643,"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":["hugo","logseq"],"created_at":"2024-10-09T19:26:21.602Z","updated_at":"2025-04-05T16:11:02.517Z","avatar_url":"https://github.com/sawhney17.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cdiv id=\"top\"\u003e\u003c/div\u003e\n\u003c!-- PROJECT SHIELDS --\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/sawhney17/logseq-schrodinger\"\u003e\n    \u003cimg src=\"icon.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003elogseq Schrödinger\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    An awesome \u003ca href=\"https://logseq.com\"\u003eLogseq\u003c/a\u003e plugin to jumpstart your digital garden 🌱!\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/sawhney17/logseq-schrodinger\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://aryansawhney.com/\"\u003eView Demo\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/sawhney17/logseq-schrodinger/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/sawhney17/logseq-schrodinger/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#configuration\"\u003eConfiguration\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#meta-data\"\u003eMeta-data\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#configuring_hugo\"\u003eConfiguring Hugo\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#admonitions\"\u003eAdmonitions\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#issues\"\u003eIssues\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#acknowledgments\"\u003eAcknowledgments\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n\n## About The Project\n\n[![Product Name Screen Shot][product-screenshot]](https://github.com/sawhney17/logseq-schrodinger/)\n\n[Logseq](https://logseq.com) is a great PKM (personal knowledge management) tool, but keeping your knowledge for yourself only gets you so far. As [Erwin Schrödinger](https://simple.wikipedia.org/wiki/Erwin_Schrödinger) stated:\n\n\u003e If a note is not published, does it really exist? — Erwin Schrödinger\n\nKnowledge is meant to be treasured and expanded, but before all shared. This plugin helps to make that possible, or at least easier.\n\n**Note:** This project is very much a work-in-progress. Please report \u003ca href=\"#issues\"\u003eissues\u003c/a\u003e and questions.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n\n## Installation\n\n### Preparation\n\n- Click the 3 dots in the righthand corner and go to **Settings**.\n- Go to **Advanced** and enable **Plug-in system**.\n- Restart the application.\n- Click 3 dots and go to Plugins (or `Esc t p`).\n\n### Install plugin from the Marketplace (recommended)\n\n- Click the `Marketplace` button and then click `Plugins`.\n- Find the plugin and click `Install`.\n\n### Install plugin manually\n\n- Download a released version assets from Github.\n- Unzip it.\n- Click Load unpacked plugin, and select destination directory to the unzipped folder.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- Configuration --\u003e\n\n## Configuration\n\n- Click the 3 dots in the righthand corner and go to **Settings**.\n- Go to **Plugin Settings**.\n- Select correct plugin.\n\n[![Configuration screen][configuration-screenshot]](##configuration)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### Meta-data\n\nThis plugin uses YAML for the Hugo [front-matter](https://gohugo.io/content-management/front-matter/). It will convert Logseq page-properties to Hugo front matter.\n\nLogseq _keywords_ are lowercase converted to Hugo keywords, and **category** in Logseq is translated to _categories_ for use with Hugo. Logseq _links_ (`[[like_this]]`) are stripped of `[[` and `]]`.\n\nAll other _keywords_ are just converted to Hugo _keywords_.\n\nFor now you _must_ add **date** with the posts date in the form of \"2012-04-06\" to your Logseq page-properties.\n\n```markdown\ndate:: 2012-04-06\n```\n\n\u003ch3 id=\"configuring_hugo\"\u003eConfiguring Hugo\u003c/h3\u003e\n\n[Hugo][hugo] does not by default support backlinks. Use a snippet like the following to simulate backlinks. It will parse every page for local links. This snippet should be placed in `~yourhugo/layouts/partials/backlinks.html`.\n\n```html\n{{ $re := $.File.BaseFileName }} {{ $backlinks := slice }} {{ range where\n.Site.RegularPages \"Type\" \"page\" }} {{ if and (findRE $re .RawContent) (not (eq\n$re .File.BaseFileName)) }} {{ $backlinks = $backlinks | append . }} {{ end }}\n{{ end }} {{ if gt (len $backlinks) 0 }}\n\u003caside\u003e\n  \u003ch3\u003eBacklinks\u003c/h3\u003e\n  \u003cdiv class=\"backlinks\"\u003e\n    \u003cul\u003e\n      {{ range $backlinks }}\n      \u003cli class=\"capitalize\"\u003e\u003ca href=\"{{ .RelPermalink }}\"\u003e{{ .Title }}\u003c/a\u003e\u003c/li\u003e\n      {{ end }}\n    \u003c/ul\u003e\n  \u003c/div\u003e\n\u003c/aside\u003e\n{{ else }}\n\u003caside\u003e\n  \u003ch4\u003eNo notes link to this note\u003c/h4\u003e\n\u003c/aside\u003e\n{{ end }}\n\n\u003caside class=\"related\"\u003e\n  {{ $related := .Site.RegularPages.Related . | complement $backlinks | first 3\n  -}} {{ with $related -}}\n  \u003ch3\u003eslightly related\u003c/h3\u003e\n  \u003cul\u003e\n    {{ range . -}}\n    \u003cli class=\"capitalize\"\u003e\u003ca href=\"{{ .RelPermalink }}\"\u003e{{ .Title }}\u003c/a\u003e\u003c/li\u003e\n    {{ end -}}\n  \u003c/ul\u003e\n  {{ end -}}\n\u003c/aside\u003e\n```\n\n\u003cimg src=\"./images/backlinks.png\" width=\"200px\"\u003e\n\n### Admonitions\n\nLogseq has several built-in adminitions, namely:\n\n- caution\n- example\n- important\n- note\n- pinned\n- tip\n- quote\n- warning\n\nThese get converted to:\n\n```markdown\n{{\u003c logseq/orgCAUTION \u003e}}Caution here{{\u003c / logseq/orgCAUTION \u003e}}\n{{\u003c logseq/orgEXAMPLE \u003e}}This is an example{{\u003c / logseq/orgEXAMPLE \u003e}}\n{{\u003c logseq/orgIMPORTANT \u003e}}This is important{{\u003c / logseq/orgIMPORTANT \u003e}}\n{{\u003c logseq/orgNOTE \u003e}}This is a note{{\u003c / logseq/orgNOTE \u003e}}\n{{\u003c logseq/orgPINNED \u003e}}This is pinned{{\u003c / logseq/orgPINNED \u003e}}\n{{\u003c logseq/orgTIP \u003e}}This is a tip{{\u003c / logseq/orgTIP \u003e}}\n{{\u003c logseq/orgQUOTE \u003e}}This is a quote{{\u003c / logseq/orgQUOTE \u003e}}\n{{\u003c logseq/orgWARNING \u003e}}This is a warning{{\u003c / logseq/orgWARNING \u003e}}\n```\n\nSo Hugo needs those in `~yourhugo/layouts/shortcodes/logseq/`:\n\n```txt\norgCAUTION.html\norgEXAMPLE.html\norgIMPORTANT.html\norgNOTE.html\norgPINNED.html\norgQUOTE.html\norgTIP.html\norgWARNING.html\n```\n\nAnd they should contain something along the lines of:\n\n```html\n\u003cdiv class=\"caution {{ .Get 0 }}\"\u003e{{ .Inner | $.Page.RenderString }}\u003c/div\u003e\n```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Website templates\n\nThere are some basic website templates you can take it as a reference.\n\n1. [logseq-hugo-template](https://github.com/sawhney17/logseq-hugo-template/), by [sawhney17](https://github.com/sawhney17).\n   1. You can host your personal website with your favorite web hosting providers.\n2. [Logseq-Hugo-Template](https://github.com/CharlesChiuGit/Logseq-Hugo-Template), by [CharlesChiuGit](https://github.com/CharlesChiuGit).\n   1. Host your personal website with free [GitHub pages](https://pages.github.com/).\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- Issues --\u003e\n\n## Issues\n\nSee the [open issues](https://github.com/sawhney17/logseq-schrodinger/issues) for a full list of proposed features (and known issues).\n\n### What works\n\n- Local Hugo links (but Logseq uses one folder for everything, so Hugo does too)\n- Block refs(!) — On conversion the block is pulled from the other location\n- Images\n- Basic Markdown styling (including highlighting!)\n\n### What is known to _not_ work\n\n- Indentation Logseq ➡ Hugo is still a work-in-progress\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTRIBUTING --\u003e\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- LICENSE --\u003e\n\n## License\n\nDistributed under the MIT License. See `LICENSE.txt` for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTACT --\u003e\n\n## Contact\n\nAryan Sawhney - [@Aryan Sawhney](https://twitter.com/aryansawhney17)\n\nProject Link: [https://github.com/sawhney17/logseq-schrodinger](https://github.com/sawhney17/logseq-schrodinger)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Acknowledgments\n\nI would like to thank Alex Qwxlea ([@twitter_handle](https://twitter.com/QwxleaA)) for the idea to write this Logseq plugin. Also for breaking the plugin after I wrote it. And finally, thank him for adding this note: Qwxlea, you're the best 😁!\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n\n[contributors-shield]: https://img.shields.io/github/contributors/sawhney17/logseq-schrodinger.svg?style=for-the-badge\n[contributors-url]: https://github.com/sawhney17/logseq-schrodinger/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/sawhney17/logseq-schrodinger.svg?style=for-the-badge\n[forks-url]: https://github.com/sawhney17/logseq-schrodinger/network/members\n[stars-shield]: https://img.shields.io/github/stars/sawhney17/logseq-schrodinger.svg?style=for-the-badge\n[stars-url]: https://github.com/sawhney17/logseq-schrodinger/stargazers\n[issues-shield]: https://img.shields.io/github/issues/sawhney17/logseq-schrodinger.svg?style=for-the-badge\n[issues-url]: https://github.com/sawhney17/logseq-schrodinger/issues\n[license-shield]: https://img.shields.io/github/license/sawhney17/logseq-schrodinger.svg?style=for-the-badge\n[license-url]: https://github.com/sawhney17/logseq-schrodinger/blob/master/LICENSE.txt\n[product-screenshot]: images/screenshot.jpg\n[configuration-screenshot]: ./images/configuration.png\n[hugo]: https://gohugo.io\n[logseq]: https://logseq.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsawhney17%2Flogseq-schrodinger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsawhney17%2Flogseq-schrodinger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsawhney17%2Flogseq-schrodinger/lists"}