ddadaal / ddadaal.me

My static personal blog powered by Next.js

Home Page:https://ddadaal.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ddadaal.me

GitHub Actions Uptime Robot status style: styled-components RSS Subscribes

ddadaal.me (previously VicBlog) is the personal website of ddadaal.

Currently it is built with Gatsby.

Check it out now!

Features

  • Static website with modern web technologies
  • Built without templates
  • Auto-generated RSS Feed at /rss.xml
  • Synchronous & Native Search
    • Native support for searching articles without any third-party services
  • Support multiple languages (Chinese & English) and dynamically changing languages
  • Articles written on markdown; Source code and contents separated
    • Supports inline react components
  • Auto generated slide directory using GitHub API v3 on every build

Tools and Frameworks Used

Development

We are using pnpm for package management.

Notice: If an environment variable is named ACTIONS_TOKEN, it will be used to authenticate GitHub requests to fetch slides (to get higher rate limit for CI). If it does not exist, an anonymous request is used, which is adequate for local development.

# For Windows users, install windows-build-tools
pnpm install --global windows-build-tools --python_mirror=https://npm.taobao.org/mirrors/python/

# install dependencies
pnpm install

# serve with hot reload at localhost:8000
nppm run dev

# run production build
pnpm run build

# **After build**, serve the production build locally
pnpm run serve

# Update dependencies with npm-check-updates and update the package.json
pnpm run upddep

Handling network errors when making request to GitHub API

A network request to GitHub will be started when running the application to retrieve my slides information from my repo, but such network might fail.

Error handling for such errors has been added, so that when the request to GitHub API fails, a warning is printed on the console, and a dummy Slide node is created, so that the whole application can still run.

License

MIT

About

My static personal blog powered by Next.js

https://ddadaal.me

License:MIT License


Languages

Language:TypeScript 94.7%Language:CSS 3.6%Language:JavaScript 1.6%Language:Dockerfile 0.1%