<!doctype html><htmllang=endir=auto><head><metacharset=utf-8><metahttp-equiv=x-ua-compatiblecontent="IE=edge"><metaname=viewportcontent="width=device-width,initial-scale=1,shrink-to-fit=no"><metaname=robotscontent="index, follow"><title>Installation | Update | PaperMod</title><metaname=keywordscontent="PaperMod"><metaname=descriptioncontent="Read Install and Update instructions here"><metaname=authorcontent="Aditya Telange"><linkrel=canonicalhref=https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-installation/><linkcrossorigin=anonymoushref=/hugo-PaperMod/assets/css/stylesheet.2494a82033f8f1af32a12550b2118ede6560401d51adfaee0982c2d0ff0bb7fc.cssintegrity="sha256-JJSoIDP48a8yoSVQshGO3mVgQB1RrfruCYLC0P8Lt/w="rel="preload stylesheet"as=style><linkrel=iconhref=https://adityatelange.github.io/hugo-PaperMod/favicon.ico><linkrel=icontype=image/pngsizes=16x16href=https://adityatelange.github.io/hugo-PaperMod/favicon-16x16.png><linkrel=icontype=image/pngsizes=32x32href=https://adityatelange.github.io/hugo-PaperMod/favicon-32x32.png><linkrel=apple-touch-iconhref=https://adityatelange.github.io/hugo-PaperMod/apple-touch-icon.png><linkrel=mask-iconhref=https://adityatelange.github.io/hugo-PaperMod/safari-pinned-tab.svg><metaname=theme-colorcontent="#2e2e33"><metaname=msapplication-TileColorcontent="#2e2e33"><linkrel=alternatehreflang=enhref=https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-installation/><noscript><style>#theme-toggle,.top-link{display:none}</style><style>@media(prefers-color-scheme:dark){:root{--theme:rgb(29,30,32);--entry:rgb(46,46,51);--primary:rgb(218,218,219);--secondary:rgb(155,156,157);--tertiary:rgb(65,66,68);--content:rgb(196,196,197);--hljs-bg:rgb(46,46,51);--code-bg:rgb(55,56,62);--border:rgb(51,51,51)}.list{background:var(--theme)}.list:not(.dark)::-webkit-scrollbar-track{background:00}.list:not(.dark)::-webkit-scrollbar-thumb{border-color:var(--theme)}}</style></noscript><metaproperty="og:title"content="Installation | Update"><metaproperty="og:description"content="Read Install and Update instructions here"><metaproperty="og:type"content="article"><metaproperty="og:url"content="https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-installation/"><metaproperty="og:image"content="https://adityatelange.github.io/hugo-PaperMod/papermod-cover.png"><metaproperty="article:section"content="posts"><metaproperty="article:published_time"content="2021-01-20T00:00:00+00:00"><metaproperty="article:modified_time"content="2021-01-20T00:00:00+00:00"><metaname=twitter:cardcontent="summary_large_image"><metaname=twitter:imagecontent="https://adityatelange.github.io/hugo-PaperMod/papermod-cover.png"><metaname=twitter:titlecontent="Installation | Update"><metaname=twitter:descriptioncontent="Read Install and Update instructions here"><scripttype=application/ld+json>{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Posts","item":"https://adityatelange.github.io/hugo-PaperMod/posts/"},{"@type":"ListItem","position":2,"name":"PaperMod","item":"https://adityatelange.github.io/hugo-PaperMod/posts/papermod/"},{"@type":"ListItem","position":3,"name":"Installation | Update","item":"https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-installation/"}]}</script><scripttype=application/ld+json>{"@context":"https://schema.org","@type":"BlogPosting","headline":"Installation|Update","name":"Installation|Update","description":"ReadInstallandUpdateinstructionshere","keywords":["PaperMod"],"articleBody":"IntroWe’llbeusingyml/yamlformatforallexamplesdownbelow,Irecommendusingymlovertomlasitiseasiertoread.YoucanfindanyYMLtoTOMLconvertersifnecessary.GuideFollowQuickStartguidetosetupandcreateanewsite.\nNote:Use-ftoselectymlformat\nhugonewsite-fyml\nMakesureyouinstalllatestversionofhugo(=0.83.0).\nAfteryouhavecreatedanewsite,atStep3follow
<imgclass=in-textheight=14src=https://raw.githubusercontent.com/gohugoio/hugoDocs/master/static/img/hugo-logo.pngalt> and create a new site.</p><blockquote><p>Note: Use -f to select yml format</p><p><code>hugo new site <name of site> -f yml</code></p></blockquote><p>Make sure you install latest version of <strong><code>hugo(>=0.83.0)</code></strong>.</p><p>After you have created a new site, at <ahref=https://gohugo.io/getting-started/quick-start/#step-3-add-a-theme>Step 3</a> follow the steps:</p><h3id=method-1>Method 1<ahiddenclass=anchoraria-hidden=truehref=#method-1>#</a></h3><p>Inside the folder of your Hugo site, run:</p><divclass=highlight><preclass=chroma><codeclass=language-bashdata-lang=bash>git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth<spanclass=o>=</span><spanclass=m>1</span>
</code></pre></div><p><strong>Note</strong>: You may use <code>--branch v5.0</code> to end of above command if you want to stick to specific release.</p><blockquote><p>Updating theme :</p><divclass=highlight><preclass=chroma><codeclass=language-bashdata-lang=bash><spanclass=nb>cd</span> themes/PaperMod
git pull
</code></pre></div></blockquote><h3id=method-2>Method 2<ahiddenclass=anchoraria-hidden=truehref=#method-2>#</a></h3><p>you can use as <ahref=https://www.atlassian.com/git/tutorials/git-submodule>submodule</a> with</p><divclass=highlight><preclass=chroma><codeclass=language-bashdata-lang=bash>git submodule add --depth<spanclass=o>=</span><spanclass=m>1</span> https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
git submodule update --init --recursive <spanclass=c1># needed when you reclone your repo (submodules may not get cloned automatically)</span>
</code></pre></div><p><strong>Note</strong>: You may use <code>--branch v5.0</code> to end of above command if you want to stick to specific release.</p><blockquote><p>Updating theme :</p><divclass=highlight><preclass=chroma><codeclass=language-bashdata-lang=bash>git submodule update --remote --merge
</code></pre></div></blockquote><h3id=method-3>Method 3<ahiddenclass=anchoraria-hidden=truehref=#method-3>#</a></h3><p>Or you can Download as Zip from Github Page and extract in your themes directory</p><p>Direct Links:</p><ul><li><ahref=https://github.com/adityatelange/hugo-PaperMod/archive/master.zip>Master Branch (Latest)</a></li><li><ahref=https://github.com/adityatelange/hugo-PaperMod/archive/v6.0.zip>v6.0</a></li><li><ahref=https://github.com/adityatelange/hugo-PaperMod/archive/v5.0.zip>v5.0</a></li><li><ahref=https://github.com/adityatelange/hugo-PaperMod/archive/v4.0.zip>v4.0</a></li><li><ahref=https://github.com/adityatelange/hugo-PaperMod/archive/v3.0.zip>v3.0</a></li><li><ahref=https://github.com/adityatelange/hugo-PaperMod/archive/v2.0.zip>v2.0</a></li><li><ahref=https://github.com/adityatelange/hugo-PaperMod/archive/v1.0.zip>v1.0</a></li></ul><h3id=finally->Finally …<ahiddenclass=anchoraria-hidden=truehref=#finally->#</a></h3><p>Add in <code>config.yml</code>:</p><divclass=highlight><preclass=chroma><codeclass=language-ymldata-lang=yml><spanclass=nt>theme</span><spanclass=p>:</span><spanclass=w></span><spanclass=s2>"PaperMod"</span><spanclass=w>
</span></code></pre></div><h3id=method-4>Method 4<ahiddenclass=anchoraria-hidden=truehref=#method-4>#</a></h3><ul><li><p>Install <ahref=https://go.dev/doc/install>Go programming language</a> in your operating system.</p></li><li><p>Intialize your own hugo mod</p></li></ul><pre><code>hugo mod init YOUR_OWN_GIT_REPOSITORY
</code></pre><ul><li>Add PaperMod in your <code>config.yml</code> file</li></ul><pre><code>module:
</span><spanclass=w></span><spanclass=nt>env</span><spanclass=p>:</span><spanclass=w></span><spanclass=l>production</span><spanclass=w></span><spanclass=c># to enable google analytics, opengraph, twitter-cards and schema.</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>images</span><spanclass=p>:</span><spanclass=w></span><spanclass=p>[</span><spanclass=s2>"<link or path of image for opengraph, twitter-cards>"</span><spanclass=p>]</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>enabled</span><spanclass=p>:</span><spanclass=w></span><spanclass=kc>false</span><spanclass=w></span><spanclass=c># needs to be explicitly set</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>subtitle</span><spanclass=p>:</span><spanclass=w></span><spanclass=s2>"This is subtitle"</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>Title</span><spanclass=p>:</span><spanclass=w></span><spanclass=s2>"Hi there \U0001F44B"</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>Content</span><spanclass=p>:</span><spanclass=w></span><spanclass=l>Welcome to my blog</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>hidden</span><spanclass=p>:</span><spanclass=w></span><spanclass=kc>true</span><spanclass=w></span><spanclass=c># hide everywhere but not in structured data</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>hiddenInList</span><spanclass=p>:</span><spanclass=w></span><spanclass=kc>true</span><spanclass=w></span><spanclass=c># hide on list pages and home</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>hiddenInSingle</span><spanclass=p>:</span><spanclass=w></span><spanclass=kc>true</span><spanclass=w></span><spanclass=c># hide on single page</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>appendFilePath</span><spanclass=p>:</span><spanclass=w></span><spanclass=kc>true</span><spanclass=w></span><spanclass=c># to append file path to Edit link</span><spanclass=w>
</span><spanclass=w>
</span><spanclass=w></span><spanclass=c># for search</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>disableHLJS</span><spanclass=p>:</span><spanclass=w></span><spanclass=kc>true</span><spanclass=w></span><spanclass=c># to disable highlightjs</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>alt</span><spanclass=p>:</span><spanclass=w></span><spanclass=s2>"<alt text>"</span><spanclass=w></span><spanclass=c># alt text</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>caption</span><spanclass=p>:</span><spanclass=w></span><spanclass=s2>"<text>"</span><spanclass=w></span><spanclass=c># display caption under cover</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>relative</span><spanclass=p>:</span><spanclass=w></span><spanclass=kc>false</span><spanclass=w></span><spanclass=c># when using page bundles set this to true</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>hidden</span><spanclass=p>:</span><spanclass=w></span><spanclass=kc>true</span><spanclass=w></span><spanclass=c># only hide on current single page</span><spanclass=w>
</span><spanclass=w></span><spanclass=nt>appendFilePath</span><spanclass=p>:</span><spanclass=w></span><spanclass=kc>true</span><spanclass=w></span><spanclass=c># to append file path to Edit link</span><spanclass=w>
</span></code></pre></div><p>You can use it by creating <code>archetypes/post.md</code></p><divclass=highlight><preclass=chroma><codeclass=language-shelldata-lang=shell>hugo new --kind post <name>