Skip to content

About

This is my personal portfolio website, built with hugo.

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Repository files navigation

rishab.cloud

Hi, I am Rishab and this is my personal portfolio based on theme template.

ProfilePic

Quick Start

  1. Install Hugo
  2. Install Git

Open your terminal or command line

  1. Create a new folder 'my-personal-blog'
mkdir 'my-personal-blog'
  1. Go into this folder
cd 'my-personal-blog'
  1. Initialize an empty Git repository in the current directory
git init
  1. Clone this repository into your folder
git clone 'https://github.com/charlola/hugo-theme-charlolamode.git'
  1. Start Hugo's development server to view the site locally.
hugo server

Once the local server starts, you can see your site. If your web-browser does not automatically pop up, open your browser and enter http://localhost:1313. Now you can start to modify this page in the directory. If you save new changes, this site will automatically refresh and render the modification.

Export and import Hashnode posts

Export Hashnode posts into local JSON, Markdown, and image files:

HASHNODE_TOKEN=your_api_key npm run export:hashnode -- --publication=blog.rishabkumar.com

The exporter defaults to Hashnode's Pro GraphQL endpoint, https://gql-beta.hashnode.com. Override it with HASHNODE_API_URL if Hashnode shows a different endpoint in your dashboard. It also writes post-level analytics counters to hashnode-export/blog.rishabkumar.com/analytics/posts.json and hashnode-export/blog.rishabkumar.com/analytics/posts.csv.

To export drafts too:

HASHNODE_TOKEN=your_api_key npm run export:hashnode -- --publication=blog.rishabkumar.com --include-drafts

To export only drafts:

HASHNODE_TOKEN=your_api_key npm run export:hashnode -- --publication=blog.rishabkumar.com --drafts-only

Then import the exported JSON into Hugo Markdown:

npm run import:hashnode -- hashnode-export/blog.rishabkumar.com/posts/json

The importer writes posts to content/blog/*.md and local images to static/images/blog/. Preview the import without writing files:

npm run import:hashnode -- hashnode-export/blog.rishabkumar.com/posts/json --dry-run

If you need to re-run the import over existing files:

npm run import:hashnode -- hashnode-export/blog.rishabkumar.com/posts/json --overwrite

Drafts are exported under hashnode-export/blog.rishabkumar.com/drafts/json. Import them with --include-drafts; they stay marked as Hugo drafts.

After import, review embeds, images, redirects, and post metadata before publishing.

Open Visual Studio Code to edit your Blog

  1. Open your favorite Editor like Visual Studio Code

Basic Configuration

The config.yml is your best friend. You can modify and add information, such as ...

  • Title of the page
  • Your Name
  • Social Icons
  • Buttons

ProfilePic

You can easily add social icons like LinkedIn, Twitter, Youtube, Instagram, ... just have a look in the config.yml. Examples are already added.

Change Profile Image

To add your profile pic, replace profil.png in the folder static/images. Make sure you take an image with a happy face :)

Add tabs

In the config.yml you can add new tabs next to 'Articles' and 'Contact'. Uncomment 'Category' to check it out.

Note If you add a new tab in the config.yml, you have to do the following:

  1. Add new folder in the directory 'content' with the same name as the new tab.
  2. Copy _index.md from articles into new folder.

Add new content

If you like to push new content, create a new Markdown file in the new folder. Find an example in content/articles/article.md.

Thank you

I'd love to get feedback. Send a message via LinkedIn. Feel free to support this page with a coffee donation :)

Online Website

To push your website online, use Azure Static Web or Netflify. I used Azure Static Web.

About

This is my personal portfolio website, built with hugo.

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages