1 Star 0 Fork 0

bgoonz/blog-1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

janosh.dev

The code for my personal blog. I use it to write about physics, machine learning, sustainability and web development.

The site is fully responsive, built with Gatsby, has fluid typography, relies heavily on React Hooks for stateful function components and CSS grid for layout. It uses the following libraries:

Feel free to reuse the whole or any part of this repo to create your own Gatsby site.

Installation

To get this site running locally, you need to have installed git, gatsby-cli and yarn (or npm). Then follow these steps:

  1. Clone the repo to your machine and change into its directory.

    git clone https://github.com/janosh/blog \
    && cd blog
  2. Optionally setup git hooks (recommended if you intend to open a PR).

    git config core.hooksPath src/utils/gitHooks \
    && chmod -R u+x src/utils/gitHooks
  3. Install dependencies.

    yarn
  4. Start the dev server. This may take a while on initial compilation since the site uses quite a lot of images which Gatsby creates thumbnails of and then caches.

    gatsby develop

Deployment

The easiest way to get this site published is as follows:

  1. Create an account with netlify.

  2. Install the netlify-cli.

  3. Login to your account.

    netlify login
  4. Connect your GitHub repo with your netlify account for continuous deployment.

    netlify init
  5. Finally deploy the site with

    netlify deploy
MIT License Copyright (c) 2018 Janosh Riebesell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

简介

My blog. Powered by Gatsby. 展开 收起
JavaScript 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bgoonz/blog-1.git
git@gitee.com:bgoonz/blog-1.git
bgoonz
blog-1
blog-1
main

搜索帮助