push 一次之后,matser branch 就会自动部署并且建立一个 gh-pages branch,其中就是最终网页的 html 文件。最后,到 gh-pages branch,把他设置成 Github Pages。 然后,就部署成功了!访问 https://<用户名>.github.io 即可查看自己的主页。 以后每次修改后,commit & push,github actions 就会先在 master branch ...
#Open the Gemfile that was created and follow the instructions in the Gemfile's comments to use GitHub Pages. #If you want to use GitHub Pages, remove the"gem "jekyll""above and uncommentinthe line below. To upgrade, run'bundle update github-pages'. #gem"github-pages", group: :jekyll_...
function(error,files){files.forEach(file=>{letp=path.join('./list',file);letmarkdown=fs.readFileSync(p).toString();lethtml=marked(markdown);lettemplate=fs.readFileSync('./template.html').toString();letresult=template.replace('%content%',html);fs.writeFileSync(file+'...
文章用markdown语法,写好统一放在_post文件夹下上传,git page会自动从你的git仓库拉去解析成网页,立刻就能在你的博客网页浏览。 关于文章的命名格式:博客文章必须按照统一的命名格式yyyy-mm-dd-blogName.md比如我这篇博客的名字是2019-11-22-create_blog_with_github_pages.md 看到这里,如果只是简单的想写博客,后...
使用GitHub Pages建立博客 与GitHub建立好链接之后,就可以方便的使用它提供的Pages服务,GitHub Pages分两种,一种是你的GitHub用户名建立的username.github.io这样的用户&组织页(站),另一种是依附项目的pages。 User & Organization Pages 想建立个人博客是用的第一种,形如beiyuu.github.io这样的可访问的站,每个用户...
Github Pages Github Pages可以理解为用户编写的、托管在github上的静态网页,你只需将你的改动提交到Github,就可以实现更改你的网页。 二、基础环境配置 安装Node 从Node.js官网下载对应的版本安装即可。 安装Git 从Git官网下载对应版本安装即可。 安装Hexo
在DNSPod自己的域名下添加一条A记录,地址就是Github Pages的服务IP地址:207.97.227.245 在域名注册商处修改DNS服务:去Godaddy修改Nameservers为这两个地址:f1g1ns1.dnspod.net、f1g1ns2.dnspod.net。如果你不明白在哪里修改,可以参考这里:Godaddy注册的域名如何使用DNSPod ...
template: article --- Enter your content here 内容十分简单,但是开头的这些代码,不少人会熟悉。对,和Octopress等一样,geneartor-pencil也支持在Markdown内嵌入YAML格式的数据,作为这篇文档的属性信息。有一些属性是有特殊意义的,例如title。这里详细的定义,请参考文档。
关于文章的命名格式:博客文章必须按照统一的命名格式yyyy-mm-dd-blogName.md比如我这篇博客的名字是2019-11-22-create_blog_with_github_pages.md 看到这里,如果只是简单的想写博客,后面的不看也可以了,后面章节是记录一些DIY的过程。 本地博客预览 到目前为止,我们提交的文章都是必须上传到github仓库才能预览。如...
All the themes are intergrated in the blog template, with some modifies. About Blog templates based on GitHub Pages minixalpha.github.io/StrayBirds/ Resources Readme Activity Stars 0 stars Watchers 1 watching Forks 0 forks Report repository Releases No releases published Packages No ...