theme-next / hexo-theme-next

Elegant and powerful theme for Hexo.
https://theme-next.org
Other
8.17k stars 2.05k forks source link

Add icon display and width to cc in _config.yml, site-overview.swig, sidebar.styl, base.styl #1606

Closed ghost closed 3 years ago

ghost commented 3 years ago

PR Checklist

PR Type

What is the current behavior?

Issue resolved: #1605

What is the new behavior?

Since the theme usually uses git submodules for maintenance, it is hoped that only the theme configuration file can be modified to achieve this function without changing the theme/next file.

Idea source: Please select the style you want to display on the page: standard or compact

Creative commons sidebar style, hope is standard style and modify the width, for example: Creative Commons License Agreement

How to use?

In NexT _config.yml:

......
creative_commons:
  license: by
  sidebar: true
  post: false
  language:

  # Icon Display, available values:
  #  - compact   Default.
  #  - standard  see https://github.com/theme-next/hexo-theme-next/issues/1605
  icon_display: compact

  # Manual define the icon width. If commented, will be default for:
  # Muse | Mist | Pisces | Gemini: 80
  #icon_width: 100
......
welcome[bot] commented 3 years ago

Thanks so much for opening your first PR here!

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.