Skip to content

Commit

Permalink
Update first post and script
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-wijaya committed Sep 7, 2024
1 parent 9361cf7 commit 3428e1d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions _posts/2024-09-06-my-first-post.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ description: >-
I finally decided to start some sort of blog where I can document what I’ve learned along my software engineering journey!
author: ryo
categories: [Admin]
pin: true
image: assets/img/eevee-tar.jpeg
image:
path: assets/img/admin/first-post-resized.jpg
caption: My dog Eevee chilling in a field.
alt: My dog Eevee chilling in a field.
date: 2024-09-06 20:25:00 +0800
pin: true
published: true
comments: true
toc: true
Expand Down
Binary file added assets/img/admin/first-post-resized.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions new_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
date = datetime.now(sgt).strftime("%Y-%m-%d %H:%M:%S %z")
filename = f"_posts/{datetime.now(sgt).strftime('%Y-%m-%d')}-{slug}.md"

# Front matter template
# Front matter template with image options
front_matter = f"""---
layout: post
title: "{title}"
Expand All @@ -25,7 +25,10 @@
author: ryo
date: {date}
categories: [Category1, Category2]
image: /path/to/image
image:
path: /path/to/image
caption: "This is the caption for the feature image."
alt: "A description of the image."
toc: true
comments: false
pin: false
Expand Down

0 comments on commit 3428e1d

Please sign in to comment.