No description
Find a file
2023-09-27 09:53:12 +00:00
.github/workflows 2023-09-26 15:08:02 2023-09-26 15:08:02 +00:00
archetypes 2023-09-26 19:57:02 2023-09-26 19:57:02 +00:00
assets 2023-09-27 09:53:12 2023-09-27 09:53:12 +00:00
data 2023-09-27 09:35:14 2023-09-27 09:35:14 +00:00
i18n 2023-09-26 20:03:50 2023-09-26 20:03:50 +00:00
layouts 2023-09-26 15:45:14 2023-09-26 15:45:14 +00:00
.gitignore 2023-09-26 15:07:30 2023-09-26 15:07:31 +00:00
CHANGELOG.md 2023-09-26 15:07:30 2023-09-26 15:07:31 +00:00
CONTRIBUTING.md 2023-09-26 15:07:30 2023-09-26 15:07:31 +00:00
go.mod 2023-09-26 15:07:30 2023-09-26 15:07:31 +00:00
LICENSE 2023-09-26 15:07:30 2023-09-26 15:07:31 +00:00
README.md 2023-09-26 15:07:30 2023-09-26 15:07:31 +00:00
theme.toml 2023-09-26 15:07:30 2023-09-26 15:07:31 +00:00

Hugo UI Blog

Blog theme for Hugo.

Install

git submodule add 'https://github.com/pkgstore/hugo-ui-blog.git' 'themes/ui-blog'

Update

git submodule update --remote --merge

Uninstall

m='ui-blog'; git submodule deinit -f "themes/${m}"; git rm -r --cached "themes/${m}"; rm -rf ".git/modules/themes/${m}"; rm -rf "themes/${m}"

Configuration

Theme configuration for params.yml.

# -------------------------------------------------------------------------------------------------------------------- #
# API.
# -------------------------------------------------------------------------------------------------------------------- #

api:
  user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'

# -------------------------------------------------------------------------------------------------------------------- #
# Search.
# -------------------------------------------------------------------------------------------------------------------- #

search:
  bing:
    enabled: 0
  google:
    enabled: 1
  yandex:
    enabled: 0

# -------------------------------------------------------------------------------------------------------------------- #
# Taxonomy.
# -------------------------------------------------------------------------------------------------------------------- #

taxonomy:
  authors:
    grid:
      cols: 2
    cover:
      size: '120px'
      avatar:
        size: '256'
  categories:
    grid:
      cols: 3
    cover:
      size: '96px'
      icon:
        name: 'far fa-folder-open'
        size: '2x'

# -------------------------------------------------------------------------------------------------------------------- #
# Node.
# -------------------------------------------------------------------------------------------------------------------- #

node:
  cover:
    image:
      enabled: 1
      placeholder: 'https://images.unsplash.com/photo-1585776245991-cf89dd7fc73a'
      crop: 'entropy'
      fit: 'crop'
      lg:
        width: 1600
        height: 900
      md:
        width: 160
        height: 160
  tabs:
    info:
      enabled: 1
      categories:
        enabled: 1
      tags:
        enabled: 1
      authors:
        enabled: 1
      related:
        enabled: 1
      meta:
        enabled: 1
      stats:
        enabled: 1
    license:
      enabled: 1
    share:
      enabled: 1
      social:
        enabled: 1
      qrcode:
        enabled: 1
      url:
        enabled: 1
      file:
        enabled: 1

Functions

  • If article is in InDev category, then a notification appears about updating article.
  • If article is in Opinion category, then a notification about personal opinion appears in article.