sana137.in

Sana's gatsbyjs-based blog
git clone http://git.hanabi.in/repos/sana137.in.git
Log | Files | Refs | README | LICENSE

commit c43ed6f51f79e55249d6efae422f030d3a3af612
parent fdfe628db5dc5eb066184aea334fb2e7bb7c4738
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Fri, 13 Sep 2019 23:14:12 +0530

update README for deploying

Diffstat:
MREADME.md | 28++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md @@ -1,14 +1,9 @@ ## First things first -Follow these steps after cloning this repository: +For updating the website: -```bash -npm i -D # install dependencies -gatsby build # create production website -cd public -git remote add origin https://github.com/cognitive137/sana137.git -git pull -git push origin master +```zsh +yarn depoly ``` ## Adding new blogs @@ -17,6 +12,23 @@ git push origin master 2. In the folder _`newBlogPost`_, create a markdown file **`index.md`**. 3. Put the content of the blog in the **`index.md`** file. +## Adding background to tags + +Adding cover to tags is handled via an array of objects. That array is located at `./src/tagData/index.js`. + +That file contains an array `tagData`. Each element of `tagData`, must be an object, with two keys, `tag` and `cover`. + +Each object should match: + +```javascript +{ + tag: 'unique tag here', + cover: 'www.example.com/path/to/cover' +} +``` + +Make sure you don't repeat tags, else none will be chosen. + ## Frontmatter In every blog post, it is necessary to start the blog post with the following content: