{"id":13592755,"url":"https://github.com/xcodebuild/blog-admin","last_synced_at":"2025-04-10T01:13:58.388Z","repository":{"id":83287775,"uuid":"50585636","full_name":"xcodebuild/blog-admin","owner":"xcodebuild","description":"Write blog in emacs with hexo/org-page/nikola","archived":false,"fork":false,"pushed_at":"2022-04-18T20:52:50.000Z","size":88,"stargazers_count":229,"open_issues_count":11,"forks_count":24,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-10T01:13:54.717Z","etag":null,"topics":["blog","emacs"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xcodebuild.png","metadata":{"files":{"readme":"README.org","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}},"created_at":"2016-01-28T13:43:44.000Z","updated_at":"2024-11-05T18:53:11.000Z","dependencies_parsed_at":"2024-01-14T10:03:31.590Z","dependency_job_id":"3d1205ca-4b73-40fe-bd51-240d48cbaec7","html_url":"https://github.com/xcodebuild/blog-admin","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/xcodebuild%2Fblog-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcodebuild%2Fblog-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcodebuild%2Fblog-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcodebuild%2Fblog-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xcodebuild","download_url":"https://codeload.github.com/xcodebuild/blog-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137890,"owners_count":21053775,"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":["blog","emacs"],"created_at":"2024-08-01T16:01:12.864Z","updated_at":"2025-04-10T01:13:58.371Z","avatar_url":"https://github.com/xcodebuild.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"[[https://travis-ci.org/CodeFalling/blog-admin][https://travis-ci.org/CodeFalling/blog-admin.svg]]\n[[https://github.com/syl20bnr/spacemacs][https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg]]\n* blog-admin\nhttps://github.com/CodeFalling/blog-admin/issues\nWrite blog in emacs with hexo, org-page or nikola.\n* Preview\n[[https://cloud.githubusercontent.com/assets/5436704/12700452/1aa686ea-c81e-11e5-92c6-5cd5e810ba35.gif]]\n* Install\n** Melpa\n** Manual\n1. ~git clone https://github.com/CodeFalling/blog-admin /path/to/blog-admin -b master~\n2. ~(add-to-load-path \"/path/to/blog-admin\")~\n3. ~(require 'blog-admin)~\n4. *You may have to install s f ctable as depends*\n** Spacemacs\nIf you use a private spacemacs layer, just add ~blog-admin~ in your ~package.el~ then add below code into your ~private-layer-name/init-blog-admin~ \n\nIf you use a standalone ~.spacemacs~ file, just add ~blog-admin~ in your ~dotspacemacs-additional-packages~, then add below code into ~dotspacemacs/user-config()~\n\nIf installing from github(not melpa)\n#+BEGIN_SRC emacs-lisp\n  (blog-admin :location (recipe\n                         :fetcher github\n                         :repo \"codefalling/blog-admin\"))\n#+END_SRC\nin your layer's packages, then\n\n#+BEGIN_SRC emacs-lisp\n  (use-package blog-admin\n  :init\n  (progn\n    ;; your config\n    (setq blog-admin-backend-type 'hexo)\n    (setq blog-admin-backend-path \"~/codefalling.com\")\n    (setq blog-admin-backend-new-post-in-drafts t)\n    (setq blog-admin-backend-new-post-with-same-name-dir t)\n    ))\n#+END_SRC\n\n* Usage\n+ ~(require 'blog-admin)~ first\n+ ~M-x blog-admin-start~ to start this.\n+ ~d~ to delete current post\n+ ~w~ to write new post\n+ ~s~ to switch between draft and categories\n\n** Open post after create new post\n#+BEGIN_SRC emacs-lisp\n  (add-hook 'blog-admin-backend-after-new-post-hook 'find-file)\n#+END_SRC\n* hexo\n** orgmode \u0026 markdown\nBoth ~orgmode~ or ~markdown~ works well.You can even use them at the same time.But this plugin *do nothing about render*.If you want to make orgmode work with hexo,you'd better use [[https://github.com/CodeFalling/hexo-renderer-org][hexo-renderer-org]].\n** configure\n#+BEGIN_SRC emacs-lisp\n  (setq blog-admin-backend-path \"~/blog\")\n  (setq blog-admin-backend-type 'hexo)\n  (setq blog-admin-backend-new-post-in-drafts t) ;; create new post in drafts by default\n  (setq blog-admin-backend-new-post-with-same-name-dir t) ;; create same-name directory with new post\n  (setq blog-admin-backend-hexo-config-file \"my_config.yml\") ;; default assumes _config.yml\n#+END_SRC\n\n* org-page\n\n[[https://github.com/kelvinh/org-page][org-page]] is pure emacs static blog generator.\n\n** configure\n#+BEGIN_SRC emacs-lisp\n  (setq blog-admin-backend-type 'org-page)\n  (setq blog-admin-backend-path \"~/code/blog\")\n  (setq blog-admin-backend-new-post-in-drafts t)\n  (setq blog-admin-backend-new-post-with-same-name-dir t)\n  (setq blog-admin-backend-org-page-drafts \"_drafts\") ;; directory to save draft\n  (setq blog-admin-backend-org-page-config-file \"/path/to/org-page/config.el\") ;; if nil init.el is used\n#+END_SRC\n\n* nikola\n[[https://getnikola.com/][Nikola]] is Python based static blog generator that supports org-mode posts with\na bunch of other formats.\n\nTo be able to use blog-admin on your Nikola site, you will need to install the\n[[https://plugins.getnikola.com/#tags][tags plugin]] and Nikola \u003e= 7.7.9.\n\n** configure\n#+BEGIN_SRC emacs-lisp\n  (setq blog-admin-backend-type 'nikola)\n  (setq blog-admin-backend-path \"~/code/blog\")\n  (setq blog-admin-backend-new-post-in-drafts t)\n  (setq blog-admin-backend-nikola-executable \"~/.venvs/nikola/bin/nikola\") ;; path to nikola executable\n  (setq blog-admin-backend-nikola-config-file \"my_conf.py\") ;; conf.py is default\n#+END_SRC\n\n* Thanks\n1. I stole idea that operating posts in table from [[https://github.com/yoshinari-nomura/org-octopress][org-octopress]].\n2. The table build on a awesome library: [[https://github.com/kiwanami/emacs-ctable][emacs-ctable]].\n3. Thanks for [[https://github.com/magnars/s.el][s]] and [[https://github.com/rejeep/f.el][f]] who provide a modern API for emacs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcodebuild%2Fblog-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxcodebuild%2Fblog-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcodebuild%2Fblog-admin/lists"}