Skip to content

Commit

Permalink
feat(config): custom domain and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
schwannden committed Jul 22, 2024
1 parent 8030ae8 commit 6d29580
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 52 deletions.
4 changes: 2 additions & 2 deletions app/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default function Home({ prayers }) {
</div>
<ul className="divide-y divide-gray-200 dark:divide-gray-700">
{!prayers.length && 'No posts found.'}
{prayers.slice(0, MAX_DISPLAY).map((post) => {
const { slug, date, title, summary, tags } = post
{prayers.slice(0, MAX_DISPLAY).map((prayer) => {
const { slug, date, title, summary, tags } = prayer
return (
<li key={slug} className="py-12">
<article>
Expand Down
2 changes: 1 addition & 1 deletion app/tag-data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"孩子":1,"祝福":1}
{"孩子":1,"祝福":2,"妻子":1}
2 changes: 1 addition & 1 deletion app/tags/[tag]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function generateMetadata({ params }: { params: { tag: string } }):
const tag = decodeURI(params.tag)
return genPageMetadata({
title: tag,
description: `${siteMetadata.title} ${tag} tagged content`,
description: `${siteMetadata.title} ${tag} 標籤內容`,
alternates: {
canonical: './',
types: {
Expand Down
4 changes: 2 additions & 2 deletions app/tags/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { slug } from 'github-slugger'
import tagData from 'app/tag-data.json'
import { genPageMetadata } from 'app/seo'

export const metadata = genPageMetadata({ title: '標籤', description: 'Things I pray about' })
export const metadata = genPageMetadata({ title: '標籤', description: '禱告標籤' })

export default async function Page() {
const tagCounts = tagData as Record<string, number>
Expand All @@ -27,7 +27,7 @@ export default async function Page() {
<Link
href={`/tags/${slug(t)}`}
className="-ml-2 text-sm font-semibold uppercase text-gray-600 dark:text-gray-300"
aria-label={`View posts tagged ${t}`}
aria-label={`View prayers tagged ${t}`}
>
{` (${tagCounts[t]})`}
</Link>
Expand Down
2 changes: 1 addition & 1 deletion data/projectsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const projectsData: Project[] = [
{
title: '為妻子禱告',
description: `為你的妻子禱告`,
imgSrc: '/static/images/projects/children.png',
imgSrc: '/static/images/projects/wife.png',
href: '/tags/妻子',
},
]
Expand Down
2 changes: 1 addition & 1 deletion data/siteMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const siteMetadata = {
description: '禱告不是一件事情,是一種生活方式。',
language: 'zh-tw',
theme: 'system', // system, dark or light
siteUrl: 'https://schwannden.github.io/prayer-blog/',
siteUrl: 'http://prayer.schwannden.com/',
siteRepo: 'https://github.com/schwannden/prayer-blog',
siteLogo: '/static/images/logo.png',
socialBanner: '/static/images/twitter-card.png',
Expand Down
Binary file added public/static/favicons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/static/favicons/android-chrome-96x96.png
Binary file not shown.
Binary file modified public/static/favicons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions public/static/favicons/browserconfig.xml

This file was deleted.

Binary file modified public/static/favicons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/static/favicons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/static/favicons/favicon.ico
Binary file not shown.
Binary file removed public/static/favicons/mstile-150x150.png
Binary file not shown.
21 changes: 0 additions & 21 deletions public/static/favicons/safari-pinned-tab.svg

This file was deleted.

15 changes: 1 addition & 14 deletions public/static/favicons/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-96x96.png",
"sizes": "96x96",
"type": "image/png"
}
],
"theme_color": "#000000",
"background_color": "#000000",
"display": "standalone"
}
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
Binary file added public/static/images/projects/wife.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6d29580

Please sign in to comment.