emacs-china.github.io
emacs-china.github.io copied to clipboard
(WIP)Emacs 中文社区 Blog
-- coding: utf-8-unix; --
#+title: 欢迎来到 emacs-china #+author: emacs-china #+email: [email protected]
下面是 emacs-china 的设置,安装好 [[https://github.com/emacs-china/EGO][EGO]] 后,将该设置写入配置即可管理 emacs-china。
CAUTION: 直接 clone emacs-china 后,需要 checkout master 和 source 后才能使用,否则会导致意外情况。
#+BEGIN_SRC emacs-lisp ;; the following is only needed if you install EGO manually (add-to-list 'load-path "path/to/EGO")
(require 'ego)
(ego/add-to-alist 'ego/project-config-alist `(("emacs-china" ; 站点工程的名字 :repository-directory "~/github/emacs-china.github.io" ; 站点的本地目录 :repository-org-branch "master" ; 源文件所在 branch :repository-html-branch "master" ; html 文件所在 branch :site-domain "https://emacs-china.github.io/" ; 站点的网址 :site-main-title "EMACS-CHINA" ; 站点的标题 :site-sub-title "=============>集思广益" ; 站点的副标题 :theme (emacs-china default) ; 使用的主题, 默认是 default :summary (("years" :year :updates 10) ("authors" :authors) ("tags" :tags)) ; 导航栏的设置,有 category 和 summary 两种 :source-browse-url ("Github" "https://github.com/emacs-china") ; 你的工程源代码所在的位置 :personal-disqus-shortname "emacs-china" ; 使用 disqus 评论功能的话,它的短名称 :personal-duoshuo-shortname "emacs-china" ; 使用 多说 评论功能的话,它的短名称 :confound-email t ; 是否保护邮件名称呢?t 是保护,nil 是不保护,默认是保护 :ignore-file-name-regexp "readme.org" ; 有些不想发布成 html 的 org 文件(但是又想被导入 git 进行管理),可以用这种正则表达的方式排除 :web-server-docroot "~/webRoot/emacs-china.github.io" ; 本地测试的目录 :web-server-port 5432) ; 本地测试的端口 ;; 在这里添加新的站点或者工程 )) #+END_SRC
TIP: 你可以仿照上面来设置自己的站点。
你可以通过以下方式发现 EGO 的设置方法(英文)
#+BEGIN_EXAMPLE C-h v ego/project-config-alist C-h v ego/config-fallback #+END_EXAMPLE
#+ATTR_HTML: title="Join the chat at https://gitter.im/emacs-china/emacs-china.github.io" [[https://gitter.im/emacs-china/emacs-china.github.io?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge][file:https://badges.gitter.im/emacs-china/emacs-china.github.io.svg]]