diff --git a/package.json b/package.json index 564a277..67310e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "www-aaronjy-2024", - "version": "1.3.0.0", + "version": "1.3.1.0", "private": true, "type": "module", "scripts": { diff --git a/public/sitemap-0.xml b/public/sitemap-0.xml index 3ac5a1d..a26eeee 100644 --- a/public/sitemap-0.xml +++ b/public/sitemap-0.xml @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> -<url><loc>https://www.aaronjy.me/</loc><lastmod>2025-03-16T12:07:35.190Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> -<url><loc>https://www.aaronjy.me/about/</loc><lastmod>2025-03-16T12:07:35.190Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> -<url><loc>https://www.aaronjy.me/cv/</loc><lastmod>2025-03-16T12:07:35.190Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> -<url><loc>https://www.aaronjy.me/writing/</loc><lastmod>2025-03-16T12:07:35.190Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> -<url><loc>https://www.aaronjy.me/writing/moving-from-github-to-forgejo/</loc><lastmod>2025-03-16T12:07:35.190Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> -<url><loc>https://www.aaronjy.me/writing/performance-considerations-tcp-game-server/</loc><lastmod>2025-03-16T12:07:35.190Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> -<url><loc>https://www.aaronjy.me/writing/quick-reflection-katherine-may/</loc><lastmod>2025-03-16T12:07:35.190Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> -<url><loc>https://www.aaronjy.me/writing/static-site-on-google-cloud/</loc><lastmod>2025-03-16T12:07:35.190Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> -<url><loc>https://www.aaronjy.me/writing/support-content-filte-structure-changes-on-a-static-site/</loc><lastmod>2025-03-16T12:07:35.190Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> +<url><loc>https://www.aaronjy.me/</loc><lastmod>2025-03-16T12:15:48.863Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> +<url><loc>https://www.aaronjy.me/about/</loc><lastmod>2025-03-16T12:15:48.864Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> +<url><loc>https://www.aaronjy.me/cv/</loc><lastmod>2025-03-16T12:15:48.864Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> +<url><loc>https://www.aaronjy.me/writing/</loc><lastmod>2025-03-16T12:15:48.864Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> +<url><loc>https://www.aaronjy.me/writing/moving-from-github-to-forgejo/</loc><lastmod>2025-03-16T12:15:48.864Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> +<url><loc>https://www.aaronjy.me/writing/performance-considerations-tcp-game-server/</loc><lastmod>2025-03-16T12:15:48.864Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> +<url><loc>https://www.aaronjy.me/writing/quick-reflection-katherine-may/</loc><lastmod>2025-03-16T12:15:48.864Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> +<url><loc>https://www.aaronjy.me/writing/static-site-on-google-cloud/</loc><lastmod>2025-03-16T12:15:48.864Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> +<url><loc>https://www.aaronjy.me/writing/support-content-filte-structure-changes-on-a-static-site/</loc><lastmod>2025-03-16T12:15:48.864Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url> </urlset> \ No newline at end of file diff --git a/src/components/Article/Article.jsx b/src/components/Article/Article.jsx index 3958fdf..b698976 100644 --- a/src/components/Article/Article.jsx +++ b/src/components/Article/Article.jsx @@ -1,17 +1,15 @@ import { formatDate } from '@/lib/helpers' import { NextSeo } from 'next-seo' import Link from 'next/link' -import React from 'react' +import React, { useEffect } from 'react' import 'highlight.js/styles/atom-one-dark.css' import hljs from 'highlight.js' -import { useEffect } from 'react' function Article ({ attributes, html }) { - useEffect(() => { - hljs.highlightAll(); - }, [attributes, html]); + hljs.highlightAll() + }, [attributes, html]) return ( <> <h1>{attributes.title}</h1>