Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
robinv8 committed Dec 22, 2024
1 parent cf8310d commit 0daa56b
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 1,301 deletions.
2 changes: 1 addition & 1 deletion blog.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const BLOG = {
title: 'robin 的博客',
author: 'robin',
email: '[email protected]',
link: 'https://blog.robin.me',
link: 'https://blog.rnode.me',
newsletter: 'Weekly',
description: '记录生活,记录成长',
lang: 'zh-CN', // ['en-US', 'zh-CN', 'zh-HK', 'zh-TW', 'ja-JP', 'es-ES']
Expand Down
4 changes: 2 additions & 2 deletions components/Common/Logo.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// https://react-svgr.com/playground/
import * as React from 'react'
import Image from 'next/image'
import svg from '@/public/favicon.svg'
import avatar from '@/public/avatar.webp'

const Logo = (props) => (
<Image
{...props}
src={svg}
src={avatar}
style={{
height: '3rem',
width: '3rem',
Expand Down
2 changes: 1 addition & 1 deletion lib/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function generateRss(posts) {
id: `${BLOG.link}/${BLOG.path}`,
link: `${BLOG.link}/${BLOG.path}`,
language: BLOG.lang,
favicon: `${BLOG.link}/favicon.svg`,
favicon: `${BLOG.link}/avatar.webp`,
copyright: `All rights reserved ${year}, ${BLOG.author}`,
generator: 'by Notion',
author: {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
"bugs": {
"url": "https://github.com/robinv8/blog.git/issues",
"email": "[email protected]"
}
},
"packageManager": "[email protected]+sha512.f10be728034a37e6195c399560623bcd1272b1d2a575923ec370189f1bbd230b672efd71e96bb3ac9af49f131c4deb94013f74f118c3a8afbfe8a241f7036ac4"
}
2 changes: 1 addition & 1 deletion pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MyDocument extends Document {
<Html lang={BLOG.lang}>
<Head>
<link rel='icon' href='/favicon.ico' />
<link rel='icon' href='/favicon.svg' type='image/svg+xml' />
<link rel='icon' href='/avatar.webp' type='image/webp' />
<link
rel='apple-touch-icon'
sizes='192x192'
Expand Down
6 changes: 3 additions & 3 deletions pages/api/htmlrewrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ module.exports = async (req, res) => {
.replace('<meta name="robots" content="noindex">', '')
.replace(
'<link rel="icon" href="/share/static/favicon.ico">',
'<link rel="icon" href="/favicon.svg">'
'<link rel="icon" href="/avatar.webp">'
)
.replace(
'<link rel="apple-touch-icon" href="/share/static/logo-192.png">',
'<link rel="apple-touch-icon" href="/favicon.png">'
'<link rel="apple-touch-icon" href="/avatar.webp">'
)
.replace(
'<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:300,300i,400,400i,500,500i,700,700i&amp;display=swap" rel="stylesheet"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&amp;display=swap" rel="stylesheet">',
'<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:300,300i,400,400i,500,500i,700,700i&amp;display=swap" rel="stylesheet"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&amp;display=swap"',
''
)
.replace(
Expand Down
Binary file added public/avatar.webp
Binary file not shown.
Binary file added public/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/favicon.ico
Binary file not shown.
Binary file modified public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,291 changes: 0 additions & 1,291 deletions public/favicon.svg

This file was deleted.

2 changes: 1 addition & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ nav {
}

.md-cover {
@apply bg-gradient-to-r from-gray-100 to-gray-100 dark:from-gray-700 dark:to-gray-700
@apply bg-gradient-to-r from-cover-start-light to-cover-end-light dark:from-cover-start-dark dark:to-cover-end-dark;
}

.sm-cover {
Expand Down
8 changes: 8 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ module.exports = {
},
night: {
DEFAULT: BLOG.darkBackground || '#000000'
},
'cover-start': {
light: '#eaeef8',
dark: '#2d3139' // A darker shade that works well in dark mode
},
'cover-end': {
light: '#eff0f4',
dark: '#33363f' // A darker shade that works well in dark mode
}
},
fontFamily: {
Expand Down

0 comments on commit 0daa56b

Please sign in to comment.