1 Star 0 Fork 0

7sings/blist-hugo-theme

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Blist theme for Hugo

Latest Release Blist hugo theme Hugo generator

Blist is a clean and fast blog theme for your Hugo site.

Blist Icon

Features:

  • Responsive content / Mobile-optimized
  • Blog pagination
  • Text Search
  • Social links
  • Code highlighting
  • Color customization
  • Dark mode
  • Fast performance
  • SEO optimized
  • i18n support

Preview

Preview

➡️ DEMO

Get the theme

Minimum Hugo Version: 0.82.1

Run from the root of your Hugo site:

git clone https://github.com/apvarun/blist-hugo-theme.git themes/blist

Alternatively, you can include this repository as a git submodule. This makes it easier to update this theme if you have your Hugo site in git as well:

git submodule add https://github.com/apvarun/blist-hugo-theme.git themes/blist

Preview the theme with example content

Blist theme ships with an fully configured example site. For a quick preview:

Copy the package.json file from themes/showcase folder to your hugo website root folder, and run npm install.

cd themes/blist/exampleSite/
hugo serve --themesDir ../..

Then visit http://localhost:1313/ in your browser to view the example site.

Configuring theme to a hugo website

  1. Copy package.json and package-lock.json to the root folder of your the website
  2. Run npm install to install required packages for theme
  3. Run npm i -g postcss-cli to use PostCSS with Hugo build
  4. Set theme = 'blist' in config.toml
  5. Run npm start to start your local server

Make sure to commit the above changes to your repository.

When deploying to services like Netlify or Vercel, use the following command for building your site:

npm i && hugo -D --gc

Add content

The following explains how to add content to your Hugo site. You can find sample content in the exampleSite/ folder.

Structure:

.
├── ...
├── blog       # Blog Section
│   ├── post1   # Post 1
│   ├── post2   # Post 2
│   └── _index
└── ...

Configure your site

From exampleSite/, copy config.toml to the root folder of your Hugo site and change the fields as you like. Helpful comments are provided.

Menu

Menu in Blist theme is pre-set to have all section names. You can include custom links in header using the menu.main option config.toml.

Logo

logo param in the site config will allow to use an image as the logo instead of the website name. It is localizable and so can have different logo for different languages

Darkmode

[params.darkModeToggle] enables the dark mode toggle in header. The preference is then saved so that the mode is automatically chosen for return visits.

Customize Ascent Color

Use [params.ascentColor] to change the default pink color to any supported color from the list of default colors from Tailwind CSS.

Some example values: bg-blue-200, bg-yellow-300

Search

[params.enableSearch] option is used to enable search option in the theme.

  • Adds the search icon in header
  • Generates the search index
  • Uses fuse.js to enable searching through content

In order to search, you can either click on the search icon from header or press Ctrl/Cmd + / key combination.

Note:

Make sure to enable JSON in outputs array.

[outputs]
  home = ["HTML", "RSS", "JSON"]

Latex

Enable Mathematical options: set math: true in your markdown frontmatter

Google Analytics

Set googleAnalytics in config.toml to activate Hugo's internal Google Analytics template.

Performance

Pagespeed Insights Performance

Issues

If you have a question, please open an issue for help and to help those who come after you. The more information you can provide, the better!

Contributing

Contributions, issues, and feature requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

apvarun
apvarun
engel-b
engel-b
lucab85
lucab85

License

Licensed under MIT

🤝 Support

Give a ⭐️ if you like this project!

Buy Me A Coffee

The MIT License (MIT) Copyright (c) 2021 Varun A P Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
HTML 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rockwu_admin/blist-hugo-theme.git
git@gitee.com:rockwu_admin/blist-hugo-theme.git
rockwu_admin
blist-hugo-theme
blist-hugo-theme
main

搜索帮助