Skip to content

ashishtiwari1993/ashish.one

Repository files navigation

ashish.one

Source code for my personal website.

Run on local machine

Install hugo

https://gohugo.io/getting-started/installing/

Clone the repo

git clone https://github.com/ashishtiwari1993/ashish.one.git
cd ashish.one

Install theme (e.g. PaperMod)

git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod
git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod

Run

hugo server -D

Visit localhost:1313

To enable the comment

Open below file

vim themes/PaperMod/layouts/partials/comments.html

Add below snippet

<script src="https://giscus.app/client.js"
        data-repo="ashishtiwari1993/ashish.one"
        data-repo-id="MDEwOlJlcG9zaXRvcnkyMTAxMjkzNjY="
        data-category="General"
        data-category-id="DIC_kwDODIZR1s4CP1P2"
        data-mapping="title"
        data-reactions-enabled="1"
        data-emit-metadata="0"
        data-input-position="bottom"
        data-theme="dark_high_contrast"
        data-lang="en"
        crossorigin="anonymous"
        async>
</script>

Add Cover page customization

Create below file

vim themes/PaperMod/assets/css/extended/tag_list_cover.css 

Add below CSS

.tag-entry .entry-cover {
    display: flex;
}

Re Generate the Site

hugo

Open links in new tab

adityatelange/hugo-PaperMod#760 (comment)

About

Source code for my personal website.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published