Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

akashchandwani/akashchandwani.github.io

Repository files navigation

A personal blogging website created to share my thoughts and experiences on software technologies and open source tools.

Technologies Used

  1. Static website builder:Hugo
  2. Theme:PaperMod
  3. Comments:Disqus
  4. Diagrams:Mermaid
  5. Dev Containers:Dev Containers

Setting up the application:

There are two ways to spin up this application

  1. The hard way: Install everything in local and hope everything works in CI/CD as well :)
  2. The easy way: Using dev containers. Just spin up the application in a docker container.

Setting up the application: The Hard Way

Make sure you have the following tools installed as pre-requisite. The steps are for mac, but you can use alternatives for your OS.

Pre-requisites

  1. Install Hugo:brew install hugo
  2. install pre-commit tool:pip install pre-commit

Steps

  1. Clone the repository
  2. Install pre-commit in your system by running:pip install pre-commit
  3. Runpre-commit install -f to install thepre-commit hooks in the repository
  4. Install hugo using the command:brew install hugo
  5. Install the theme submodule using the command:git submodule update --init --recursive --remote
  6. Installpre-commit extension in your text editor to maintain consistency in formatting. To install, run:brew install pre-commit and thenpre-commit-install to update the pre-commit hook in your local repository

Setting up the application: The Easy Way

You can use the devcontainers to run a pre-configured developement environment in your machine. This repository already has a prec-configured template indevcontainer/devcontainer.json. All you have to do is to run this application ongithub codespaces,vs code dev containers or any devcontainer of your choice.

Create a new content page

To create a new content page run the command

hugo new content content/blog/<your-page-name>.md

Publish content

To publish the content you will have to

  1. Set thedraft key to false in the content page
  2. Push the changes usinggit push command

Frequently used commands

  1. Runpre-commit autoupdate to fetch and install the latest version of thepre-commit hooks
  2. To generate a blog page, runhugo new content blog/<page-name>.md
  3. To run the server with draft views enabled, runhugo server -D
  4. To run the serverhugo server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp