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

推荐订阅源

T
Threatpost
The Hacker News
The Hacker News
AWS News Blog
AWS News Blog
Spread Privacy
Spread Privacy
T
Tenable Blog
C
CERT Recently Published Vulnerability Notes
Cisco Talos Blog
Cisco Talos Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Securelist
P
Privacy & Cybersecurity Law Blog
Know Your Adversary
Know Your Adversary
T
The Exploit Database - CXSecurity.com
Latest news
Latest news
D
Darknet – Hacking Tools, Hacker News & Cyber Security
I
Intezer
F
Fortinet All Blogs
Engineering at Meta
Engineering at Meta
Simon Willison's Weblog
Simon Willison's Weblog
The Register - Security
The Register - Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
L
Lohrmann on Cybersecurity
C
Cyber Attacks, Cyber Crime and Cyber Security
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
H
Help Net Security
T
Threat Research - Cisco Blogs
D
DataBreaches.Net
S
Schneier on Security
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
P
Privacy International News Feed
S
Secure Thoughts
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recorded Future
Recorded Future
C
Cybersecurity and Infrastructure Security Agency CISA
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
人人都是产品经理
人人都是产品经理
NISL@THU
NISL@THU
博客园 - Franky
T
Tor Project blog
G
GRAHAM CLULEY
博客园 - 【当耐特】
Jina AI
Jina AI
Security Archives - TechRepublic
Security Archives - TechRepublic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
A
About on SuperTechFans
Hacker News - Newest:
Hacker News - Newest: "LLM"

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 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 Trigger the Ghost Portal popup based on page scroll progress How to Deploy Your Ghost Theme with GitHub Actions How to create a custom recommendations page for your Ghost CMS theme Ghost CMS News: New editor, refreshed settings & recommendations Ghost CMS News: Source - the new default theme and native image editing How to Add Different Logos for Dark & Light Themes in Ghost Upgrade to Node v18 for Ghost CMS & common errors Ghost Snippets: Adding Schema markup in Ghost How to add a scroll-based progress bar to your Ghost CMS site How to Create a Custom Navigation Template in Ghost How to Segment Subscribers with Member Labels in Ghost The best way to create a contact page in Ghost How to Use the Ghost Subscription Forms in Your Theme & Posts How to update your Ghost site URL when self-hosting Ghost CMS News: Signup cards and better landing pages How to Add Breadcrumbs to Your Ghost Theme How to integrate the Applause Button into your Ghost theme How to Hide a Post From the Home Page in Ghost CMS Ghost CMS block and contentFor helper overview & tips How to add Image Lightbox to Ghost Themes Ghost CMS News: Signup form embed, new editor and bulk actions. Biron Themes becomes Bright Themes 🎉 How to Audit & Test a Ghost Theme How to Create Related Posts Section in Ghost How to Use Ghost Filter Expressions Ghost CMS newsletter settings and post analytics How to Update Your Ghost Theme When We Release New Versions Ghost CMS News: Automatic list cleaning & email troubleshooting How to Create a Featured Post Slider in Ghost How to Add Reading Time to Ghost Blog Posts How to Create a Post Archive for Your Ghost Theme Ghost CMS Price Helper Overview & Tips Self-Hosted Ghost CMS with DigitalOcean Ghost CMS News: Member Growth Sources & Audience Feedback How to Open External Links in a New Tab in Ghost How to Integrate Google Analytics with Ghost Ghost CMS News: History Log & Newsletter Analytics How to Automatically Add Member Labels From Referral Traffic in Ghost? Ghost CMS News: Free trials & email notifications Ghost CMS Match Helper Usage & Tips Ghost CMS News: Native Comments Ghost CMS News: Ghost Explore & Premium Newsletter Previews Ghost Snippets: Custom Progress Cards & Steps Ghost CMS News: Native Search The Best Ghost CMS Search Plugins & Libraries Ghost Snippets: Custom Stylish Tables How to Add a Scroll Top & Progress Indicator Button in Ghost Ghost Snippets: Accordions How to Add Tag Dropdown to Your Ghost Theme Ghost 5.0 released 🎉 Ghost Snippets: Custom Subscribe Forms Ghost Snippets: Custom Alert Boxes How to Show Post or Newsletter Issue Number in Ghost How to Self-Host Google Fonts in Ghost CMS Ghost CMS News: Membership, Tiers & Activity Feed Custom Pages in Ghost CMS Themes Ghost CMS Search Using Fuse.js Ghost CMS News: Offers and Discounts & New Cards Ghost CMS News: Membership tiers, email CTA & filters Ghost CMS News: Grammarly Support & Feature Image Captions. Ghost CMS News: Improved Member Accounts & Personalized Newsletter. Ghost 4.0 Launched With Native Newsletters & Membership Ghost CMS News: Cancellation Feedback & Newsletter Stats. Ghost CMS News: Improved Member Dashboard & Sidebar Views. Ghost CMS News: Google Pay support, email newsletters & secondary navigation Ghost CMS News: Member Support, Portal & Content Snippets. Ghost CMS News: Referral Programs & Responsive Images. Ghost Themes as Progressive Web Apps Ghost 3.0 is here with brand new features Ghost 2.0 is here with new features How to Add Search to Ghost Using ghostHunter
How to add members-specific sections in Ghost
Bright Themes · 2025-02-25 · via Example blog

