Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Sync Sourcery
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatfix committed Aug 12, 2024
2 parents d23ae20 + b7ed8b8 commit e9c81ed
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@

[Link to creating your own Octocat](https://myoctocat.com/build-your-octocat/)

<<<<<<< HEAD
## Posts
<nav>
<ul>
<li><a href="{{ site.baseurl }}/feed.html">Posts Feed</a></li>
</ul>
</nav>
=======

# Posts
>>>>>>> b7ed8b8e9e83e21451fe73b92eeea6f0292c4d99
59 changes: 59 additions & 0 deletions _posts/2024-07-25-Creating A Template For Github Page Posts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
layout: post
title: "Creating A Template"
date: 2024-08-01
---
# How do I create a template for posts for my posts on my Github Page?


To create a template for posts on your GitHub Page using Jekyll, you can follow these steps:

1. **Create a [`_posts`](command:_github.copilot.openRelativePath?%5B%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fjohnjohn%2Fthecatfix.github.io%2F_posts%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%5D "/Users/johnjohn/thecatfix.github.io/_posts") directory**: This is where all your blog posts will be stored.
2. **Create a new Markdown file**: The file name should follow the format `YYYY-MM-DD-title.md`.
3. **Add front matter to the file**: This is YAML code at the top of the file that specifies metadata for the post.

Here's a detailed plan:

1. Create a [`_posts`](command:_github.copilot.openRelativePath?%5B%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fjohnjohn%2Fthecatfix.github.io%2F_posts%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%5D "/Users/johnjohn/thecatfix.github.io/_posts") directory if it doesn't exist.
2. Create a new Markdown file in the [`_posts`](command:_github.copilot.openRelativePath?%5B%7B%22scheme%22%3A%22file%22%2C%22authority%22%3A%22%22%2C%22path%22%3A%22%2FUsers%2Fjohnjohn%2Fthecatfix.github.io%2F_posts%22%2C%22query%22%3A%22%22%2C%22fragment%22%3A%22%22%7D%5D "/Users/johnjohn/thecatfix.github.io/_posts") directory with the name format `YYYY-MM-DD-title.md`.
3. Add the following front matter to the file:

```markdown
---
layout: post
title: "Your Post Title"
date: YYYY-MM-DD
categories: [category1, category2]
tags: [tag1, tag2]
---
```

4. Write your post content below the front matter.

### Example

1. **Create the `_posts` directory**:
```sh
mkdir -p _posts
```

2. **Create a new post file**:
```sh
touch _posts/2024-01-01-my-first-post.md
```

3. **Add front matter and content**:

```markdown
---
layout: post
title: "My First Post"
date: 2024-01-01
categories: [blog, tutorial]
tags: [jekyll, github pages]
---
This is the content of my first post.
```

This template will help you maintain consistency across your blog posts on your GitHub Page.

0 comments on commit e9c81ed

Please sign in to comment.