Code Monkey home page Code Monkey logo

autumnquiche.github.io's Introduction

hugo

不低于v0.90.0版本。

编译hugo

自己编译hugo以免出错。

获取代码:

git clone https://github.com/gohugoio/hugo.git

编译hugo:

go build

./hugo version

hugo执行文件移到/usr/local/bin/或其他${PATH}中的目录。

编译执行工程

安装其他依赖:

apt update && apt install npm && npm install -g sass

pip3 install beautifulsoup4 lxml html5lib

编译:

git clone https://github.com/AutumnQuicHe/AutumnQuicHe.github.io

cd AutumnQuicHe.github.io && git submodule update --init

./build.sh

编完结果在public目录。

调试

./scripts/sass.py && hugo server

通过http://localhost:1313/访问。

调试时无法将

块中多余的换行删掉,所以看起来有点怪。建议挂一个nginx指向public目录,直接通过执行build.sh更新结果。

sass

安装sass

apt update && apt install npm

npm install -g sass

生成css文件

./scripts/sass.py

其他脚本

./scripts/remove_p_linebreaks.py用于清除

块中多余的空行,这些空行默认会变成空格,影响中文展示。

autumnquiche.github.io's People

Contributors

fangqiuhang avatar yunzhezju avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.