Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Jr-14/blog

Repository files navigation

Blog

Another web repository but for a blog

Getting started

IMPORTANT Make sure you clone this repo correctly as it relies on papertheme

git clone --recurse-submodules <REPO_URL>

Dependencies

  • golang as dependency for hugo.
  • Hugo as the static site generator for the blog. I think we use the extended edition?

Development

Updating dependencies

PaperMod for themes: This blog uses hugo-PaperMod as its theme. Updating and installing can be found here.

TLDR... INSTALL: Inside the repo

git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth=1

UPDATE: Inside the repo

cd themes/PaperMod
git pull

Starting development server

Hugo contents generally have the draft front matter set to true. To include draft contents run one of:

hugo server --buildDrafts
hugo server --D

Adding a content

hugo new content posts/<content-name>.md

Adding math support to the content

You can add rendering of math by adding the following to the front matter.

Using yaml:

---
...
math: 'katex'
...
---

You can also use toml and json. Find the structure here: https://gohugo.io/content-management/front-matter/

Publishing Your Site

Run

hugo

About

Another web repository but for a blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages