Pastikan teman-teman sudah menginstall hugo terlebih dahulu ya, bila ingin referensinya bisa lihat di Membuat Blog dengan Hugo bagaimana cara install hugo dan menggunakanya.
Pertama-tama untuk setup clone dulu repository saya:
1
2
3
git clone https://github.com/wisnuwiry/blog-v2.git
cd blog-v2
hugo server
Dan ini bisa Anda langsung deploy ke netlify, dengan cara Fork dulu repository saya, kemudian import di netlify.
Wow, sudah jadi website secara lokal sudah bisa Anda jalankan, salamat….
baseURL="https://example.com/"# your domain sitelanguageCode="id"title="Your name site"summaryLength=5[Author]# Used in authorboxname="Your name"bio="Your Bio personal"avatar="img/avatar.png"# your Avatar [Params]description="Default descriptiion your sute."# Site Description. Used in meta descriptionimages=["img/avatar.png"]copyright="Wisnuwiry"# Copyright holder, otherwise will use .Site.Titleopengraph=true# Enable OpenGraph if truetwitter_cards=true# Enable Twitter Cards if truemainSections=["post"]# Set main page sectionsprojectSections=["project"]# Set main page sectionsdateFormat="January 02, 2006"# Change the format of dates# customCSS = ["css/custom.css"] # Include custom CSS filescustomJS=[]mainMenuAlignment="right"# Align main menu (desktop version) to the right sideauthorbox=true# Show authorbox at bottom of single pages if truecomments=true# Enable comments for all site pagesrelated=true# Enable Related content for single pagesrelatedMax=5mathjax=false# Enable MathJax for all site pageshideNoPostsWarning=false# Don't show no posts empty state warning in main page, if truefontUnit="em"largestFontSize=2.5smallestFontSize=1googleSearchConsole=""# Google search console codeGoogleAnalytics=""# Google analisi codefb_admins=""# Your facebook adminfb_app_id=""# Your facebook app id[Params.Hero]title="A Personal Site By WisnuWiry"desc="Welcome to my Blog :)"[Params.Entry]meta=["date","categories"]# Enable meta fields in given ordertoc=true# Enable Table of ContentstocOpen=false# Open Table of Contents block. Optional[Params.Featured]previewOnly=false# Show only preview featured image[Params.Breadcrumb]enable=true# Enable breadcrumb block globallyhomeText="Home"# Home node text[Params.Social]twitter=""#username your social media ex: wisnuwirytelegram=""instagram=""linkedin=""github=""medium=""[Params.Share]# Entry Share blockfacebook=truetwitter=truereddit=truetelegram=truelinkedin=truepinterest=true# Web App Manifest settings# https://www.w3.org/TR/appmanifest/# https://developers.google.com/web/fundamentals/web-app-manifest/[Params.Manifest]name="Wisnuwiry"shortName="Wisnuwiry"display="standalone"startUrl="/?utm_source=homescreen"backgroundColor="#FFFFFF"themeColor="#0d2538"description="Personal Site By Wisnuwiry"orientation="portrait"scope="/"[outputFormats][outputFormats.MANIFEST]mediaType="application/json"baseName="manifest"isPlainText=truenotAlternative=true[outputs]home=["HTML","RSS","MANIFEST"]enableRobotsTXT=true# PaginationPaginate=3# Code[markup]# defaultMarkdownHandler = "blackfriday"[markup.goldmark][markup.goldmark.extensions]definitionList=truefootnote=truelinkify=truestrikethrough=truetable=truetaskList=truetypographer=true[markup.goldmark.parser]attribute=trueautoHeadingID=trueautoHeadingIDType="github"[markup.goldmark.renderer]hardWraps=falseunsafe=truexhtml=false[markup.blackFriday]angledQuotes=falsefootnoteAnchorPrefix=""footnoteReturnLinkContents=""fractions=truehrefTargetBlank=falselatexDashes=truenofollowLinks=falsenoreferrerLinks=falseplainIDAnchors=trueskipHTML=falsesmartDashes=truesmartypants=truesmartypantsQuotesNBSP=falsetaskLists=true[markup.highlight]codeFences=trueguessSyntax=falsehl_Lines=""lineNoStart=1lineNos=falselineNumbersInTable=falsenoClasses=falsestyle="dracula"tabWidth=4[markup.tableOfContents]endLevel=3ordered=falsestartLevel=2
Jadi teman-teman tidak perlu edit file langsung cuma custom config ini saja.
💬 Comment: