minification - makes the assets size smallest as possible. bundling - bundles all the styles in one single asset fingerprint/intergity check. Default Theme light/dark/auto params: # defaultTheme: light # defaultTheme: dark defaultTheme: auto # to switch between dark or light according to browser theme Theme Switch Toggle (enabled by default) Shows icon besides title of page to change theme"><metaname=authorcontent="Aditya Telange"><linkrel=canonicalhref=https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-features/><linkhref=https://adityatelange.github.io/hugo-PaperMod/assets/css/stylesheet.min.7bd5899d65d8065bce667feacdde944a1911b79b7be54321635bc25d254c1b92.cssintegrity="sha256-e9WJnWXYBlvOZn/qzd6UShkRt5t75UMhY1vCXSVMG5I="rel="preload stylesheet"as=style><linkrel=apple-touch-iconhref=https://adityatelange.github.io/hugo-PaperMod/apple-touch-icon.png><linkrel=iconhref=https://adityatelange.github.io/hugo-PaperMod/favicon.ico><metaname=generatorcontent="Hugo 0.76.5"><metaproperty="og:title"content="Papermod - Features"><metaproperty="og:description"content="Assets(js/css)Thefollowingisenabledbydefault
minification - makes the assets size smallest as possible. bundling - bundles all the styles in one single asset fingerprint/intergity check. Default Theme light/dark/auto params: # defaultTheme: light # defaultTheme: dark defaultTheme: auto # to switch between dark or light according to browser theme Theme Switch Toggle (enabled by default) Shows icon besides title of page to change theme"><metaproperty="og:type"content="article"><metaproperty="og:url"content="https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-features/"><metaproperty="article:published_time"content="2020-09-16T11:30:03+05:30"><metaproperty="article:modified_time"content="2020-09-16T11:30:03+05:30"><metaname=twitter:cardcontent="summary"><metaname=twitter:titlecontent="Papermod - Features"><metaname=twitter:descriptioncontent="Assets(js/css)Thefollowingisenabledbydefault
minification - makes the assets size smallest as possible. bundling - bundles all the styles in one single asset fingerprint/intergity check. Default Theme light/dark/auto params: # defaultTheme: light # defaultTheme: dark defaultTheme: auto # to switch between dark or light according to browser theme Theme Switch Toggle (enabled by default) Shows icon besides title of page to change theme"><scripttype=application/ld+json>{"@context":"https://schema.org","@type":"BlogPosting","headline":"Papermod-Features","name":"Papermod-Features","description":"Assets(js/css)Thefollowingisenabledbydefault\nminification-makestheassetssizesmallestaspossible.bundling-bundlesallthestylesinonesingleasset…","keywords":["PaperMod"],"articleBody":"Assets(js/css)Thefollowingisenabledbydefault\nminification-makestheassetssizesmallestaspossible.bundling-bundlesallthestylesinonesingleassetfingerprint/intergitycheck.DefaultThemelight/dark/autoparams:#defaultTheme:light#defaultTheme:darkdefaultTheme:auto#toswitchbetweendarkorlightaccordingtobrowserthemeThemeSwitchToggle(enabledbydefault)Showsiconbesidestitleofpagetochangetheme\nTodisableit:\ndisableThemeToggle:trueArchivesLayoutCreateapagewitharchive.mdAddvarsbelowtoitspage-variables\nlayout:\"archives\"ex:archives.md\nHome-InfoModeUse1stentryassomeInformation\naddfollowingtoconfigfile\nparams:homeInfoParams:Title:HitherewaveContent:CanbeInfo,links,about...socialIcons:#optional-name:\"\"url:\"\"-name:\"\"url:\"\"ex.here\nProfileModeShowsIndex/HomepageasFullPagewithSocialLinksandImage\naddfollowingtoconfigfile\nparams:profileMode:enabled:truetitle:\"\"#optionaldefaultwillbesitetitleimageUrl:\"\"#optionalimageTitle:\"\"#optionalbuttons:-name:Archiveurl:\"/archive\"-name:Githuburl:\"https://github.com/\"socialIcons:#optional-name:\"\"url:\"\"-name:\"\"url:\"\"DraftPageindicationadds[draft]marktoindicatedraftpages.\nPostCoverImageInpost’spage-variablesadd:\ncover:image:''#canalsopastedirectlinkfromexternalsite#ex.https://i.ibb.co/K0HVPBd/paper-mod-profilemode.pngalt:''caption:''WhenyouincludeimagesinthePageBundle,multiplesizesoftheimagewillautomaticallybeprovidedusingtheHTML5srcsetfield.\nToreducegenerationtimeandsizeofthesite,youcandisablethisfeatureusing\nparams:cover:responsiveImages:falseToenablehyperlinkstothefullimagesizeonpostpages,use\nparams:cover:linkFullImages:trueShareButtonsonpostDisplaysShareButtonsatBottomofeachpost\ntoshowsharebuttonsadd\nparams:ShowShareButtons:trueShowpostreadingtimeDisplaysReadingTime(theestimatedtime,inminutes,ittakestoreadthecontent.)\nToshowreadingtimeadd\nParams:ShowReadingTime:trueShowTableofContents(Toc)onblogpostDisplaysToConblog-pages\nToshowToCaddfollowingtopage-variables\nShowToc:trueTokeepTocOpenbydefaultonapostaddfollowingtopage-variables:\nTocOpen:trueCommentstoaddcomments,createahtmlfile\nlayouts/partials/comments.html\nandpastecodeprovidedbyyourcommentsprovider\nalsoinconfigaddthis\nparams:comments:truereadmoreaboutthishere\nMiscScroll-Barthemed(bydefault)SmoothScrollbetweenin-pagelinks(bydefault)Scroll-to-TopButton(bydefault)DisplaysaScroll-to-Topbuttoninright-bottomcorner\nGoogleAnalyticsintegrationOpen-GraphsupportTwitterCardsSupportSyntaxhighlightingTwittercardsandopengraphtagssupportRSSfeedsMultilingualSupport","wordCount":"452","inLanguage":"en","datePublished":"2020-09-16T11:30:03+05:30","dateModified":"2020-09-16T11:30:03+05:30","author":{"@type":"Person","name":"AdityaTelange"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-features/"},"publisher":{"@type":"Organization","name":"PaperMod","logo":{"@type":"ImageObje
<spanclass=theme-toggle><aid=theme-toggle><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></a></span></p><ulclass=menuid=menuonscroll=menu_on_scroll()><li><ahref=https://adityatelange.github.io/hugo-PaperMod/archives/><span>Archives</span></a></li><li><ahref=https://adityatelange.github.io/hugo-PaperMod/tags/><span>Tags</span></a></li></ul></nav></header><mainclass=main><articleclass=post-single><headerclass=post-header><h1class=post-title>Papermod - Features</h1><divclass=post-meta><time>September 16, 2020</time> · 3 min · Aditya Telange</div></header><divclass=toc><detailsopen><summary><divclass=details>Table of Contents</div></summary><blockquote><ul><li><ahref=#assets-jscss>Assets (js/css)</a></li><li><ahref=#default-theme-lightdarkauto>Default Theme light/dark/auto</a></li><li><ahref=#theme-switch-toggle-enabled-by-default>Theme Switch Toggle (enabled by default)</a></li><li><ahref=#archives-layout>Archives Layout</a></li><li><ahref=#home-info-mode>Home-Info Mode</a></li><li><ahref=#profile-mode>Profile Mode</a></li><li><ahref=#draft-page-indication>Draft Page indication</a></li><li><ahref=#post-cover-image>Post Cover Image</a></li><li><ahref=#share-buttons-on-post>Share Buttons on post</a></li><li><ahref=#show-post-reading-time>Show post reading time</a></li><li><ahref=#show-table-of-contents-toc-on-blog-post>Show Table of Contents (Toc) on blog post</a></li><li><ahref=#comments>Comments</a></li><li><ahref=#misc>Misc</a><ul><li><ahref=#scroll-bar-themed-by-default>Scroll-Bar themed (by default)</a></li><li><ahref=#smooth-scroll-between-in-page-links-by-default>Smooth Scroll between in-page links (by default)</a></li><li><ahref=#scroll-to-top-button-by-default>Scroll-to-Top Button (by default)</a></li><li><ahref=#google-analytics-integration>Google Analytics integration</a></li><li><ahref=#open-graph-support>Open-Graph support</a></li><li><ahref=#twitter-cards-support>Twitter Cards Support</a></li><li><ahref=#syntax-highlighting>Syntax highlighting</a></li><li><ahref=#twitter-cards-and-opengraph-tags-support>Twitter cards and opengraph tags support</a></li><li><ahref=#rss-feeds>RSS feeds</a></li><li><ahref=#multilingual-support>Multilingual Support</a></li></ul></li></ul></blockquote></details></div><divclass=post-content><h3id=assets-jscss>Assets (js/css)</h3><p>The following is enabled by default</p><ul><li><ahref=https://gohugo.io/hugo-pipes/minification/>minification</a> - makes the assets size smallest as possible.</li><li><ahref=https://gohugo.io/hugo-pipes/bundling/>bundling</a> - bundles all the styles in one single asset</li><li><ahref=https://gohugo.io/hugo-pipes/fingerprint/>fingerprint/intergity</a> check.</li></ul><hr><h3id=default-theme-lightdarkauto>Default Theme light/dark/auto</h3><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>params</span>:
<spanstyle=color:#f92672>defaultTheme</span>: <spanstyle=color:#ae81ff>auto</span><spanstyle=color:#75715e># to switch between dark or light according to browser theme</span>
</code></pre></div><hr><h3id=theme-switch-toggle-enabled-by-default>Theme Switch Toggle (enabled by default)</h3><p>Shows icon besides title of page to change theme</p><p>To disable it :</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>disableThemeToggle </span>: <spanstyle=color:#66d9ef>true</span>
</code></pre></div><hr><h3id=archives-layout>Archives Layout</h3><p>Create a page with <code>archive.md</code>
Add vars below to its page-variables</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>layout</span>: <spanstyle=color:#e6db74>"archives"</span>
</code></pre></div><p>ex: <ahref=https://raw.githubusercontent.com/adityatelange/hugo-PaperMod/exampleSite/content/archives.md>archives.md</a></p><hr><h3id=home-info-mode>Home-Info Mode</h3><p>Use 1st entry as some Information</p><p>add following to config file</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>params</span>:
</code></pre></div><p>ex. <ahref=https://github.com/adityatelange/hugo-PaperMod/blob/exampleSite/config.toml#L14>here</a></p><p><imgsrc=https://i.ibb.co/zsq6fLr/papermod-homeinfo.pngalt></p><hr><h3id=profile-mode>Profile Mode</h3><p>Shows Index/Home page as Full Page with Social Links and Image</p><p>add following to config file</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>params</span>:
<spanstyle=color:#f92672>title</span>: <spanstyle=color:#e6db74>"<Title>"</span><spanstyle=color:#75715e># optional default will be site title</span>
<spanstyle=color:#f92672>imageTitle</span>: <spanstyle=color:#e6db74>"<title of image as alt>"</span><spanstyle=color:#75715e># optional</span>
</code></pre></div><p>When you include images in the <ahref=https://gohugo.io/content-management/page-bundles/>Page Bundle</a>, multiple sizes of the image will automatically be provided using the HTML5 <code>srcset</code> field.</p><p>To reduce generation time and size of the site, you can disable this feature using</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>params</span>:
</code></pre></div><p>To enable hyperlinks to the full image size on post pages, use</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>params</span>:
</code></pre></div><hr><h3id=share-buttons-on-post>Share Buttons on post</h3><p>Displays Share Buttons at Bottom of each post</p><p>to show share buttons add</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>params</span>:
</code></pre></div><hr><h3id=show-post-reading-time>Show post reading time</h3><p>Displays Reading Time (the estimated time, in minutes, it takes to read the content.)</p><p>To show reading time add</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>Params</span>:
</code></pre></div><hr><h3id=show-table-of-contents-toc-on-blog-post>Show Table of Contents (Toc) on blog post</h3><p>Displays ToC on blog-pages</p><p>To show ToC add following to page-variables</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>ShowToc</span>: <spanstyle=color:#66d9ef>true</span>
</code></pre></div><p>To keep Toc Open <strong>by default</strong> on a post add following to page-variables:</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>TocOpen</span>: <spanstyle=color:#66d9ef>true</span>
</code></pre></div><hr><h3id=comments>Comments</h3><p>to add comments, create a html file</p><p><code>layouts/partials/comments.html</code></p><p>and paste code provided by your comments provider</p><p>also in config add this</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>params</span>:
<span>Theme️<ahref=https://git.io/hugopapermodrel=noopenertarget=_blank>PaperMod</a></span></footer><ahref=#toparia-label="go to top"title="Go to Top"><buttonclass=top-linkid=top-linktype=button><svgxmlns="http://www.w3.org/2000/svg"viewBox="0 0 12 6"><pathd="M12 6H0l6-6z"/></svg></button></a>