Skip to content

Commit 60d2647

Browse files
author
Basu Jindal
committed
better links no html
1 parent 0546344 commit 60d2647

39 files changed

Lines changed: 383 additions & 226 deletions

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### 1. Create the Markdown File
66

7-
Create a new file in `/blogs/` with the naming format `POST_NAME.md`:
7+
Create a new file in `/blog-posts/` with the naming format `POST_NAME.md`:
88

99
```markdown
1010
---
@@ -24,15 +24,15 @@ Your content here...
2424

2525
### 2. Add Images (if needed)
2626

27-
Place any images in `/blogs/images/` and reference them in your markdown:
27+
Place any images in `/blog-posts/images/` and reference them in your markdown:
2828

2929
```markdown
3030
![Description](../../images/your-image.png)
3131
```
3232

3333
### 3. Add Blog Entry to Listing Page
3434

35-
Edit `/html/blogs.html` and add a new entry to the `blogs` array:
35+
Edit `/blogs/index.html` and add a new entry to the `blogs` array:
3636

3737
```javascript
3838
{ slug: 'POST_NAME', description: 'Brief description of the post' }
@@ -46,7 +46,7 @@ Add the new post to `sitemap.xml`:
4646

4747
```xml
4848
<url>
49-
<loc>https://basujindal.github.io/html/post.html?section=blogs&amp;p=POST_NAME</loc>
49+
<loc>https://basujindal.me/post/?section=blogs&amp;p=POST_NAME</loc>
5050
<priority>0.6</priority>
5151
</url>
5252
```
@@ -65,7 +65,7 @@ Place your image in the `/astrophotos/` directory. Supported formats: `.jpg`, `.
6565

6666
### 2. Add Gallery Entry
6767

68-
Edit `/html/photography.html` and add a new figure inside the gallery:
68+
Edit `/photography/index.html` and add a new figure inside the gallery:
6969

7070
```html
7171
<figure class="gallery-item"
@@ -91,12 +91,12 @@ Commit and push to `main` branch.
9191

9292
## Draft/In-Progress Content
9393

94-
For work-in-progress posts, use the `/inprogress/` directory instead:
95-
- Markdown files go in `/inprogress/`
96-
- Images go in `/inprogress/images/`
97-
- Access via `html/post.html?section=inprogress&p=POST_NAME`
94+
For work-in-progress posts, use the `/drafts/` directory instead:
95+
- Markdown files go in `/drafts/`
96+
- Images go in `/drafts/images/`
97+
- Access via `/post/?section=inprogress&p=POST_NAME`
9898

99-
Move to `/blogs/` when ready to publish.
99+
Move to `/blog-posts/` when ready to publish.
100100

101101
## To Do
102102

blogs/cuda.md renamed to blog-posts/cuda.md

Lines changed: 154 additions & 97 deletions
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

html/blogs.html renamed to blogs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h1 class="page-title fade-in">Blogs</h1>
3737
async function loadBlogs() {
3838
const grid = document.getElementById('blog-grid');
3939
const blogData = (await Promise.all(blogs.map(async (blog) => {
40-
const res = await fetch(`../blogs/${blog.slug}.md`);
40+
const res = await fetch(`../blog-posts/${blog.slug}.md`);
4141
const text = await res.text();
4242
const frontMatter = text.match(/^---\n([\s\S]*?)\n---/);
4343
let title = blog.slug;
@@ -61,7 +61,7 @@ <h1 class="page-title fade-in">Blogs</h1>
6161
const formatted = dateObj.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' });
6262
const delay = Math.min(index + 2, 5); // Cap delay at 0.5s
6363
grid.innerHTML += `
64-
<a href="post.html?section=blogs&p=${blog.slug}" class="blog-card fade-in" style="animation-delay: ${delay * 0.1}s; opacity: 0;">
64+
<a href="/post/?section=blogs&p=${blog.slug}" class="blog-card fade-in" style="animation-delay: ${delay * 0.1}s; opacity: 0;">
6565
<div class="blog-card-content">
6666
<time datetime="${blog.date}">${formatted}</time>
6767
<h2>${blog.title}</h2>

0 commit comments

Comments
 (0)