Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/andrioid/gatsby-theme-links. Turn your Gatsby site into a link-site, sourced from Github stars and Pinboard
gatsby-theme-links.netlify.com/links
···33- [Demo README](demo/README.md)
44- [Theme Package README](theme/README.md)
5566-## How to use the demo
77-88-Add a `.env` file to the root directory of the project.
99-1010-```
1111-GATSBY_GITHUB_TOKEN=yourtoken
1212-GATSBY_PINBOARD_TOKEN=yourtoken
1313-```
1414-1515-Then run the site. Never add your tokens to Git.
1616-1717-```sh
1818-export $(cat .env | xargs) && yarn workspace demo develop
1919-2020-```
2121-2222-### More
2323-2424-See
2525-2626-# Gatsby Theme Jam Submission Example
66+## Introduction
2772828-This repo is an example and potential starting point for theme creators.
88+This theme adds a '/links' page to your site that shows your 100 most recent bookmarks or stars on Github.
2993030-It includes:
1010+You need a Pinboard auth-token or a Github personal token to make this work.
31113232-- a bare-bones theme (located in `theme/`) that includes basic setup
3333-- a demo site (located in `demo/`) that installs the theme
3434-- a Yarn workspaces configuration so the theme and demo can be worked on simultaneously
1212+## Motivation
35133636-## How to use this repo
1414+Before the times of Reddit and Hacker News it was quite common for homepages to have link sections.
37153838-**NOTE:** Make sure to replace `USERNAME` with your GitHub username and `THEMENAME` with your theme name.
1616+I miss those times, but I realisticially am not going to update one. But I do bookmark things and I do star things on Github.
39174040-1. Fork this repo.
4141-4242-2. Rename the forked repo `gatsby-theme-THEMENAME`. (Make sure to replace `THEMENAME` with your chosen name.)
1818+## Screenshot
43194444-3. Get the theme set up locally.
2020+
45214646- ```sh
4747- # clone the repo
4848- git clone git@github.com:USERNAME/gatsby-theme-THEMENAME.git
4949-5050- # move into the directory
5151- cd gatsby-theme-THEMENAME
5252-5353- # install dependencies
5454- yarn
5555- ```
5656-5757-4. Update `theme/package.json` with your info.
5858-5959- ```diff
6060- {
6161- + "name": "gatsby-theme-THEMENAME",
6262- + "author": "Your Name <name@example.com>",
6363- "repository": {
6464- "type": "git",
6565- + "url": "https://github.com/USERNAME/gatsby-theme-THEMENAME.git"
6666- },
6767- ```
6868-6969-5. Start the demo site.
7070-7171- ```sh
7272- yarn workspace demo develop
7373- ```
7474-7575- The demo will start at http://localhost:8000
7676-7777- **NOTE:** If you’re new to Yarn workspaces, check out [this post](https://www.gatsbyjs.org/blog/2019-05-22-setting-up-yarn-workspaces-for-theme-development/) for details.
7878-7979-6. Start editing the theme! The demo site is configured to use the local theme, so any changes you make to the local `theme` directory will be reflected on the demo site for easy local development.
8080-8181-7. Follow the [submission checklist](./theme/README.md#submission-checklist) to make sure your theme qualifies to win!
8282-8383-8. [Submit your theme](https://themejam.gatsbyjs.org/submit) to win!
8484-8585-## More information
8686-8787-For contest rules and more information, see [the Theme Jam website](https://themejam.gatsbyjs.org).
2222+This is my submission to the [Gatsby Theme Jam](https://themejam.gatsbyjs.org/).
···11-<!-- AUTO-GENERATED-CONTENT:START (STARTER) -->
22-<p align="center">
33- <a href="https://www.gatsbyjs.org">
44- <img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="60" />
55- </a>
66-</p>
77-<h1 align="center">
88- Gatsby's hello-world starter
99-</h1>
1010-1111-Kick off your project with this hello-world boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.
1212-1313-_Have another more specific idea? You may want to check out our vibrant collection of [official and community-created starters](https://www.gatsbyjs.org/docs/gatsby-starters/)._
1414-1515-## 🚀 Quick start
1616-1717-1. **Create a Gatsby site.**
1818-1919- Use the Gatsby CLI to create a new site, specifying the hello-world starter.
2020-2121- ```sh
2222- # create a new Gatsby site using the hello-world starter
2323- gatsby new my-hello-world-starter https://github.com/gatsbyjs/gatsby-starter-hello-world
2424- ```
2525-2626-1. **Start developing.**
2727-2828- Navigate into your new site’s directory and start it up.
2929-3030- ```sh
3131- cd my-hello-world-starter/
3232- gatsby develop
3333- ```
3434-3535-1. **Open the source code and start editing!**
3636-3737- Your site is now running at `http://localhost:8000`!
3838-3939- _Note: You'll also see a second link: _`http://localhost:8000/___graphql`_. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql)._
4040-4141- Open the `my-hello-world-starter` directory in your code editor of choice and edit `src/pages/index.js`. Save your changes and the browser will update in real time!
4242-4343-## 🧐 What's inside?
4444-4545-A quick look at the top-level files and directories you'll see in a Gatsby project.
4646-4747- .
4848- ├── node_modules
4949- ├── src
5050- ├── .gitignore
5151- ├── .prettierrc
5252- ├── gatsby-browser.js
5353- ├── gatsby-config.js
5454- ├── gatsby-node.js
5555- ├── gatsby-ssr.js
5656- ├── LICENSE
5757- ├── package-lock.json
5858- ├── package.json
5959- └── README.md
6060-6161-1. **`/node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.
6262-6363-2. **`/src`**: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. `src` is a convention for “source code”.
11+## How to use the demo
6426565-3. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.
33+Add a `.env` file to the root directory of the project.
6646767-4. **`.prettierrc`**: This is a configuration file for [Prettier](https://prettier.io/). Prettier is a tool to help keep the formatting of your code consistent.
55+```
66+GATSBY_GITHUB_TOKEN=yourtoken
77+GATSBY_PINBOARD_TOKEN=yourtoken
88+```
6896969-5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.org/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser.
1010+Then run the site. Never add your tokens to Git.
70117171-6. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the [config docs](https://www.gatsbyjs.org/docs/gatsby-config/) for more detail).
1212+```sh
1313+export $(cat .env | xargs) && yarn workspace demo develop
72147373-7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.org/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.
7474-7575-8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.org/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering.
7676-7777-9. **`LICENSE`**: Gatsby is licensed under the MIT license.
7878-7979-10. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).**
8080-8181-11. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.
8282-8383-12. **`README.md`**: A text file containing useful reference information about your project.
8484-8585-## 🎓 Learning Gatsby
8686-8787-Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start:
8888-8989-- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
9090-9191-- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.
9292-9393-## 💫 Deploy
9494-9595-[](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-hello-world)
9696-9797-<!-- AUTO-GENERATED-CONTENT:END -->
1515+```