commit d1af0f4ec9c71eb7822b73174ea96a7c013e4fcc
parent 03080bfe4a61c2c18cd3e98b7179c4c8f489edf8
Author: Agastya Chandrakant <me@hanabi.in>
Date: Wed, 4 Mar 2020 23:53:44 +0530
update readme + content in /quotes
Diffstat:
8 files changed, 20 insertions(+), 185 deletions(-)
diff --git a/README.md b/README.md
@@ -1,25 +1,14 @@
## Table of Contents
-+ [Agastya's website](#Agastya's-website)
++ [Quotes](#quotes)
+ [Conventions](#Conventions)
- + [Code snippets](#Code-snippets)
- + [Tags and categories](#Tags-and-categories)
+ [Content](#Content)
+ [Frontmatter](#Frontmatter)
+ [Using plugins](#using-plugins)
+ [Abbreviations](#Abbreviations)
- + [Embedder](#Embedder)
- + [Feed](#Feed)
- + [Footnotes](#Footnotes)
- + [Image](#Image)
- + [KaTeX](#KaTeX)
- + [MDX](#MDX)
- + [Mermaid: to add flowcharts](#Mermaid-to-add-flowcharts)
- + [PrismJS: to add codeblocks](#PrismJS-to-add-codeblocks)
- + [Twitter embed](#twitter-embed)
-# Agastya's website
+# Quotes
-My personal blog. Forked from [Gatsby blog starter](https://github.com/gatsbyjs/gatsby-starter-blog). Syntax theme based on [Sarah Drasner's Night Owl](https://github.com/sdras/night-owl-vscode-theme/) with small tweaks. [Minimo theme](https://themes.gohugo.io//theme/minimo/) for [Hugo](https://gohugo.io/) by [Munif Tanjim](https://github.com/MunifTanjim).
+My favourite quotes. Forked from [Gatsby blog starter](https://github.com/gatsbyjs/gatsby-starter-blog). [Minimo theme](https://themes.gohugo.io//theme/minimo/) for [Hugo](https://gohugo.io/) by [Munif Tanjim](https://github.com/MunifTanjim).
To run locally, follow these steps:
@@ -31,24 +20,9 @@ Then open [http://0.0.0.0:8000](http://0.0.0.0:8000).
## Conventions
-### Code snippets
-
-In a code snippet of a prompt:
-1. `john@doe λ ` represents a non-superuser.
-1. `root@doe # ` represents a superuser.
-1. If the username is omitted, it represents non-superuser. Unless otherwise stated, the user does not represent a superuser.
-
-### Tags and categories
-
-Per [Yoast.com](https://yoast.com/tags-and-categories-difference/ "SEO basics: What is the difference between tags and categories?") ([Archived link](http://web.archive.org/web/20200115221505/https://yoast.com/tags-and-categories-difference/))
-
-1. Categories allowed for a broad grouping of post topics.
-1. Tags are used to describe your post in more detail.
-
### Content
-1. The blog posts are located at `src/posts`.
-1. Images are located at `src/images`.
+1. The quotes are located at `/quotes`.
### Frontmatter
@@ -56,17 +30,15 @@ This is how the frontmatter must appear
```markdown
---
-categories: Array<String>!
+author: String!
date: Date(yyyy-mm-dd)!
draft: Boolean!
-excerpt: String!
lang: String(ISO 639-1)!
path: unique(String!)
tags: Array<String>!
title: String!
---
-
```
## Using plugins
@@ -81,139 +53,4 @@ is maintained by the W3C.
+*[HTML]: Hyper Text Markup Language
+*[W3C]: World Wide Web Consortium
-```
-
-### Embedder
-
-The following services are supported as of January 15, 2020.
-1. CodePen
-2. CodeSandbox
-3. Slides
-4. SoundCloud
-5. Spotify
-6. Streamable
-7. Twitter
-8. YouTube
-
-To add an embedd, do it as follows:
-
-```md
-...
-
-https://codepen.io/team/codepen/pen/PNaGbb
-
-...
-```
-
-### Feed
-
-RSS feed is available at `/posts/rss.xml`.
-
-### Footnotes
-
-Footnotes can be added as follows:
-
-```md
-This is normal body copy.[^also] It includes a couple footnotes.[^thing]
-
-[^also]:
- This is a footnote.
-
-[^thing]:
- This is another footnote.
-```
-
-### Image
-
-Use `.mdx` instead of `.md` for the blogpost. In the same directory, create `Image.js`. In the `.mdx` file write the following code.
-
-```diff
-+import Image from './Image.js'
-+<Image />
-```
-
-In `Image.js`, copy the content of `src/components/image.js`
-
-Make the following change:
-
-```diff
-...
-+placeholderImage: file(relativePath: { eq: "filename.ext" }) {
-...
-```
-
-Note: The file should be located in `src/images`
-
-### KaTeX
-
-KaTeX can be used as:
-
-```md
-$\KaTeX$
-```
-```md
-$$
-\alpha^2 + \beta^2 = \omega^2
-$$
-```
-
-### MDX
-
-In the directory `src/posts`, each post is located in a subdirectory as a `.md` or `.mdx` file.
-`gatsby-plugin-mdx` is configured to support both the file extensions.
-
-### Mermaid: to add flowcharts
-
-Flowcharts can be added using MermaidJS. See [examples](https://mermaid-js.github.io/mermaid/#/examples) ([Archived link](http://web.archive.org/web/20200114175304/https://mermaid-js.github.io/mermaid/#/))
-
-```diff
-+```mermaid
-+graph LR
-+install[Install Plugin]
-+install --> configure[Configure Plugin]
-+configure --> draw[Draw Fancy Diagrams]
-+```
-```
-
-### PrismJS: to add codeblocks
-
-To have syntax highlighting in a code block follow the following method:
-
-```diff
-+```language
-+const foo = 5;
-+const bar = 2;
-+```
-```
-
-For highlighiting a line:
-
-```diff
-+```c{5,7-9}
-```
-
-For shell prompt:
-
-```diff
-+```bash{promptUser: alice}{promptHost: dev.localhost}
-```
-
-For inline:
-
-```diff
-+I can highlight `css›.some-class { background-color: red }` with CSS syntax.
-```
-
-**Note:** Line number is disabled as of January 15, 2020
-
-### Twitter embed
-
-To embed Tweets, add the tweet link with a blank line at the top and the bottom of the link. For example:
-
-```md
-...
-
-https://twitter.com/devangishere/status/1115831423963947009
-
-...
```
\ No newline at end of file
diff --git a/gatsby-config.js b/gatsby-config.js
@@ -17,8 +17,8 @@ module.exports = {
{
resolve: 'gatsby-source-filesystem',
options: {
- name: 'posts',
- path: path.join(__dirname, 'posts'),
+ name: 'quotes',
+ path: path.join(__dirname, 'quotes'),
},
},
{
diff --git a/package.json b/package.json
@@ -18,7 +18,6 @@
"gatsby-source-filesystem": "^2.1.39",
"gatsby-transformer-remark": "^2.6.45",
"gatsby-transformer-sharp": "^2.3.6",
- "moment": "^2.24.0",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
diff --git a/posts/Dear Tecrübe,/Dear Tecrübe,.md b/posts/Dear Tecrübe,/Dear Tecrübe,.md
@@ -1,13 +0,0 @@
----
-categories: ['Imam Bayhaqi']
-date: 'March 2, 2020'
-draft: false
-lang: 'en'
-path: '/dear-tecrube'
-tags: ['Patience', 'Friendship', 'Understanding']
-title: 'If a friend among your friends errs, make seventy excuses for them.'
-author: 'Imam Bayhaqi'
----
-
-# *If a friend among your friends errs, make seventy excuses for them.*
-— Imam Bayhaqi, Shu`ab Al-Iman, 7.522
-\ No newline at end of file
diff --git a/quotes/Dear Tecrübe,/Dear Tecrübe,.md b/quotes/Dear Tecrübe,/Dear Tecrübe,.md
@@ -0,0 +1,12 @@
+---
+author: 'Imam Bayhaqi'
+date: 'March 2, 2020'
+draft: false
+lang: 'en'
+path: '/dear-tecrube'
+tags: ['Patience', 'Friendship', 'Understanding']
+title: 'If a friend among your friends errs, make seventy excuses for them.'
+---
+
+# *If a friend among your friends errs, make seventy excuses for them.*
+— Imam Bayhaqi, Shu`ab Al-Iman, 7.522
+\ No newline at end of file
diff --git a/posts/Dear Tecrübe,/index.js b/quotes/Dear Tecrübe,/index.js
diff --git a/posts/Deservance/Deservance.md b/quotes/Deservance/Deservance.md
diff --git a/posts/Education/Education.md b/quotes/Education/Education.md