Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nhavantuonglai committed Dec 26, 2024
1 parent 14ad04a commit 5db672a
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 60 deletions.
2 changes: 1 addition & 1 deletion src/components/article/highlighted.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const {
bg = await Astro.slots.render("bg"),
} = Astro.props;
const isEnabled = myObject?.isEnabled ?? false;
const posts = await findPostsByIds(postIds);
const isEnabled = (APP_BLOG && APP_BLOG.isEnabled) ? APP_BLOG.isEnabled : false;
---

{APP_BLOG.isEnabled && (
Expand Down
20 changes: 18 additions & 2 deletions src/components/article/list-item.astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,27 @@ const truncateDescription = (text, maxWords = 30) => {
)}

<div class="mt-2">

<header>

<div class="mb-1">
<span class="text-sm">
<Icon name="tabler:clock" class="w-3.5 h-3.5 inline-block -mt-0.5 dark:text-gray-400"/>
<time datetime={String(post.pubDatetime)} class="inline-block">{getFormattedDate(post.pubDatetime)}</time>

<p class="inline-block text-lg">
<time datetime={post.pubDatetime}>
{`${new Date(post.pubDatetime)
.toLocaleDateString('vi-VN', { day: 'numeric', month: 'numeric', year: 'numeric' })
.replace(/(\d{1,2})\/(\d{1,2})\/(\d{4})/, 'Đăng ngày $1 tháng $2 năm $3')}`}
</time>

{post.readingTime && (
<>
&nbsp;· <span>{post.readingTime}</span> phút đọc.
</>
)}

</p>

</span>
</div>

Expand Down
1 change: 0 additions & 1 deletion src/components/javascript/soundcloud.astro

This file was deleted.

4 changes: 0 additions & 4 deletions src/pages/[...blog]/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import Pagination from '~/components/article/pagination.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
import { blogListRobots, getStaticPathsBlogList } from '~/utils/blog';
export const prerender = true;
Expand Down Expand Up @@ -57,6 +55,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/[...blog]/[tag]/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import Pagination from '~/components/article/pagination.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
export const prerender = true;
export const getStaticPaths = (async ({ paginate }) =>{
Expand Down Expand Up @@ -50,6 +48,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/[...blog]/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import Article from '~/components/article/single.astro';
import Related from '~/components/article/related.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
export const prerender = true;
export const getStaticPaths = (async () => {
Expand Down Expand Up @@ -52,6 +50,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/analytics/compare.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import Content from '~/components/content/compare.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Công cụ đối chiếu văn bản | nhavantuonglai',
ignoreTitleTemplate: true,
Expand All @@ -22,6 +20,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/analytics/count.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import Content from '~/components/content/count.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Công cụ đếm tần suất văn bản | nhavantuonglai',
ignoreTitleTemplate: true,
Expand All @@ -22,6 +20,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/analytics/emoji.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import Content from '~/components/content/emoji.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Bộ emoji, icon Facebook chuẩn 2025, cập nhật mới nhất | nhavantuonglai',
ignoreTitleTemplate: true,
Expand All @@ -22,6 +20,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/analytics/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import Unicode from '~/components/content/unicode.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Công cụ nâng cao',
};
Expand All @@ -40,6 +38,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/analytics/integrate.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import Content from '~/components/content/integrate.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Trợ lý AI Google tích hợp Gemini API | nhavantuonglai',
ignoreTitleTemplate: true,
Expand All @@ -22,6 +20,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/analytics/lower.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import Content from '~/components/content/lower.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Công cụ chuyển đổi chữ hoa thành chữ thường | nhavantuonglai',
ignoreTitleTemplate: true,
Expand All @@ -22,6 +20,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/analytics/normalize.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import Content from '~/components/content/normalize.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Công cụ chuẩn hóa dữ liệu thô | nhavantuonglai',
ignoreTitleTemplate: true,
Expand All @@ -22,6 +20,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/analytics/unicode.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import Content from '~/components/content/unicode.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Công cụ chuyển đổi văn bản Unicode | nhavantuonglai',
ignoreTitleTemplate: true,
Expand All @@ -22,6 +20,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import Hero from '~/components/content/hero.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Thông tin liên hệ | nhavantuonglai.',
ignoreTitleTemplate: true,
Expand All @@ -19,6 +17,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import Aks from '~/components/content/asked.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Văn hay trong hiện tại, chữ tốt ở tương lai | nhavantuonglai',
ignoreTitleTemplate: true,
Expand All @@ -41,6 +39,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
4 changes: 0 additions & 4 deletions src/pages/services/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import Services from '~/components/content/services.astro';
import Action from '~/components/content/action.astro';
import Soundcloud from '~/components/javascript/soundcloud.astro';
const metadata = {
title: 'Dịch vụ cung cấp',
};
Expand All @@ -22,6 +20,4 @@ const metadata = {

<Action/>

<Soundcloud/>

</Layout>
2 changes: 2 additions & 0 deletions src/pages/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ v24.09. không thay đổi về mã nguồn so với v24.04. mà chỉ tập tru

### Chi tiết cập nhật

2024.12.20: Viết lại toàn bộ mã nguồn, logic và gọn nhẹ, giúp quá trình deployments nhanh hơn.

2024.12.20: Cập nhật cấu trúc Navigation bar.

2024.12.10: Cập nhật tính năng [Integrate AI](https://nhavantuonglai.com/analytics/integrate).
Expand Down

0 comments on commit 5db672a

Please sign in to comment.