GithubHelp home page GithubHelp logo

liuweiyibai / gatsby-tailwind-blog Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 48.92 MB

Personal website running on Gatsby, React, TypeScript and Node.js.

Home Page: https://lwyb.me

JavaScript 24.23% TypeScript 70.16% Shell 0.14% CSS 5.47%
react gatsby ssr nodejs

gatsby-tailwind-blog's Introduction

刘威益佰的个人博客

Netlify Status

使用 tailwindcss + typescript + gatsby 搭建的 Blog

预览地址

生成关于我页面

地址

用到的插件

载入 codepen 等

生成标题 hash 标签

使用 lighthouse

测试网站性能

博客文章

评论解决方案

GITALK ✅

草稿

prismjs

  • 代码缩进
  • 添加文件类型显示 ✅
  • 添加文件名显示 ✅

在线编辑器

摩纳哥

codemirror

参考地址

首页加载更多

首页加载更多

生成开发文档的工具

收集的插件

jenkins 构建脚本

rm -rf ./node_modules
node -v
npm -v
npm config set registry https://registry.npm.taobao.org
npm config set sha  rp_binary_host "https://npm.taobao.org/mirrors/sharp"
npm config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
npm install
npm run build
  • 或者使用 yarn
rm -rf ./node_modules
node -v
yarn -v
yarn config set registry https://registry.npm.taobao.org
yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
yarn install --pure-lockfile  # 这个参数是在服务器install不生成yarn.lock,防止服务器和本地代码冲突
yarn run build

mac 解决 gatsby 依赖缺失问题

brew install pkg-config

brew install automake autoconf libtool dpkg pkgconfig nasm libpng

参考 blog

xx

在 Vue 项目中使用 Eslint+Prettier+Stylelint

Vue 项目使用 eslint + prettier 规范代码风格

闭包参考链接

闭包参考链接 2

闭包参考链接 3

vue 社区

https://vuedose.tips/articles

vue 源码

https://github.com/wangweianger/myblog

vue ssr 面点

gatsby + ts

给 link 添加 ref 属性和增加属性

import React from 'react';
import { Link as GLink } from 'gatsby';
import type { GatsbyLinkProps } from 'gatsby';
import clx from 'classnames';
import styles from './Button.module.css';

interface CustomGatsbyLinkProps extends Omit<GatsbyLinkProps<Record<string, unknown>>, 'ref'> {
  active?: boolean;
}
const Link: React.FC<CustomGatsbyLinkProps> = ({ className, children, ...props }) => (
  <GLink className={clx(styles.link, className)} {...props}>
    {children}
  </GLink>
);

export default Link;

借鉴

https://codepen.io/cobra_winfrey/pen/dKMpzO

涂鸦

https://www.xuanfengge.com/funny/html5/draw/

gatsby-tailwind-blog's People

Contributors

liuweiyibai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.