-
Notifications
You must be signed in to change notification settings - Fork 0
Add blog subpage with example post and nav link #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| --- | ||
| layout: default | ||
| --- | ||
|
|
||
| <div class="container"> | ||
| <header class="site-header"> | ||
| <h1 class="site-title">{{ page.title }}</h1> | ||
| <p class="blog-post-meta">{{ page.date | date: "%B %-d, %Y" }}</p> | ||
| <nav class="site-nav"> | ||
| <a href="{{ '/' | relative_url }}" class="nav-link">Home</a> | ||
| <a href="{{ '/blog.html' | relative_url }}" class="nav-link">Blog</a> | ||
| </nav> | ||
|
Comment on lines
+9
to
+12
|
||
| </header> | ||
|
|
||
| <div class="blog-post-content"> | ||
| {{ content }} | ||
| </div> | ||
| </div> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| layout: post | ||
| title: "Hello World" | ||
| date: 2026-03-01 | ||
| --- | ||
|
|
||
| Welcome to my blog! This is my first post, and I'm excited to share some thoughts and experiences here. | ||
|
|
||
| ## What to expect | ||
|
|
||
| I plan to write about topics that interest me, including: | ||
|
|
||
| - **Software engineering** – lessons learned, tools I enjoy, and things I find interesting. | ||
| - **Side projects** – updates on personal projects and experiments. | ||
| - **Reflections** – occasional thoughts on the industry and beyond. | ||
|
|
||
| ## Getting started | ||
|
|
||
| Building this site has been a fun exercise in keeping things simple. Jekyll makes it easy to focus on content while keeping the underlying structure clean and minimal — which aligns well with my taste in design. | ||
|
|
||
| Stay tuned for more posts. Thanks for stopping by! |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| --- | ||
| layout: default | ||
| title: Blog | ||
| --- | ||
|
Comment on lines
+1
to
+4
|
||
|
|
||
| <div class="container"> | ||
| <header class="site-header"> | ||
| <h1 class="site-title">Blog</h1> | ||
| <nav class="site-nav"> | ||
| <a href="{{ '/' | relative_url }}" class="nav-link">Home</a> | ||
| <a href="{{ '/contact.html' | relative_url }}" class="nav-link">Contact</a> | ||
| </nav> | ||
| </header> | ||
|
|
||
| <div class="blog-list"> | ||
| {% if site.posts.size > 0 %} | ||
| {% for post in site.posts %} | ||
| <article class="blog-post-preview"> | ||
| <h2 class="blog-post-title"> | ||
| <a href="{{ post.url | relative_url }}">{{ post.title }}</a> | ||
| </h2> | ||
| <p class="blog-post-meta">{{ post.date | date: "%B %-d, %Y" }}</p> | ||
| {% if post.excerpt %} | ||
| <p class="blog-post-excerpt">{{ post.excerpt | strip_html | truncate: 200 }}</p> | ||
| {% endif %} | ||
| </article> | ||
| {% endfor %} | ||
| {% else %} | ||
| <p style="text-align: center; color: #666;">No posts yet. Check back soon!</p> | ||
| {% endif %} | ||
| </div> | ||
| </div> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link points to
/blog.html. If the intent is a/blogsection (per PR description), update this href to the canonical/blog/route (and ensure the blog page has a matching permalink).