JekyII Content Generate(1)Installation and Introduction
Check ruby version and other tools on my MAC
> ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
> gem -v
2.5.2.3
> gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
> g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
> make -v
GNU Make 3.81
https://jekyllrb.com/docs/installation/macos/
Installation
> xcode-select --install
I already have that
> sudo gem install bundler
> sudo gem install jekyll
Exception
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
Solution:
https://github.com/jekyll/jekyll-help/issues/209
https://stackoverflow.com/questions/10725767/error-installing-jekyll-native-extension-build
People are saying xcode and Xcode-select —install will fix that. But it does not work for me. I will directly try that in Ubuntu.
https://jekyllrb.com/docs/installation/ubuntu/
> sudo apt-get install build-essential
> sudo apt-get install ruby-full
Check the Path
> vi ~/.profile
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"
> gem -v
2.5.2.1
> ruby -v
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
> make -v
GNU Make 4.1
> g++ -v
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)
> gcc -v
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10)
> sudo gem install bundler
> sudo gem install jekyll
Once the installation is done. Let’s try.
Create a project
> jekyll new myblog
Start the service
> bundle exec jekyll serve
Then you can visit this URL
http://127.0.0.1:4000/
Change the configuration file _config.yml
host: 0.0.0.0
Start again,
>bundle exec jekyll serve
Then. We can use
http://ubuntu-master:4000/
Under the _post directory, I can copy and write a similar blog files
> cat 2018-12-03-java-blog.markdown
---
layout: post
title: "Java Blog!"
date: 2018-12-03 18:00:58 -0600
categories: java
---
Hello, I will write some java codes and blog here.
In the root directory
> jekyll serve
We can see the changes in the simple HTTP server.
Command to generate to _site
> jekyll build
More configuration
https://jekyllrb.com/docs/configuration/default/
That is useful and clean. But you need to understand the formats and provide the data in markdown format in _post directory.
References:
https://github.com/jekyll/jekyll
https://jekyllrb.com/
https://www.cnblogs.com/baiyangcao/p/jekyll_basic.html
分享到:
相关推荐
我的博客 地址: 安装说明 fork库到自己的github 修改名字为:username.github.io clone库到本地,参考_posts中的目录结构自己创建适合自己的文章目录结构 修改CNAME,或者删掉这个文件,使用默认域名 ...
#Raytudiophoto 主题 由 Start Bootstrap 从 Clean Blog 采用。 主题修改如下: 添加了采用 Modern Business 的索引页(Start Bootstrap 的另一个主题) 增加了带有 Nerve Slide 的 Slide 功能 ...
Jekyll包含缓存 一个用于缓存Liquid渲染的Jekyll插件包括 它能做什么 如果您拥有计算上昂贵的包含(如边栏或导航),则Jekyll包含缓存将仅呈现一次包含,然后在使用相同参数调用包含的任何时间重用输出,从而可能显...
适用于Mac,iPad和iPhone的MWeb Pro Markdown写作,笔记和静态博客生成器应用程序 软件:通过原生macOS技术制作,追求与系统的完美结合。原则上,首先要追求简单...它还支持gitbook,JekyII和Hexo编辑以及图像插入。
【低空经济】低空人工智能调度中心建设方案
少儿编程scratch项目源代码文件案例素材-诅咒大厦.zip
scratch少儿编程逻辑思维游戏源码-纸片马里奥 激流勇进.zip
scratch少儿编程逻辑思维游戏源码-一路跳跃.zip
内容概要:本文详细介绍了五个用于空气耦合超声仿真的COMSOL模型,涵盖二维和三维场景,适用于铝板和钢板的多种缺陷检测。每个模型都包含了具体的参数设置、边界条件选择以及优化技巧。例如,Lamb波检测模型展示了如何利用A0模态检测铝板内的气泡,而三维模型则强调了内存管理和入射角参数化扫描的重要性。表面波检测模型提供了裂纹识别的相关性分析方法,变厚度模型则展示了如何通过几何参数化来模拟复杂的工件形态。文中还分享了许多实用的操作技巧,如内存优化、信号处理和自动化检测逻辑。 适用人群:从事无损检测研究的技术人员、COMSOL软件使用者、超声检测领域的研究人员。 使用场景及目标:①帮助用户理解和掌握空气耦合超声仿真的具体实现方法;②提供实际工程应用中的缺陷检测解决方案;③指导用户进行高效的仿真建模和结果分析。 其他说明:文中提供的模型不仅涵盖了常见的缺陷检测场景,还包括了一些高级技巧,如参数化扫描、自动化检测逻辑等,能够显著提高工作效率。同时,文中还给出了硬件配置建议和一些常见的注意事项,确保用户可以顺利运行这些模型。
实训商业源码-【脐橙】租赁 2.80.0+租赁商家-毕业设计.zip
scratch少儿编程逻辑思维游戏源码-幽灵冲刺.zip
scratch少儿编程逻辑思维游戏源码-粘粘世界物理.zip
机器人开发教程&案例&相关项目资源,奖励仅
实训商业源码-酒吧微上墙4.1.0-毕业设计.zip
实训商业源码-会员计次卡V1.1.1-毕业设计.zip
实训商业源码-二手跳蚤市场V5.4.10带微信支付+上架通知+广告插件-毕业设计.zip
实训商业源码-健康保健类企业网站源码-毕业设计.zip
Linux环境安装mysql的RPM包以及安装步骤:客户端和服务端的安装
实训商业源码-房产中介小程序8.0.51+前端-毕业设计.zip
scratch少儿编程逻辑思维游戏源码-钟声.zip