网站搭建备忘
Written by Yihong on
简单记录一下搭建步骤.
Content
How to use “Memoirs” theme
- 安装ruby+d,安装,安装jekyll
- git clone https://github.com/wowthemesnet/jekyll-theme-memoirs.git
- 修改
- bundle install
- Edit _config.yml options. If your site is in root: baseurl: ‘’. Also, change your Google Analytics code, disqus username, authors, Mailchimp list etc.
- bundle exec jekyll serve -w –host=’ip’
- Start populating your blog by adding your .md files in _posts
- YAML front matter options:
- post image - image: assets/images/mypic.jpg
- external post image - image: “https://externalwebsite.com/image4.jpg”
- disable page comments - comments:false
- meta description (optional) - description: “this is my meta description”
- Adsense 广告 → adsense: “disabled”
- Lazy Load Images 延迟加载图片 → lazyimages: “enabled”
- Editing stylesheet
- You’ll only work with a single file to edit/add theme style: assets/css/theme.scss.