↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

How I Created My Blog With Gatsby

The post argues that a blog is a strong way for software developers to market themselves, especially freelancers and consultants. It then explains why the author moved from Medium and dev.to to a personal blog, using Gatsby to build it with React, GraphQL, plugins, Netlify, SEO tools, PWA features, adaptive loading, and image optimization.

Reading notes
#

  • A blog is presented as a useful medium for software developers to market themselves and invest in their careers.
  • Writing articles is described as a way to attract clients and improve as a developer and communicator through research, coding, and learning.
  • The author says he wrote on Medium first, tried dev.to, and then decided to create his own blog.
  • Having a personal platform is presented as useful because it avoids dependence on another platform, allows monetization, customization, and cross-posting.
  • The author says he procrastinated before starting the blog and was not motivated to build it with plain HTML, CSS, or WordPress.
  • Gatsby is described as a free open source React framework for building fast websites and apps.
  • Gatsby is explained as a static site generator that fetches data at build time, normalizes it into a GraphQL API, and compiles static assets for deployment to a CDN.
  • The post shows basic Gatsby CLI commands for creating, developing, and building a project.
  • Gatsby starters are described as community-maintained boilerplate sites that help start development quickly.
  • The author says he used a blog starter and customized it by changing colors, adding an avatar, and changing fonts.
  • Gatsby plugins are described as Node packages, with examples for Google Analytics and offline support.
  • Netlify is presented as a platform for building, deploying, serving, and managing frontend sites and web apps.
  • The author highlights Netlify continuous integration, built-in form handling, and custom domain settings.
  • Netlify CMS is described as an open source headless CMS that works with static site generators and lets users add blog posts from a dashboard.
  • The post says Netlify CMS is Git-based, so new posts are stored in the repository and deployed automatically.
  • SEO is presented as important because it helps more people find the site in search results.
  • Gatsby is said to help SEO because pages are server side rendered and content is available to crawlers.
  • React Helmet is described as the plugin used to add meta data to pages.
  • The sitemap plugin is presented as a way to generate an XML sitemap so bots can discover all pages.
  • The author says his site includes PWA features, with offline support already available in the starter.
  • Gatsby is described as a PWA generator, with plugins for adding the app to the home screen and reading posts offline.
  • Adaptive loading is described as a pattern that adapts to actual device hardware, not just screen size.
  • The author says he used react-adaptive-hooks to detect network status and show a SVG avatar on slow connections instead of a PNG avatar.
  • Image optimization is presented as important because large unoptimized images slow down a site.
  • Gatsby Image is described as a way to lazy load images and get a blur-up effect.
  • The post concludes that Gatsby makes it easy to build fast sites and apps, with starters, plugins, SEO friendliness, and PWA support.