All Projects โ†’ laozhu โ†’ Hugo Nuo

laozhu / Hugo Nuo

Licence: mit
๐ŸŽจ A responsive light & clean hugo theme for blogger.

Projects that are alternatives of or similar to Hugo Nuo

Hugo Theme Noteworthy
A minimalist Hugo theme for writers and bloggers
Stars: โœญ 119 (-70.62%)
Mutual labels:  blog, hugo
Cosx.org
็ปŸ่ฎกไน‹้ƒฝไธป็ซ™
Stars: โœญ 180 (-55.56%)
Mutual labels:  blog, hugo
Yihui
Personal website of Yihui Xie
Stars: โœญ 122 (-69.88%)
Mutual labels:  blog, hugo
Hugo Theme Basic
Basic site theme styled with minimal tachyons, syntax highlighting, and blog series configuration. ๐Ÿ“ฆ
Stars: โœญ 89 (-78.02%)
Mutual labels:  blog, hugo
Emacs Easy Hugo
Emacs major mode for managing hugo
Stars: โœญ 235 (-41.98%)
Mutual labels:  blog, hugo
Lipi
A simple static blog generator.
Stars: โœญ 100 (-75.31%)
Mutual labels:  blog, hugo
Kross Hugo
Kross Creative Portfolio Template
Stars: โœญ 172 (-57.53%)
Mutual labels:  blog, hugo
Hugo Geo
Theme I use for my personal website
Stars: โœญ 65 (-83.95%)
Mutual labels:  blog, hugo
Hugo Theme Codex
A minimal blog theme for Hugo ๐Ÿœ
Stars: โœญ 212 (-47.65%)
Mutual labels:  blog, hugo
Hugo Ink
Crisp, minimal personal website and blog theme for Hugo
Stars: โœญ 209 (-48.4%)
Mutual labels:  blog, hugo
Hugo Bearblog
๐Ÿงธ A Hugo theme based on ยปBear Blogยซ. Free, no-nonsense, super-fast blogging. This theme now includes a dark color scheme to support dark mode ๐Ÿฆ‰ โฌ›๏ธ!
Stars: โœญ 86 (-78.77%)
Mutual labels:  blog, hugo
Toha
A Hugo theme for personal portfolio
Stars: โœญ 267 (-34.07%)
Mutual labels:  blog, hugo
Hugo Vitae
Vitae is a blog theme for Hugo that focuses on your content.
Stars: โœญ 81 (-80%)
Mutual labels:  blog, hugo
Tableless
O site do Tableless em Hugo. Mais leve, impossรญvel.
Stars: โœญ 107 (-73.58%)
Mutual labels:  blog, hugo
Hugo Papermod
A fast, clean, responsive Hugo theme
Stars: โœญ 1,202 (+196.79%)
Mutual labels:  blog, hugo
Hugo Theme Console
A minimal, responsive and light theme for Hugo inspired by Linux console.
Stars: โœญ 143 (-64.69%)
Mutual labels:  blog, hugo
Hugo Handbook
Building static website with hugo - https://jimmysong.io/hugo-handbook
Stars: โœญ 58 (-85.68%)
Mutual labels:  blog, hugo
Medium To Hugo
Medium stories exporter to markdown/hugo articles.
Stars: โœญ 64 (-84.2%)
Mutual labels:  blog, hugo
Hugo Clarity
A theme for Hugo based on VMware Clarity
Stars: โœญ 189 (-53.33%)
Mutual labels:  blog, hugo
The Indie Web
A hotspot for indie creations on the web
Stars: โœญ 240 (-40.74%)
Mutual labels:  blog, hugo

Hugo Nuo

Hugo Nuo is an responsive light & clean hugo theme for blogger. This theme features several page layout, like an about page for your portfolio, a links page for your friends' blog, a tags page for your tags cloud, a works page is under development. This theme makes many third-party hugo shortcodes, including Codepen, JSFiddle, Video.js, Music 163 and Sheng Xiang, Asciinema.

Hugo Nuo Theme Screenshot

Or you want โ†’ A Real Site Demo | Hugo Nuo Theme Post Preview

ไธญๆ–‡ๅธฎๅŠฉ

Installation

Inside the folder of your Hugo site run:

$ cd themes
$ git clone https://github.com/laozhu/hugo-nuo

# Change theme field to 'hugo-nuo' in your config.toml
# Or just copy exampleSite/config.toml

For more information read the official setup guide of Hugo.

Getting Started

After installing the hugo-nuo theme successfully it requires just a few more steps to get your site finally running.

The config file

Take a look inside the exampleSite folder of this theme. You'll find a file called config.toml. To use it, copy the config.toml in the root folder of your Hugo site. Feel free to customize this theme as you like.

Main Menu

The hugo-nuo theme add home, works and tags page to initial site menu, you can add your own menu item here.

[[menu.main]]
  name = "Home"
  weight = 10
  identifier = "home"
  url = "/"

[[menu.main]]
  name = "Works"
  weight = 20
  identifier = "works"
  url = "https://github.com/laozhu"

[[menu.main]]
  name = "Tags"
  weight = 30
  identifier = "tags"
  url = "/tags/"

Or you can add some other page to menu in page's front matter:

---
title: 'Links'
date: 2017-08-02
layout: 'links'
menu: 'main'
weight: 40
---

Social Networks

The following social network icons are available:

[params]
  email = "[email protected]"
  github = "github_username"
  twitter = "twitter_username"
  linkedin = "linkedin_username"
  weibo = "weibo_username"
  wechat= "/images/qrcode.jpg" # Replace with your wechat qrcode image
  facebook = "facebook_username"
  google = "googlplus_id_number"
  instagram = "instagram_username"
  youtube = "youtube_username"
  vimeo = "vimeo_username"
  medium = "medium_username"
  quora = "quora_username"
  pinterest = "pinterest_username"
  dribbble = "dribbble_username"
  behance = "behance_username"
  jsfiddle = "jsfiddle_username"
  codepen = "codepen_username"
  zhihu = "zhihu_username"
  douban = "douban_username"
  bilibili = "bilibili_id_number"
  codesandbox = "codesandbox_username"
  stackoverflow = "stackoverflow_username"
  npm = "npm_username"
  reddit = "reddit_username"

You can choose someone to display, the recommend number is 7 icons.

Icons are provided by iconfont by default, but you can choose to use FontAwesome instead by adding fontAwesome = true to the [params] section.

SEO

The hugo-nuo theme support Google, Bing, Baidu, Sogou, 360 webmaster's meta verification tool, you can activate as required. The seotitle and description will show in search results and browser title.

[params]
  seotitle = "Hugo Blog Title (SEO Version)"
  description = "Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again."

  # Google Webmaster
  # https://www.google.com/webmasters/
  googleSiteVerification = "google_site_verification_code"

  # Bing Webmaster
  # https://www.bing.com/toolbox/webmaster/
  msValidate = "bing_site_verification_code"

  # Baidu Webmaster (China Only)
  # https://zhanzhang.baidu.com/
  # baiduSiteVerification = "baidu_site_verification_code"

  # Sogou Webmaster (China Only)
  # http://zhanzhang.sogou.com/
  # sogouSiteVerification = "sogou_site_verification_code"

  # 360 Webmaster (China Only)
  # http://zhanzhang.so.com/
  # soSiteVerification = "360_site_verification_code"

Website Analytics

The hugo-nuo theme support Google Analytics and Baidu Tongji, In China you can choose both Baidu Tongji and Google Analytics.

# Google Analytics UA number
googleAnalytics = "UA-XXXXXXXX-X"

[params]
  # Baidu Tongji (China Only)
  # https://tongji.baidu.com/
  baiduTongji = "baidu_tongji_code"

Social Comments

The hugo-nuo theme support Disqus and Chang Yan social comment system, In China you can choose Chang Yan because Disqus is blocked by GFW.

# Disqus Username
disqusShortname = "disqus_shortname"

[params]
  # Changyan Comments (China Only)
  changyan = false
  changyanId = "your_changyan_id"
  changyanConf = "your_changyan_conf"

If you want to use Disqus, you should disable changyan to false.

๐Ÿ†• Medium Zoom

If you want medium-like photo zoom in your post, you can add zoomable class to your img or figure tag, just something like below:

<img src="/media/posts/hugo-nuo-post-preview/01.jpg" class="zoomable">
{{% figure src="/media/posts/hugo-nuo-post-preview/01.jpg" alt="่ฟ™ๆ˜ฏไธ€ๅชๆข…่Šฑ้นฟ" title="ๆ˜พ็„ถ๏ผŒ่ฟ™ๆ˜ฏไธ€ๅชๆข…่Šฑ้นฟ" class="zoomable" %}}

The works page

The works page layout is under development, you can use github homepage for replacement temporarily.

[[menu.main]]
  name = "Works"
  weight = 20
  identifier = "works"
  url = "https://github.com/your_github_username"

The tags page

Thanks to @bwangelme's great PR, the tags page has been done, you can use this page by adding it to main menu.

[[menu.main]]
  name = "Tags"
  weight = 30
  identifier = "tags"
  url = "/tags/"

