next-theme / hexo-next-giscus

Giscus comment system for NexT
MIT License
24 stars 3 forks source link

Add options: input_position,loading #6

Closed dwdh closed 2 years ago

dwdh commented 2 years ago

PR Checklist

PR Type

What is the current behavior?

Issue resolved:

What is the new behavior?

How to use?

In site _config.yml:

# For more information: https://giscus.app/
giscus:
  enable: false
  repo: # Github repository name
  repo_id: # Github repository id
  category: # Github discussion category
  category_id: # Github discussion category id
  # Available values: pathname | url | title | og:title
  mapping: pathname
  # Available values: 0 | 1 
  reactions_enabled: 1
   # Available values: 0 | 1 
  emit_metadata: 1
  # Available values: light | dark | dark_high_contrast | transparent_dark | preferred-color-scheme
  theme: light
  # Available values: en | zh-C
  lang: en
  # Available value: anonymous 
  crossorigin: anonymous
  # Place the comment box above the comments
  input_position: bottom
  # Load the comments lazily
  loading: