-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from xqsit94/archive-post
Archive Post
- Loading branch information
Showing
7 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: Archived Post Example | ||
path: /archived | ||
date: 2021-10-18 | ||
summary: Archived Post Example - Just add is_archived true to your markdown post. | ||
tags: ['archived'] | ||
categories: ['archived'] | ||
thumbnail: ./archived.png | ||
is_archived: true | ||
--- | ||
|
||
## How to Archive Post | ||
To archive a post add `is_archived: true` to your markdown post. This will add div block | ||
on top of the archived post with title and text. To change the default archive title and text add following | ||
key to the .env file | ||
|
||
```dotenv | ||
ARCHIVE_TITLE='ARCHIVED POST' | ||
ARCHIVE_TEXT='This Post is outdated.' | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,6 +137,7 @@ query Search { | |
path | ||
title | ||
summary | ||
is_archived | ||
thumbnail | ||
categories { | ||
id | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters