Posts List

Hugo搭建博客,用gh-pages分支部署页面

将Hugo部署为GitHub Pages项目或个人/组织站点,并使用简单的shell脚本自动完成整个过程。 GitHub通过其GitHub Pages服务直接从GitHub存储库为个人,组织或项目页面提供基于SSL的免费和快速静态托管。 关于详细的hugo建博客过程,前往我在掘金的文章:Hugo -最好用的静态网站生成器 本文的重点在源码和hugo后生成的页面分开部署,便于管理等

Hugo 主题 Nuo 文章样式预览

这篇文章集中说明本人博客主题所支持的 Markdown 语法和 Hugo Shortcodes 插件,你也可以在这里预览到他们的样子。如果你不喜欢某些部分的样式,可以去修改 content.scss 和 shortcodes.scss 这两个文件。预告一下,我所用的这个名为 Nuo 的 Hugo 也将于近期发布,敬请期待。

Creating a New Theme

Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I’ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won’t cover using CSS to style your theme. We’ll start with creating a new site with a very basic template.

Getting Started with Hugo

Getting Started with Hugo

Step 1. Install Hugo Goto hugo releases and download the appropriate version for your os and architecture. Save it somewhere specific as we will be using it in the next step. More complete instructions are available at installing hugo Step 2. Build the Docs Hugo has its own example site which happens to also be the documentation site you are reading right now. Follow the following steps: Clone the hugo repository Go into the repo Run hugo in server mode and build the docs Open your browser to http://localhost:1313 Corresponding pseudo commands: