Air is a single-column theme for Hugo. Ported from Casper theme for Ghost , vjeantet/hugo-theme-casper
github actions
blog demo : http://syui.github.io/hugo-theme-air
blog source : https://github.com/syui/hugo-theme-air
$ git clone https://github.com/syui/hugo-theme-air
$ cd hugo-theme-air
$ hugo
$ hugo server
---------------------------------
$ curl 127.0.0.1:1313/hugo-theme-air
https://github.com/syui/hugo-theme-air/blob/master/static/css/screen.css#L1995
...slow
post
folder (content/post
)mkdir themes
cd themes
git clone https://github.com/syui/hugo-theme-air
hugo server -t hugo-theme-air
config.toml
$ cat config.toml.backup
$ cp config.toml.backup config.toml
Example : config.toml
In addition to providing data for a single author as shown in the example above, multiple authors can be configured via data/authors/*.(yml, toml, json) entries. If the key provided in .Site.Params.author matched a data/authors/* entry, it will be used as the default. Overrides per page can be done by a simple author = other_author_key entry in the front matter. For those pages where you want to omit the author block completely, a .Params.noauthor entry is also available.
$ hugo new post/foo.md
$ cat content/post/foo.md
Example author definition file:
name: John Doe
bio: The most uninteresting man in the world.
location: Normal, IL
website: http://example.com
Example override author per page file:
+++
author = ""
date = "2014-07-11T10:54:24+02:00"
title = ""
...
+++
Contents here
+++
author = ""
date = "2014-07-11T10:54:24+02:00"
draft = false
title = "dotScale 2014 as a sketch"
slug = "dotscale-2014-as-a-sketch"
tags = ["event","dotScale","sketchnote"]
image = "images/2014/Jul/titledotscale.png"
comments = true # set false to hide Disqus comments
share = true # set false to share buttons
menu = "" # set "main" to add this content to the main menu
+++
Contents here
You can easyly create a new content with all metadatas used by this theme, using this command
hugo new -t hugo-theme-air post/my-post.md
# build
$ hugo
$ cd public
# preview
$ jekyll server
$ rm -rf _site
# make repository
$ git init
$ git remote add origin $url
$ git add .
$ git commit -m "first commit"
$ git push -u origin master
# push branch:gh-pages
$ git checkout -b gh-pages
$ git commit -m "open pages"
$ git push -u origin gh-pages
# open
$ curl user.github.io/repository
Replace static/images/user.png
with myfile.
Please close the browser and rerun hugo server.
point :BaseUrl
, authorwebsite
last slash /
BaseUrl= "https://localhost/"
[params]
authorwebsite = "https://localhost"
logo = "images/user.png"
rewrite layout/index.html
{{ range $index, $page := $paginator.Pages }}
{{ .Render "li" }}
{{ end }}
{{ range .Site.RegularPages.ByTitle }}
{{ .Render "li"}}
{{ end }}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。