<spanclass=logo-switches><buttonid=theme-toggleaccesskey=ttitle="(Alt + T)"><svgid="moon"xmlns="http://www.w3.org/2000/svg"width="24"height="24"viewBox="0 0 24 24"fill="none"stroke="currentcolor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"><pathd="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg><svgid="sun"xmlns="http://www.w3.org/2000/svg"width="24"height="24"viewBox="0 0 24 24"fill="none"stroke="currentcolor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"><circlecx="12"cy="12"r="5"/><linex1="12"y1="1"x2="12"y2="3"/><linex1="12"y1="21"x2="12"y2="23"/><linex1="4.22"y1="4.22"x2="5.64"y2="5.64"/><linex1="18.36"y1="18.36"x2="19.78"y2="19.78"/><linex1="1"y1="12"x2="3"y2="12"/><linex1="21"y1="12"x2="23"y2="12"/><linex1="4.22"y1="19.78"x2="5.64"y2="18.36"/><linex1="18.36"y1="5.64"x2="19.78"y2="4.22"/></svg></button><ulclass=lang-switch><li>|</li><li><ahref=https://adityatelange.github.io/hugo-PaperMod/fr/title=Frencharia-label=:fr:>🇫🇷</a></li><li><ahref=https://adityatelange.github.io/hugo-PaperMod/fa/title=Faaria-label=Fa>Fa</a></li></ul></span></div><ulid=menu><li><ahref=https://adityatelange.github.io/hugo-PaperMod/archivestitle=Archive><span>Archive</span></a></li><li><ahref=https://adityatelange.github.io/hugo-PaperMod/categories/title=Categories><span>Categories</span></a></li><li><ahref=https://adityatelange.github.io/hugo-PaperMod/search/title="Search (Alt + /)"accesskey=/><span>Search</span></a></li><li><ahref=https://adityatelange.github.io/hugo-PaperMod/tags/title=Tags><span>Tags</span></a></li></ul></nav></header><mainclass=main><articleclass=post-single><headerclass=post-header><divclass=breadcrumbs><ahref=https://adityatelange.github.io/hugo-PaperMod/>Home</a> » <ahref=https://adityatelange.github.io/hugo-PaperMod/posts/>Posts</a> » <ahref=https://adityatelange.github.io/hugo-PaperMod/posts/papermod/>PaperMod</a></div><h1class=post-title>Installation | Update</h1><divclass=post-meta>January 20, 2021 · 4 min · Aditya Telange | <ahref=https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite/content/posts/papermod/papermod-installation.mdrel="noopener noreferrer"target=_blank>Suggest Changes</a></div></header><divclass=toc><details><summaryaccesskey=ctitle="(Alt + C)"><spanclass=details>Table of Contents</span></summary><divclass=inner><ul><li><ahref=#introaria-label=Intro>Intro</a></li><li><ahref=#guidearia-label=Guide>Guide</a><ul><li><ahref=#method-1aria-label="Method 1">Method 1</a></li><li><ahref=#method-2aria-label="Method 2">Method 2</a></li><li><ahref=#method-3aria-label="Method 3">Method 3</a></li><li><ahref=#finally-aria-label="Finally &hellip;">Finally …</a></li></ul></li><li><ahref=#quick-linksaria-label="Quick Links">Quick Links</a><ul><li><ahref=#papermod---featurespapermod-featuresaria-label="Papermod - Features"><ahref=../papermod-features>Papermod - Features</a></a></li><li><ahref=#papermod---faqspapermod-how-toaria-label="Papermod - FAQs"><ahref=../papermod-how-to>Papermod - FAQs</a></a></li><li><ahref=#papermod---variablespapermod-variablesaria-label="Papermod - Variables"><ahref=../papermod-variables>Papermod - Variables</a></a></li><li><ahref=#papermod---iconspapermod-iconsaria-label="Papermod - Icons"><ahref=../papermod-icons>Papermod - Icons</a></a></li><li><ahref=#changeloghttpsgithubcomadityatelangehugo-papermodreleasesaria-label=ChangeLog><ahref=https://github.com/adityatelange/hugo-PaperMod/releases>ChangeLog</a></a></li></ul></li><li><ahref=#sample-configymlaria-label="Sample config.yml">Sample <code>config.yml</code></a></li><li><ahref=#sample-pagemdaria-label="Sample Page.md">Sample <code>Page.md</code></a></li></ul></div></details></div><divclass=post-content><h2id=intro>Intro<ahiddenclass=anchoraria-hidden=truehref=#intro>#</a></h2><ul><li><strong>We’ll be using <code>yml/yaml</code> format for all examples down below, I recommend using <
</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><prestyle=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-bashdata-lang=bash>cd themes/PaperMod
</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><prestyle=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-bashdata-lang=bash>git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod --depth<spanstyle=color:#f92672>=</span><spanstyle=color:#ae81ff>1</span>
git submodule update --init --recursive <spanstyle=color:#75715e># 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><prestyle=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><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/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><prestyle=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-ymldata-lang=yml><spanstyle=color:#f92672>theme</span>: <spanstyle=color:#e6db74>"PaperMod"</span>
</code></pre></div><hr><h2id=quick-links>Quick Links<ahiddenclass=anchoraria-hidden=truehref=#quick-links>#</a></h2><ul><li><h3id=papermod---featurespapermod-features><ahref=../papermod-features>Papermod - Features</a><ahiddenclass=anchoraria-hidden=truehref=#papermod---featurespapermod-features>#</a></h3></li><li><h3id=papermod---faqspapermod-how-to><ahref=../papermod-how-to>Papermod - FAQs</a><ahiddenclass=anchoraria-hidden=truehref=#papermod---faqspapermod-how-to>#</a></h3></li><li><h3id=papermod---variablespapermod-variables><ahref=../papermod-variables>Papermod - Variables</a><ahiddenclass=anchoraria-hidden=truehref=#papermod---variablespapermod-variables>#</a></h3></li><li><h3id=papermod---iconspapermod-icons><ahref=../papermod-icons>Papermod - Icons</a><ahiddenclass=anchoraria-hidden=truehref=#papermod---iconspapermod-icons>#</a></h3></li><li><h3id=changeloghttpsgithubcomadityatelangehugo-papermodreleases><ahref=https://github.com/adityatelange/hugo-PaperMod/releases>ChangeLog</a><ahiddenclass=anchoraria-hidden=truehref=#changeloghttpsgithubcomadityatelangehugo-papermodreleases>#</a></h3></li></ul><hr><h2id=sample-configyml>Sample <code>config.yml</code><ahiddenclass=anchoraria-hidden=truehref=#sample-configyml>#</a></h2><blockquote><p><strong>Example Site Structure is present here</strong>: <ahref=https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite/>exampleSite</a></p></blockquote><p><strong>Use appropriately</strong></p><divclass=highlight><prestyle=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-ymldata-lang=yml><spanstyle=color:#f92672>baseURL</span>: <spanstyle=color:#e6db74>"https://examplesite.com/"</span>
<spanstyle=color:#f92672>env</span>: <spanstyle=color:#ae81ff>production</span><spanstyle=color:#75715e># to enable google analytics, opengraph, twitter-cards and schema.</span>
<spanstyle=color:#f92672>hidden</span>: <spanstyle=color:#66d9ef>true</span><spanstyle=color:#75715e># hide everywhere but not in structured data</span>
<spanstyle=color:#f92672>hiddenInList</span>: <spanstyle=color:#66d9ef>true</span><spanstyle=color:#75715e># hide on list pages and home</span>
<spanstyle=color:#f92672>hiddenInSingle</span>: <spanstyle=color:#66d9ef>true</span><spanstyle=color:#75715e># hide on single page</span>
<spanstyle=color:#f92672>alt</span>: <spanstyle=color:#e6db74>"<alt text>"</span><spanstyle=color:#75715e># alt text</span>
<spanstyle=color:#f92672>caption</span>: <spanstyle=color:#e6db74>"<text>"</span><spanstyle=color:#75715e># display caption under cover</span>
<spanstyle=color:#f92672>relative</span>: <spanstyle=color:#66d9ef>false</span><spanstyle=color:#75715e># when using page bundles set this to true</span>
<spanstyle=color:#f92672>hidden</span>: <spanstyle=color:#66d9ef>true</span><spanstyle=color:#75715e># only hide on current single page</span>
</code></pre></div><p>You can use it by creating <code>archetypes/post.md</code></p><divclass=highlight><prestyle=color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-shelldata-lang=shell>hugo new --kind post <name>