The links page

Inside the folder of your Hugo site run:

$ hugo new links.md
$ mkdir data && touch data/links.yml
$ mkdir -p content/media/links
$ vim content/links.md

Change the content of links.md, set page layout to links, If you want to add about page to menu, set menu to main and weight to 40.

---
title: 'Links'
date: 2017-08-02
layout: 'links'
menu: 'main'
weight: 40
---

The links page read data from data/links.toml file, now you can add friend's links there. The format looks like:

[chekun]
  title = "chekun's blog"
  link = "https://chekun.me"
  avatar = "/media/links/chekun.jpg"
  description = "A full-stack developer"

[wangbo]
  title = "Boof Wang"
  link = "http://boof.wang"
  avatar = "/media/links/wangbo.jpg"
  description = "Another full-stack developer"

The links page need friend's avatar, finally you should add friend's avatar to content/media/links directory and link to avatar in the links.toml file.

The about page

Inside the folder of your Hugo site run:

$ hugo new about.md
$ vim content/about.md

Change the content of about.md, set page layout to about, If you want to add about page to menu, set menu to main and weight to 50.

---
title: 'About'
date: 2017-08-02
layout: 'about'
menu: 'main'
weight: 50
comments: false
---

Write something about you here.

Write your portfolio as a post here, if you want comments in about page, you should turn comments to true.

The resume page

Inside the folder of your Hugo site run:

$ hugo new resume.md
$ cat << EOF > content/resume.md
---
title: "Resume"
date: 2017-12-01
layout: "resume"
---
EOF

Then create a file at data/resume.toml, where the resume page reads data from. You can reference exampleSite/data/resume.toml for how to construct your resume.

The resume page will be located at /resume off your website root. Different from the about page, the resume page is intended as a one pager that you can print out for job hunting.

Custom theme

If you don't want change default theme SCSS files, you can override styles with an custom SCSS file. Set file in your config.toml as below.

[params]
  # Overrid theme styles in this file
  customStyle = "styles/custom.scss"

Then create styles/custom.scss file and write your own styles there. your custom rules will override the default ones. you can place custom.scss in theme-scoped or site-scoped assets folder.

.
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ assets
โ”‚   โ””โ”€โ”€ styles
โ”‚       โ””โ”€โ”€ custom.scss โœ…
โ”œโ”€โ”€ config.toml
โ”œโ”€โ”€ content
โ””โ”€โ”€ themes
    โ””โ”€โ”€ hugo-nuo
        โ”œโ”€โ”€ assets
            โ”‚   โ”œโ”€โ”€ images
            โ”‚   โ”œโ”€โ”€ scripts
            โ”‚   โ”œโ”€โ”€ service-worker.js
            โ”‚   โ””โ”€โ”€ styles
                    โ”œโ”€โ”€ partials
                    โ”œโ”€โ”€ main.scss
            โ”‚       โ””โ”€โ”€ custom.scss โœ…
            โ””โ”€โ”€ theme.toml

If you want to change avatar or favicons without modifying this theme, just copy themes/hugo-nuo/assets and themes/hugo-nuo/static to your blog root dir and keep the filename the same with theme.

~/D/@/my-blog โฏโฏโฏ tree -L 2
.
โ”œโ”€โ”€ config.toml
โ”œโ”€โ”€ assets
โ”‚   โ””โ”€โ”€ images          <-- replace images
โ”œโ”€โ”€ static
โ”‚   โ”œโ”€โ”€ favicon.ico     <-- replace favicon.ico
โ”‚   โ”œโ”€โ”€ icons           <-- replace icons
โ”‚   โ””โ”€โ”€ manifest.json
โ””โ”€โ”€ themes
    โ””โ”€โ”€ hugo-nuo

Above is your blog repo structure, now you can replace images with your own, and don't need to modify theme anymore.

Build

โš ๏ธ Big Change

This theme has been using hugo pipes instead of webpack now, no build package needed now.

I use ImageOptim to make images load faster, I recommend this tool to you.

From Hugo 0.28, the default syntax hightlighter in Hugo is Chroma; it is built in Go and is really, really fast โ€“ and for the most important parts compatible with Pygments.

$ hugo gen chromastyles --style=monokai > ./src/styles/partials/syntax.css

Run hugo gen chromastyles -h for more options. See https://help.farbox.com/pygments.html for a gallery of available styles.

Nearly finished

In order to see your site in action, run Hugo's built-in local server.

$ hugo server

Now enter localhost:1313 in the address bar of your browser.

Credits

Also thanks to Steve Francia for creating Hugo and the awesome community around the project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].