add
This commit is contained in:
1 parent
bea0fff388
commit
4ac51969e2
37 files changed
+1270
-166
No files matched your search
@@ -0,0 +1,37 @@
|
||||
# 📁 blog-data — เนื้อหาหน้า "บทความ" (#/blog)
|
||||
|
||||
ระบบเดียวกับ `about-data/` — **แต่ละบทความ = textN.json + picN.\*** จับคู่กันตามเลข
|
||||
(`text1.json`+`pic1.jpg`, `text2.json`+`pic2.jpg`, ...) ระบบไล่เลขไปเรื่อย ๆ จนหาไม่เจอแล้วหยุดเอง
|
||||
|
||||
## รูปแบบ textN.json
|
||||
|
||||
```json
|
||||
{
|
||||
"date": "2026-09-14",
|
||||
"th": { "title": "หัวข้อบทความ", "tag": "ข่าว", "body": ["ย่อหน้าที่ 1", "ย่อหน้าที่ 2"] },
|
||||
"en": { "title": "Post title", "tag": "News", "body": ["Paragraph 1", "Paragraph 2"] }
|
||||
}
|
||||
```
|
||||
|
||||
| ฟิลด์ | จำเป็น? | หมายเหตุ |
|
||||
|---|---|---|
|
||||
| `th.title` / `th.body` | ✅ | เนื้อหาไทย (โหมด EN ถ้าไม่เขียน en จะใช้ th แทน) |
|
||||
| `th.tag` | – | ป้ายมุมการ์ด (เช่น ข่าว / วิธีใช้ / อัปเดต) |
|
||||
| `en.*` | – | คำแปลอังกฤษ (ไม่ใส่ = ใช้ th) |
|
||||
| `date` | – | ISO `YYYY-MM-DD` แสดงบนการ์ด (ไม่ใส่ก็ได้) |
|
||||
|
||||
## รูป
|
||||
|
||||
- วางชื่อ `picN.jpg` (หรือ `.jpeg` / `.png` / `.webp`) — แนะนำ 1200×675 (16:9)
|
||||
- ไม่มีรูปก็ได้ — การ์ดจะใช้พื้น gradient แทน
|
||||
|
||||
## มุมมอง
|
||||
|
||||
- หน้า `#/blog` มีปุ่มสลับ **ตาราง (grid)** / **รายการ (list)** — จำค่าที่เลือกไว้
|
||||
- คลิกการ์ด → เปิดอ่านบทความเต็มที่ `#/blog/N` (มีปุ่มย้อนกลับไปรายการ)
|
||||
|
||||
## เพิ่มบทความใหม่
|
||||
|
||||
สร้าง `text5.json` + `pic5.jpg` — จบ (ไม่ต้องแก้โค้ด)
|
||||
|
||||
> แก้ไฟล์แล้วกด F5 เห็นผลทันที (โหลดแบบ network-first)
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"date": "2026-09-14",
|
||||
"th": {
|
||||
"title": "เปิดเพิ่ม 3 เส้นทางช่วงปลายฝน",
|
||||
"tag": "ข่าว",
|
||||
"body": [
|
||||
"ช่วงปลายฝนนี้มีเส้นทางใหม่เปิดให้บริการเพิ่ม 3 เส้นทาง เชื่อมต่ออ่างทองกับจังหวัดใกล้เคียง เริ่มตั้งแต่ต้นเดือนตุลาคมเป็นต้นไป",
|
||||
"ตารางเดินรถของเส้นทางใหม่จะอัปเดตในหน้า “เช็กเวลาเดินรถ” ทันทีที่ผู้ประกอบการยืนยันรอบวิ่ง — ฝากติดตามไว้ด้วยครับ"
|
||||
]
|
||||
},
|
||||
"en": {
|
||||
"title": "Three new routes open this rainy season",
|
||||
"tag": "News",
|
||||
"body": [
|
||||
"Three new routes connecting Ang Thong with nearby provinces will start service in early October.",
|
||||
"Their schedules will appear on the Check Schedules page as soon as operators confirm the trips — stay tuned."
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"date": "2026-09-10",
|
||||
"th": {
|
||||
"title": "วิธีดูว่ารถสาย 101 ผ่านป้ายเรากี่โมง",
|
||||
"tag": "วิธีใช้",
|
||||
"body": [
|
||||
"เปิดหน้าป้ายหยุดรถ เลือกป้ายที่ต้องการ แล้วดูรายการ “สายรถที่ผ่านจุดนี้” — ระบบจะไฮไลต์เที่ยวถัดไปให้อัตโนมัติ",
|
||||
"ถ้าต้องการดูทุกจุดจอดของสาย เข้าเมนูรายละเอียดสายรถ หรือกดปุ่มเช็กเวลาเดินรถเพื่อดูตารางแบบเต็มในหน้าเดียว"
|
||||
]
|
||||
},
|
||||
"en": {
|
||||
"title": "How to see when route 101 passes your stop",
|
||||
"tag": "How-to",
|
||||
"body": [
|
||||
"Open Bus Stops, pick your stop, then check the routes serving it — the next departure is highlighted automatically.",
|
||||
"For every stop along a route, open Route Details or hit Check Schedules for the full table in one page."
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"date": "2026-09-05",
|
||||
"th": {
|
||||
"title": "อัปเดตตารางเดินรถสาย 902",
|
||||
"tag": "อัปเดต",
|
||||
"body": [
|
||||
"สาย 902 (กรุงเทพ–อ่างทอง สายเอเซีย) ปรับรอบวิ่งช่วงเย็นจากเดิมออกทุก 50 นาที เป็นทุก 40 นาที ตั้งแต่วันที่ 1 กันยายน",
|
||||
"รอบเช้าและรอบกลางวันยังคงเดิม หากมีเปลี่ยนแปลงเพิ่มเติมจะแจ้งผ่าน LINE Official ของสายโดยตรง"
|
||||
]
|
||||
},
|
||||
"en": {
|
||||
"title": "Route 902 timetable update",
|
||||
"tag": "Update",
|
||||
"body": [
|
||||
"Route 902 (Bangkok–Ang Thong, Asia line) now departs every 40 minutes in the evening instead of 50, effective 1 September.",
|
||||
"Morning and midday trips are unchanged. Further changes will be announced via the line's LINE Official."
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"date": "2026-08-28",
|
||||
"th": {
|
||||
"title": "ทำไมตารางรถถึงเปลี่ยนบ่อย",
|
||||
"tag": "ความรู้",
|
||||
"body": [
|
||||
"ตารางเดินรถของรถโดยสารประจำทางเปลี่ยนได้ตามสภาพการจราจร จำนวนผู้โดยสาร และช่วงเทศกาล — บางสายปรับตามวันหยุดอีกด้วย",
|
||||
"เราจึงแสดงเวลาดิบจากผู้ประกอบการเสมอ และมีหมายเหตุเตือนให้เช็กเวลากับทางสายโดยตรงก่อนเดินทางในวันที่ฝนตกหรือวันหยุดยาว"
|
||||
]
|
||||
},
|
||||
"en": {
|
||||
"title": "Why bus timetables change so often",
|
||||
"tag": "Explainer",
|
||||
"body": [
|
||||
"Bus schedules shift with traffic, passenger demand and seasonal peaks — some lines even differ on holidays.",
|
||||
"That's why we show operators' raw times and remind you to double-check with the operator before travelling in heavy rain or long holidays."
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user