blog icon indicating copy to clipboard operation
blog copied to clipboard

域名的作用

Open hanxi opened this issue 10 years ago • 1 comments

域名 + github

  • 在一年前我就尝试了使用jekyll来创建个人博客,但jekyll实在是太笨重了。现在已经放弃使用jekyll了,以前的文章还存在http://www.hanxi.info/archive.html
  • 今天尝试着用github的issues来写博客,并且使用@tankywoo开发的simiki来写Wiki。
  • 下文中的usename是指github的用户名
  • 如何设置个人主页?
    • 使用github创建一个名为username.github.com的repository
    • Settings->Update your site里面点击按钮Automatic page generator
    • 然后用markdown语法写主页,写完后可以选择主题
    • 如果自动生成的index.html不喜欢可以自己手动修改index.html
    • 现在可以使用username.github.io访问刚才创建的index.html了
    • 在项目中添加CNAME文件,CNAME填自己的域名,比如我的是www.hanxi.info
  • 如何设置域名指向个人主页?
    • 我用的是godaddy的域名,域名为hanxi.info
    • 登录godaddy,进入Home->Zone File Editor,在CNAME(Alias)中添加一条记录,Host填www(对应于CNAME文件中的www),Points to填username.github.com
    • 现在就可以使用自己的域名访问自己的主页了。
  • 今天使用simiki才发现,只要有自己的域名,可以建立多个站点。比如我还用github建了mywikimyblog
  • 参照github的官方教程可以设置
  • home-page使用master分之的CNAME和index.html
  • project-pages使用gh-pages分之的CNAME和index.html
  • project-pages设置方法和设置个人主页类似
  • 如何设置CNAME?见Adding a CNAME file to your repository
  • 如何使用github的issues写博客?
    • 我的新blog是使用github的issues来写的,但是域名只能指向项目的index.html
    • 所以想到了使用页面跳转来把blog.hanxi.info跳转到blog项目的issues界面
    • blog项目的index.html内容见https://github.com/hanxi/blog/blob/gh-pages/index.html

域名 + QQ邮箱

  • 今天才知道域名有这个功能,用自己的域名做邮箱名字
  • 我是照着别人的教程弄的,很详细,几分钟就搞定了
  • 教程网址domain-qqmail, 担心网页打不开,我做了个快照放在评论区。

hanxi avatar Jan 30 '15 06:01 hanxi

用issues写blog感觉很不错,刚才写这篇文章的时候发现可以上传图片。这功能确实挺好的。 :+1:

怎么发现的?编辑框下方有句这样的话:

Attach images by dragging & dropping, selecting them, or pasting from the clipboard.

下面是来自http://www.cmhello.com/domain-mail-qq-com.html的一个网页快照。 qq godaddy -

hanxi avatar Jan 30 '15 07:01 hanxi