惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
V
Visual Studio Blog
C
Check Point Blog
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
量子位
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
M
MIT News - Artificial intelligence
爱范儿
爱范儿
B
Blog RSS Feed
MyScale Blog
MyScale Blog
H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
美团技术团队
L
LangChain Blog
D
Docker

Example blog

Ghost routing explained with routes.yaml examples — routes, collections & taxonomies Ghost redirects explained with practical redirects.yaml examples How to Serve JSON or XML Data in Ghost How to Change Your Default Post Template in Ghost Ghost Custom Theme Settings How to add Google Fonts to Ghost Themes How to Configure Ghost with Mailgun Ghost Theme Structure & Organization How to Make Custom Templates in Ghost Themes How to Install Ghost CMS via Ghost-CLI How to Add Syntax Highlighting to Ghost The best Ghost CMS hosting platforms Ghost 6.0 — Social Web and Native Ghost Analytics Ghost CMS Social web beta, email 2FA and more author social links How to keep custom design settings when updating your Ghost theme How to use the public preview card in Ghost How to add members-specific sections in Ghost How to customize the default content CTA in Ghost How to build a custom homepage in Ghost An overview of Ghost editor cards and and how they work Ghost CMS News: One-time payments & collecting sales tax How to customize the private site access template in Ghost How to add custom fonts in Ghost themes Ghost CMS News: Additional payment methods & internal linking How to use Code Injection in Ghost How to set meta data of your custom routes & collections in Ghost Ghost CMS News: TK reminders, ActivityPub and improvements How to format dates and use the date helper in Ghost Ghost CMS internationalization, custom fonts & spam protection Understanding and optimizing post and page settings in Ghost CMS
Ghost CMS News: Native Comments
Bright Themes · 2022-08-16 · via Example blog

After the release of the native search function in July, the Ghost team released another great feature: native comments. Comments were the second most requested feature of all time, after search. It's great seeing these features from the Ghost team!

To enable the native comments go to Settings > Membership > Commenting. You will have the following options:

  • Nobodyto disable comments (default setting)
  • All membersenable comments for logged-in members
  • Paid-members onlyenable comments for logged-on paid members only

Additionally, members are asked to complete their profile (they can edit it later on).

Ghost comments profile
Ghost comments profile

Members can reply to comments, like comments, and edit or delete their own comments. There are built-in email notifications every time someone replies to a member comment to help with engagement (this can be toggled on or off from the member profile page in Portal)

Authors also receive email notifications when conversations are happening on posts they have published.

The Ghost team has thought about core features that go together with comments, such as moderation. Some important things to avoid spam and keep the community healthy:

  • Member-only commentsComments can only be created by logged-in members, which helps protect you from spam and negativity.
  • On-page moderation toolsStaff users with the owner or administrator role can moderate comments right from the comment thread.
  • Comment reportingSite owners are emailed when any comment is reported by another member.

There is also an official guideline template, that is recommended to have by the team.

The new {{comments}} helper will be responsible for rendering the UI and the commenting functionality. To add native comments to a custom theme you will have to include the new helper in the post template.

By default, {{comments}} outputs a title and comment count. These elements, along with the color mode and the saturation of the avatar's background color, can be customized via attributes:

  • titleheader text for the comment section
  • counttoggle comment count on or off
  • modeset light or dark mode for comments (auto will determine it automatically)
  • saturationset the saturation of the avatar background color

Example usage of the comments helper:

{{comments title='Join the conversation' count=false mode='auto' saturation=75}}

The {{comment_count}} can be used to output the number of comments a post has. This option is useful for displaying the comment count at the top of the post or on the homepage within the post feed.

The attributes:

  • emptywhat to output when there are no comments
  • singularthe singular name for a comment
  • pluralthe plural name for comments
  • autowrapwraps comment count in an HTML tag
  • classadd a custom class to the wrapper element

Example usage of the helper:

{{comment_count
  empty=''
  singular='comment'
  plural='comments'
  autowrap='span'
  class='comments--count'
}}

Check out the official docs for more information.