Skip to content

Commit

Permalink
Merge pull request #5 from Zenghailun/update-profile
Browse files Browse the repository at this point in the history
feat: update blog content
  • Loading branch information
Zenghailun committed May 7, 2024
2 parents d0692e2 + b3c018c commit 0e6dac5
Show file tree
Hide file tree
Showing 25 changed files with 75 additions and 1,723 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,29 @@ jobs:
draft: false
prerelease: false
# 把assets.zip上传到仓库对应的发布版本Release上
- name: Update Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PROJECT_PERSONAL_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./assets.zip
asset_name: assets.zip
asset_content_type: application/zip
# 把制品上传到部署机器
- name: Upload to Deploy Server
uses: easingthemes/ssh-deploy@v2.0.7
env:
# SSH_PRIVATE_KEY为准备工作步骤三中生成密钥对里的私钥
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_TOKEN }}
# 指定当前目录中要上传的内容
SOURCE: ".next/"
# 指定上传到部署机器的哪个目录下
TARGET: "var/www"
# 上传前指令,此处用于清空TARGET下的文件
ARGS: "-avzr --delete"
# REMOTE_HOST为机器的公网IP
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
# REMOTE_USER为登录机器时用到账号名
REMOTE_USER: ${{secrets.REMOTE_USER}}
# - name: Update Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.PROJECT_PERSONAL_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./assets.zip
# asset_name: assets.zip
# asset_content_type: application/zip
# # 把制品上传到部署机器
# - name: Upload to Deploy Server
# uses: easingthemes/ssh-deploy@v2.0.7
# env:
# # SSH_PRIVATE_KEY为准备工作步骤三中生成密钥对里的私钥
# SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_TOKEN }}
# # 指定当前目录中要上传的内容
# SOURCE: ".next/"
# # 指定上传到部署机器的哪个目录下
# TARGET: "var/www"
# # 上传前指令,此处用于清空TARGET下的文件
# ARGS: "-avzr --delete"
# # REMOTE_HOST为机器的公网IP
# REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
# # REMOTE_USER为登录机器时用到账号名
# REMOTE_USER: ${{secrets.REMOTE_USER}}
10 changes: 5 additions & 5 deletions app/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Home({ posts }) {
<div className="divide-y divide-gray-200 dark:divide-gray-700">
<div className="space-y-2 pb-8 pt-6 md:space-y-5">
<h1 className="text-3xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl sm:leading-10 md:text-6xl md:leading-14">
Latest
最近更新
</h1>
<p className="text-lg leading-7 text-gray-500 dark:text-gray-400">
{siteMetadata.description}
Expand Down Expand Up @@ -70,7 +70,7 @@ export default function Home({ posts }) {
})}
</ul>
</div>
{posts.length > MAX_DISPLAY && (
{/* {posts.length > MAX_DISPLAY && (
<div className="flex justify-end text-base font-medium leading-6">
<Link
href="/blog"
Expand All @@ -80,12 +80,12 @@ export default function Home({ posts }) {
All Posts &rarr;
</Link>
</div>
)}
{siteMetadata.newsletter?.provider && (
)} */}
{/* {siteMetadata.newsletter?.provider && (
<div className="flex items-center justify-center pt-4">
<NewsletterForm />
</div>
)}
)} */}
</>
)
}
13 changes: 0 additions & 13 deletions app/cloudPhotoAlbum/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,6 @@ export default function CloudPhotoAlbum() {
</div>
<FileUploadProgress progress={progress} />
</div>
<div className="container py-12">
<div className="-m-4 flex flex-wrap">
{projectsData.map((d) => (
<Card
key={d.title}
title={d.title}
description={d.description}
imgSrc={d.imgSrc}
href={d.href}
/>
))}
</div>
</div>
</div>
</>
)
Expand Down
2 changes: 1 addition & 1 deletion app/tag-data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"markdown":1,"code":1,"features":1,"next-js":6,"math":1,"ols":1,"github":1,"guide":5,"tailwind":3,"holiday":1,"canada":1,"images":1,"feature":2,"writings":1,"book":1,"reflection":1,"multi-author":1}
{"next-js":6,"tailwind":3,"guide":5,"feature":2,"multi-author":1,"hello":1,"math":1,"ols":1,"github":1,"writings":1,"book":1,"reflection":1,"holiday":1,"canada":1,"images":1,"markdown":1,"code":1,"features":1}
6 changes: 3 additions & 3 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ export default function Footer() {
<footer>
<div className="mt-16 flex flex-col items-center">
<div className="mb-3 flex space-x-4">
<SocialIcon kind="mail" href={`mailto:${siteMetadata.email}`} size={6} />
{/* <SocialIcon kind="mail" href={`mailto:${siteMetadata.email}`} size={6} /> */}
<SocialIcon kind="github" href={siteMetadata.github} size={6} />
<SocialIcon kind="facebook" href={siteMetadata.facebook} size={6} />
{/* <SocialIcon kind="facebook" href={siteMetadata.facebook} size={6} />
<SocialIcon kind="youtube" href={siteMetadata.youtube} size={6} />
<SocialIcon kind="linkedin" href={siteMetadata.linkedin} size={6} />
<SocialIcon kind="twitter" href={siteMetadata.twitter} size={6} />
<SocialIcon kind="instagram" href={siteMetadata.instagram} size={6} />
<SocialIcon kind="threads" href={siteMetadata.threads} size={6} />
<SocialIcon kind="threads" href={siteMetadata.threads} size={6} /> */}
</div>
<div className="mb-2 flex space-x-2 text-sm text-gray-500 dark:text-gray-400">
<div>{siteMetadata.author}</div>
Expand Down
4 changes: 0 additions & 4 deletions components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import siteMetadata from '@/data/siteMetadata'
import headerNavLinks from '@/data/headerNavLinks'
import Logo from '@/data/logo.svg'
import Link from './Link'
import MobileNav from './MobileNav'
import ThemeSwitch from './ThemeSwitch'
Expand All @@ -12,9 +11,6 @@ const Header = () => {
<div>
<Link href="/" aria-label={siteMetadata.headerTitle}>
<div className="flex items-center justify-between">
<div className="mr-3">
<Logo />
</div>
{typeof siteMetadata.headerTitle === 'string' ? (
<div className="hidden h-6 text-2xl font-semibold sm:block">
{siteMetadata.headerTitle}
Expand Down
12 changes: 4 additions & 8 deletions data/authors/default.mdx
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
---
name: Tails Azimuth
name: 曾海伦
avatar: /static/images/avatar.png
occupation: Professor of Atmospheric Science
company: Stanford University
occupation:
company: Beijing Jiaotong University
email: address@yoursite.com
twitter: https://twitter.com/Twitter
linkedin: https://www.linkedin.com
github: https://github.com
---

Tails Azimuth is a professor of atmospheric sciences at the Stanford AI Lab. His research interests includes complexity modelling of tailwinds, headwinds and crosswinds.

He leads the clean energy group which develops 3D air pollution-climate models, writes differential equation solvers, and manufactures titanium plated air ballons. In his free time he bakes raspberry pi.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.
曾海伦
38 changes: 0 additions & 38 deletions data/blog/code-sample.mdx

This file was deleted.

143 changes: 0 additions & 143 deletions data/blog/deriving-ols-estimator.mdx

This file was deleted.

Loading

0 comments on commit 0e6dac5

Please sign in to comment.