Fix: Blog URLs and remove duplicate AI Automation links
Fixes:
1. Blog URLs now correct (without .md extension)
- Changed from: /blog/core-web-vitals.md/
- Changed to: /blog/core-web-vitals/
2. Fixed duplicate AI Automation in navigation
- Removed duplicate from header submenu
- Removed duplicate from mobile menu
- Removed duplicate from footer
- Now 4 unique services in all menus
Blog:
- getStaticPaths: slug.replace('.md', '')
- blog/index.astro: links use slug.replace('.md', '')
- Blog builds to correct URLs without .md
Navigation:
- Header submenu: 4 services (not 5)
- Mobile menu: 4 services (not 5)
- Footer: 4 services (was 5 with duplicate)
Services (4 unique):
1. พัฒนาเว็บไซต์
2. AI Automation
3. พัฒนาแอปพลิเคชัน
4. ที่ปรึกษาการตลาดออนไลน์
This commit is contained in:
@@ -6,7 +6,7 @@ interface Props {
|
||||
description?: string;
|
||||
}
|
||||
|
||||
const { title = 'MoreminiMore - AI Automation', description = 'เพิ่มยอดขายด้วย AI & Automation' } = Astro.props;
|
||||
const { title = 'MoreminiMore - ที่ปรึกษาองค์กร AI', description = 'เพิ่มยอดขายด้วย AI & Technology' } = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
@@ -75,22 +75,18 @@ const { title = 'MoreminiMore - AI Automation', description = 'เพิ่ม
|
||||
<div class="font-medium text-secondary">พัฒนาเว็บไซต์</div>
|
||||
<div class="text-sm text-gray-500">E-Commerce, UX/UI</div>
|
||||
</a>
|
||||
<a href="/ai-automation" class="block px-4 py-3 hover:bg-gray-50 transition border-b border-gray-100">
|
||||
<div class="font-medium text-secondary">AI Automation</div>
|
||||
<div class="text-sm text-gray-500">AI & Chatbot</div>
|
||||
</a>
|
||||
<a href="/app-development" class="block px-4 py-3 hover:bg-gray-50 transition border-b border-gray-100">
|
||||
<div class="font-medium text-secondary">พัฒนาแอปพลิเคชัน</div>
|
||||
<div class="text-sm text-gray-500">iOS, Android</div>
|
||||
</a>
|
||||
<a href="/ai-automation" class="block px-4 py-3 hover:bg-gray-50 transition border-b border-gray-100">
|
||||
<div class="font-medium text-secondary">AI Automation</div>
|
||||
<div class="text-sm text-gray-500">AI & Automation</div>
|
||||
</a>
|
||||
<a href="/online-marketing-consult" class="block px-4 py-3 hover:bg-gray-50 transition border-b border-gray-100">
|
||||
<a href="/online-marketing-consult" class="block px-4 py-3 hover:bg-gray-50 transition">
|
||||
<div class="font-medium text-secondary">ที่ปรึกษาการตลาดออนไลน์</div>
|
||||
<div class="text-sm text-gray-500">Digital Marketing</div>
|
||||
</a>
|
||||
<a href="/ai-automation" class="block px-4 py-3 hover:bg-gray-50 transition">
|
||||
<div class="font-medium text-secondary">AI Automation</div>
|
||||
<div class="text-sm text-gray-500">Chatbot, RPA</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -117,10 +113,9 @@ const { title = 'MoreminiMore - AI Automation', description = 'เพิ่ม
|
||||
</summary>
|
||||
<div class="flex flex-col gap-2 mt-2 ml-4">
|
||||
<a href="/website-development" class="text-base hover:text-accent-blue transition">พัฒนาเว็บไซต์</a>
|
||||
<a href="/ai-automation" class="text-base hover:text-accent-blue transition">AI Automation</a>
|
||||
<a href="/app-development" class="text-base hover:text-accent-blue transition">พัฒนาแอปพลิเคชัน</a>
|
||||
<a href="/ai-automation" class="text-base hover:text-accent-blue transition">AI Automation</a>
|
||||
<a href="/online-marketing-consult" class="text-base hover:text-accent-blue transition">ที่ปรึกษาการตลาดออนไลน์</a>
|
||||
<a href="/ai-automation" class="text-base hover:text-accent-blue transition">AI Automation</a>
|
||||
</div>
|
||||
</details>
|
||||
<a href="/blog" class="font-medium hover:text-accent-blue transition">เรื่องน่ารู้</a>
|
||||
@@ -139,7 +134,7 @@ const { title = 'MoreminiMore - AI Automation', description = 'เพิ่ม
|
||||
<div class="grid md:grid-cols-4 gap-8">
|
||||
<div>
|
||||
<img src="/branding/logo-long.png" alt="MoreminiMore Logo" class="h-10 w-auto mb-4" width="180" height="45" />
|
||||
<p class="text-gray-600 text-base">AI Automation เพิ่มยอดขายด้วยข้อมูล</p>
|
||||
<p class="text-gray-600 text-base">ที่ปรึกษาองค์กร AI เพิ่มยอดขายด้วยข้อมูล</p>
|
||||
<div class="mt-4 flex gap-3">
|
||||
<a href="https://www.facebook.com/moreminimore" target="_blank" rel="noopener noreferrer" class="text-gray-600 hover:text-accent-blue transition">
|
||||
<svg class="w-6 h-6" fill="#1877F2" viewBox="0 0 24 24"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>
|
||||
@@ -157,10 +152,9 @@ const { title = 'MoreminiMore - AI Automation', description = 'เพิ่ม
|
||||
<h3 class="font-bold mb-4 text-lg">บริการ</h3>
|
||||
<ul class="space-y-2 text-base text-gray-600">
|
||||
<li><a href="/website-development" class="hover:text-accent-blue transition">พัฒนาเว็บไซต์</a></li>
|
||||
<li><a href="/ai-automation" class="hover:text-accent-blue transition">AI Automation</a></li>
|
||||
<li><a href="/app-development" class="hover:text-accent-blue transition">พัฒนาแอปพลิเคชัน</a></li>
|
||||
<li><a href="/ai-automation" class="hover:text-accent-blue transition">AI Automation</a></li>
|
||||
<li><a href="/online-marketing-consult" class="hover:text-accent-blue transition">ที่ปรึกษาการตลาดออนไลน์</a></li>
|
||||
<li><a href="/ai-automation" class="hover:text-accent-blue transition">AI Automation</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user