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

Create Project with Express + TypeScript + ESLint + Auto Reload
admin12/06/2023

Create Project with Express + TypeScript + ESLint + Auto Reload
In this article, I introduce to you how to initialize an Express + TypeScript project.
Writing a Data Transformation Pipeline Using Go
admin20/03/2024

Writing a Data Transformation Pipeline Using Go
In this article, I will show how to implement data processing using the Go programing language with a simple tutorial.
Semantic Versioning NodeJS
admin07/07/2023

Semantic Versioning NodeJS
How to Use Semantic Versioning in NPM
Mới nhất

NodeJS Verify and Decode Cognito JWT Tokens
admin12/06/2023

NodeJS Verify and Decode Cognito JWT Tokens
In this article, I will show you how to verify and decode the Cognito JWT Tokens token.
Part 3: React Fragments
admin18/06/2023

Part 3: React Fragments
In this part, I will show you about good benefits when using fragments in React.
State management with redux in Flutter
admin14/06/2023

State management with redux in Flutter
In this article I will show an example to manage state in Flutter application using Redux.
Đ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