Starting with Ghost 4.0 memberships and newsletters are natively part of the platform, Ghost is not just a blogging platform anymore but with the features that have been added it's much more than that.

When we are talking about post content you can check out this guide for using the public preview and customizing the content CTA.

For some more advanced changes related to different templates you have and to really take advantage of these features you might need to adjust your Ghost theme and make some sections of your site free member or paid member specific. This can be done quite easily with the helpers provided by Ghost:

{{#if @member.paid}}

  {{! Content for paid members }}

{{else if @member}}

  {{! Content for free members }}

{{else}}

  {{! Content for regular users }}

{{/if}}

These are the conditions you can use in your Ghost template files to check whether the current user is a paid member, free member or a regular user. You can use this to customize your theme.

Next, let's see some use cases, besides the post content.

Custom account page

You can create custom account page if you don't want to use the Ghost Portal feature. When creating such a page, you can show different content to users depending on their status.

For a paid member you can build a profile using the member attributes provided by Ghost. Then the member subscription attributes can be used to show the subscription info of the user, such as the status of the subscription, until when the subscription is valid and much more.

You can even show a preview of posts depending on the access level of the current user.

For free members you can build a profile section using the member attributes similarly to paying users. Another section that can be great for free members is a way to upgrade and for this you can build a checkout section containing the different tiers available, monthly and yearly pricing with details and an easy way to subscribe.

Regular users should have no access to the account page, for them a redirect can be implemented:

<script>
  window.location = '{{@site.url}}/signin/';
</script>

Check out the account page in our Dashi theme.

Custom membership page

A membership page can be a great way to list the different tiers users can subscribe to and also give some detail about each plan.

Here is how the structure of such a page would look like:

{{#if @member.paid}}
  <script>window.location = '{{@site.url}}/account/';</script>
{{else}}
  {{#unless @member}}
    {{> pricing/free}}
  {{/unless}}

  {{> pricing/monthly}}
  {{> pricing/yearly}}
{{/if}}

Paid members would be redirected to the account page, as that one would give the information about their subscription.

The free plan would be shown only to regular users, if we are dealing with a free member then we only show the premium plans, the monthly and yearly pricing plans.

Check out the membership page in our Dashi theme.

Besides the specific pages like membership and account, you might want to show different content to members in the header like additional links, or even in the footer or sidebar sections you can use the conditions to optimize the content.

In the header section you can use the checks to either show "Login", "Subscribe" buttons for regular users, or simple "Upgrade" to free members, while for paid members you can show an "Account" link.

In the footer or sidebar section of a theme you can implement a subscribe form, which should not be displayed for paying members. That could be handled like this:

{{#if @member.paid}}
{{else if @member}}
  <h4>{{t "Premium Membership"}}</h4>
  <div>{{t "Unlock full access to see the entire library by subscribing to a paid plan."}}</div>
  <a href="/membership/">{{t "Upgrade"}}</a>
{{else}}
  <h4>{{@site.title}}</h4>
  <div>{{t "Get the latest insights directly to your inbox!"}}</div>
  {{> subscribe-form}}
{{/if}}

Paying members would not see this section, free members would get a cta to upgrade with a link to the membership page and regular users would see a form where they can subscribe and become members. These are just a couple of use cases, but there can be much more.

I hope you found this guide helpful.