Danh mụcThẻBài viết

admin

I'm a Full-stack developer

Thẻ

Linked List
Data Structure
Chat GPT
Design Pattern
Microservices
API
AWS CDK
ReactJS
AWS Lightsail
Flutter Mobile
Part 4: Creating Static Home Page on Ghost CMS
Ngày đăng: 17/06/2023

I believe that many of you are asking the question: How to fix the home page of Ghost CMS as desired? and are struggling to find many different sources of documentation. Here, follow your steps below, it will answer you in the most clear and obvious way.


Follow me:

Step 1: Download the theme you are using to your local machine


  • Login to the Ghost Administration Dashboard.
  • Switch to the Settings page by clicking the Setting Icon in the lower left corner of the dashboard screen.
  • Next, select Design session.


Step 2: Extract the theme you downloaded and open it

Step 3: Create home.hbs file

Step 4: Add content to the file home.hbs

{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}

{{!-- Main --}}
<main id="main">
    {{#page}}
        {{content}}
    {{/page}}
</main>


Step 5: zip your theme

yarn zip


Step 6: Update route.yaml file


  • On Administration Dashboard, go to settings then select Lab session
  • Download file

  • Edit the content file and re-upload Ghost
routes:
  /:
    data: page.home
    template: home

collections:
  /blog/:
    permalink: /blog/{slug}/
    template: index:post

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/


Step 7: Create a homepage on Ghost


  • The file URL should be /home


Step 8: Upload your theme to Ghost


After your theme has been successfully uploaded, you can experience your blog with a custom-designed home page.


Thank you for following!!!

Đề xuất

What are data structures?
admin06/04/2024

What are data structures?
In this article, I would like to introduce the Data Structures for a beginner's guide
Extract data using web scraping with Python
admin14/03/2024

Extract data using web scraping with Python
A beginner’s guide to learn web scraping with Python!
TypeScript Design Pattern - Prototype
admin07/08/2023

TypeScript Design Pattern - Prototype
The prototype pattern is one of the Creational pattern groups. The responsibility is to create a new object through clone the existing object instead of using the new key. The new object is the same as the original object, and we can change its property does not impact the original object.
Mới nhất

TypeScript Design Pattern - Prototype
admin07/08/2023

TypeScript Design Pattern - Prototype
The prototype pattern is one of the Creational pattern groups. The responsibility is to create a new object through clone the existing object instead of using the new key. The new object is the same as the original object, and we can change its property does not impact the original object.
Part 5: Creating a Tag List Page on Ghost CMS
admin17/06/2023

Part 5: Creating a Tag List Page on Ghost CMS
In this article, I will show you how to create a Tag list page using the Casper theme.
Design Patterns
admin07/08/2023

Design Patterns
The design pattern does not be a specific programming language. Almost programming languages might apply design patterns that to resolve a problem repeat.
Đinh Thành Công Blog

My website, where I write blogs on a variety of topics and where I have some experiments with new technologies.

hotlinelinkedinskypezalofacebook
DMCA.com Protection Status
Góp ý
Họ & Tên
Số điện thoại
Email
Nội dung
Tải ứng dụng
hotline

copyright © 2023 - AGAPIFA

Privacy
Term
About