Giter Site home page Giter Site logo

blog-1's Introduction

Canyons and Code

My goal is to create a website that is simple, elegant, responsive, and performant. Let me know if you have any suggestions, or find a bug!

Based loosely on the Tailwind Nextjs Starter Blog.

Design

  • Typescript
  • Tailwind
  • Frontmatter
  • Yarn
  • NextJS and Vercel
  • Mdx

Installation

yarn install

Development

First, run the development server:

yarn dev

Open http://localhost:3000 to see the result. The site will live update as you code.

Extend / Customize

data/siteMetadata.js - contains most of the site related information which should be modified for a user's need.

data/authors/default.md - default author information (required). Additional authors can be added as files in data/authors.

data/projectsData.js - data used to generate styled card on the projects page.

data/headerNavLinks.js - navigation links.

data/logo.svg - replace with your own logo.

data/blog - replace with your own blog posts.

public/static - store assets such as images and favicons.

tailwind.config.js and css/tailwind.css - contain the tailwind stylesheet which can be modified to change the overall look and feel of the site.

css/prism.css - controls the styles associated with the code blocks. Feel free to customize it and use your preferred prismjs theme e.g. prism themes.

components/social-icons - to add other icons, simply copy an svg file from Simple Icons and map them in index.js. Other icons use heroicons.

components/MDXComponents.js - pass your own JSX code or React component by specifying it over here. You can then call them directly in the .mdx or .md file. By default, a custom link and image component is passed.

layouts - main templates used in pages.

pages - pages to route to. Read the Next.js documentation for more information.

next.config.js - configuration related to Next.js. You need to adapt the Content Security Policy if you want to load scripts, images etc. from other domains.

Post

Frontmatter

Frontmatter populates the metadata for a post. Frontmatter follows Hugo's standards.

See PostFrontMatter for required and optional fields.

Series

A post can be part of a series. Each post in a series should have the same PostSeries name, and incrementing numbers. The series will then populate the next/previous navigation on each post.

Compose

Add a new post to the data/blog with the required frontmatter.

Deploy

Vercel: Push to main will trigger a deploy on Vercel.

License

Photography

Please give proper attribution, and link back to the source page on this blog. Otherwise, you are free to use as you see fit. CC.

For non-watermarked images and prints, contact me at prints @ gregliest dot com

Software

This repo: MIT

Original (for the template): MIT © Timothy Lin

blog-1's People

Contributors

ahmadbilalse avatar aloisdg avatar aperezl avatar carlosbaraza avatar cypresskuo avatar doctorderek avatar erikdstock avatar exon avatar frontendwizard avatar gautierarcin avatar gregliest avatar helderberto avatar hua-space avatar kohei-m-88 avatar music47ell avatar ryands17 avatar saqibameen avatar thedevdavid avatar timlrx avatar wozniaklukasz avatar

Stargazers

 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.