|
7 | 7 | The blog is migrated from the original self-hosted [[https://github.com/ramsayleung/blog][blog]] which was interesting and delightful to build something from scratch.
|
8 | 8 |
|
9 | 9 | There is Ramsay's personal blog, where he shares a bit of what he has learned along the way.
|
| 10 | + |
| 11 | +* Cloning and Setup |
| 12 | + Even though this blog is tailored to serve my own purpose, but this blog is designed to be easily cloned and adapted for your own use as well. Here are the steps to get started: |
| 13 | + |
| 14 | +** 1. Clone the Repository** |
| 15 | + #+begin_src shell |
| 16 | + git clone https://github.com/ramsayleung/ramsayleung.github.io.git |
| 17 | + cd ramsayleung.github.io |
| 18 | + #+end_src |
| 19 | + |
| 20 | +** 2. Update Configuration** |
| 21 | + The main configuration file is `config.yml`. You'll need to update it with your personal information. |
| 22 | + |
| 23 | +*** Social Media |
| 24 | + Update the information to your own social media accordingly. |
| 25 | + #+begin_src yaml |
| 26 | + params: |
| 27 | + socialIcons: |
| 28 | + - name: github |
| 29 | + url: "[YOUR_GITHUB_URL]" |
| 30 | + - name: stackoverflow |
| 31 | + url: "[YOUR_STACKOVERFLOW_URL]" |
| 32 | + - name: x |
| 33 | + url: "[YOUR_TWITTER_URL]" |
| 34 | + - name: linkedin |
| 35 | + url: "[YOUR LINKEDIN URL]" |
| 36 | + - name: telegram |
| 37 | + url: "[YOUR TELEGRAM URL]" |
| 38 | + #+end_src |
| 39 | +*** Giscus Comments |
| 40 | + This blog uses [[https://giscus.app/][giscus]] for comments, which is based on GitHub Discussions. To set it up for your own repository, you need to update the following section in `config.yml`: |
| 41 | + |
| 42 | + #+begin_src yaml |
| 43 | + params: |
| 44 | + giscus: |
| 45 | + repo: "[YOUR_GITHUB_USERNAME]/[YOUR_REPO_NAME]" |
| 46 | + repoId: "[YOUR_REPO_ID]" |
| 47 | + category: "[YOUR_DISCUSSION_CATEGORY_NAME]" |
| 48 | + categoryId: "[YOUR_CATEGORY_ID]" |
| 49 | + |
| 50 | + socialIcons: |
| 51 | + - name: github |
| 52 | + url: "[YOUR_GITHUB_URL]" |
| 53 | + - name: stackoverflow |
| 54 | + url: "[YOUR_STACKOVERFLOW_URL]" |
| 55 | + - name: x |
| 56 | + url: "[YOUR_TWITTER_URL]" |
| 57 | + - name: linkedin |
| 58 | + url: "[YOUR LINKEDIN URL]" |
| 59 | + - name: telegram |
| 60 | + url: "[YOUR TELEGRAM URL]" |
| 61 | + #+end_src |
| 62 | + |
| 63 | + You can get the `repoId` and `categoryId` by following the instructions on the giscus website. |
0 commit comments