CINXE.COM
Profile - VincentTam - HUGO
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title> Profile - VincentTam - HUGO </title> <meta name="description" content="Support and discussion about the Hugo static site builder."> <meta name="generator" content="Discourse 3.4.0.beta3-dev - https://github.com/discourse/discourse version 5bf5d1335680f28a8eb65c488353be9585eed08e"> <link rel="icon" type="image/png" href="https://global.discourse-cdn.com/flex036/uploads/gohugo/optimized/2X/6/66a05218f64425b2fa59ede30c1b4b7dc1fdf5f9_2_32x32.ico"> <link rel="apple-touch-icon" type="image/png" href="https://global.discourse-cdn.com/flex036/uploads/gohugo/optimized/2X/c/c2d3414c64e766d814100b32063948e604298a70_2_180x180.png"> <meta name="theme-color" media="all" content="#0a1922"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://discourse.gohugo.io/u/VincentTam" /> <link rel="search" type="application/opensearchdescription+xml" href="https://discourse.gohugo.io/opensearch.xml" title="HUGO Search"> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/color_definitions_hugo-light_1_3_09733212c5bcbf3d2262e9135364889a94410a8e.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" class="light-scheme"/> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/desktop_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="desktop" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/checklist_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="checklist" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-adplugin_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-adplugin" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-ai_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-ai" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-akismet_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-akismet" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-cakeday_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-cakeday" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-details_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-lazy-videos_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-local-dates_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-narrative-bot_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-presence_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-solved_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/footnote_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="footnote" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/hosted-site_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="hosted-site" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/poll_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="poll" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/spoiler-alert_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/discourse-ai_desktop_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="discourse-ai_desktop" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/poll_desktop_d02c2ac443d5119470bb87ccc1761df2dc8dc4ce.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/desktop_theme_2_554e2f649b5332218939d027878568e9fb5cb3e9.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="2" data-theme-name="custom header links"/> <link href="https://yyz2.discourse-cdn.com/flex036/stylesheets/desktop_theme_3_ba320989966c049743dec43ab8cc84324bf2a254.css?__ws=discourse.gohugo.io" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="3" data-theme-name="hugo light"/> <meta id="data-ga-universal-analytics" data-tracking-code="UA-7131036-7" data-json="{"cookieDomain":"auto"}" data-auto-link-domains=""> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-7131036-7" nonce="pamBkN2f3F0eguvWSDw5UupSX"></script> <script defer src="https://global.discourse-cdn.com/flex036/assets/google-universal-analytics-v4-e154af4adb3c483a3aba7f9a7229b8881cdc5cf369290923d965a2ad30163ae8.gz.js" data-discourse-entrypoint="google-universal-analytics-v4" nonce="pamBkN2f3F0eguvWSDw5UupSX"></script> <meta property="og:site_name" content="HUGO" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vincenttam/45/8518_2.png" /> <meta property="og:image" content="https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vincenttam/45/8518_2.png" /> <meta property="og:url" content="https://discourse.gohugo.io/u/VincentTam" /> <meta name="twitter:url" content="https://discourse.gohugo.io/u/VincentTam" /> <meta property="og:title" content="VincentTam" /> <meta name="twitter:title" content="VincentTam" /> <meta property="og:description" content="A math Student and GNU/Linux user, built @staticmanlab. Use Staticman on GitLab.com @staticmanlab: https://staticman3.herokuapp.com Framagit.org @staticmanlab1: https://staticman-frama.herokuapp.com Support Ciro Santilli’s keyboard attack to free netizens from censorship. Build your personal math blog with comments for free on GitLab View demo at https://vincenttam.gitlab.io/bhdemo (source) Simple setup Clone this repo git clone https://gitlab.com/VincentTam/bhdemo.git <your-site-..." /> <meta name="twitter:description" content="A math Student and GNU/Linux user, built @staticmanlab. Use Staticman on GitLab.com @staticmanlab: https://staticman3.herokuapp.com Framagit.org @staticmanlab1: https://staticman-frama.herokuapp.com Support Ciro Santilli’s keyboard attack to free netizens from censorship. Build your personal math blog with comments for free on GitLab View demo at https://vincenttam.gitlab.io/bhdemo (source) Simple setup Clone this repo git clone https://gitlab.com/VincentTam/bhdemo.git <your-site-..." /> </head> <body class="crawler browser-update"> <script defer="" src="https://yyz2.discourse-cdn.com/flex036/theme-javascripts/417061e7eee24be4fb6a457975f0dce96a82d9e6.js?__ws=discourse.gohugo.io" data-theme-id="5" nonce="pamBkN2f3F0eguvWSDw5UupSX"></script> <header> <a href="/"> HUGO </a> </header> <div id="main-outlet" class="wrap" role="main"> <div class="user-crawler"> <img src='https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vincenttam/45/8518_2.png' alt='VincentTam' title='VincentTam' /> <h2 class='username'>VincentTam</h2> </div> <p><p>A math Student and GNU/Linux user, built <a href="https://gitlab.com/staticmanlab" rel="nofollow noopener">@staticmanlab</a>.</p> <p>Use Staticman on</p> <ol> <li> <a href="http://GitLab.com" rel="nofollow noopener">GitLab.com</a> <a href="https://gitlab.com/staticmanlab" rel="nofollow noopener">@staticmanlab</a>: <a href="https://staticman3.herokuapp.com" rel="nofollow noopener">https://staticman3.herokuapp.com</a> </li> <li> <a href="http://Framagit.org" rel="nofollow noopener">Framagit.org</a> <a href="https://framagit.org/staticmanlab1" rel="nofollow noopener">@staticmanlab<strong>1</strong></a>: <a href="https://staticman-frama.herokuapp.com" rel="nofollow noopener">https://staticman-frama.herokuapp.com</a> </li> </ol> <p>Support <a href="https://stackoverflow.com/users/895245" rel="nofollow noopener">Ciro Santilli</a>’s <a href="https://git.io/fp9GE" rel="nofollow noopener">keyboard attack</a> to free netizens from censorship.</p> <hr> <h1>Build your personal math blog with comments for free on GitLab</h1> <p>View demo at <a href="https://vincenttam.gitlab.io/bhdemo" class="inline-onebox-loading" rel="nofollow noopener">https://vincenttam.gitlab.io/bhdemo</a> (<a href="https://gitlab.com/vincenttam/bhdemo" rel="nofollow noopener">source</a>)</p> <h2>Simple setup</h2> <ol> <li> <p>Clone this repo</p> <pre><code> git clone https://gitlab.com/VincentTam/bhdemo.git <your-site-name> </code></pre> <p>If this is your personal page, <code><your-site-name></code> is <code><your-user-name>.gitlab.io</code></p> </li> <li> <p>Start a new project on GitLab named as <code><your-site-name></code>.</p> </li> <li> <p>Add <a href="https://gitlab.com/staticmanlab" rel="nofollow noopener">@staticmanlab</a> as a “<strong>developer</strong>” for your project.</p> </li> <li> <p>Remove existing comments under the folder <code>data</code> and the file <code>LICENSE</code>.</p> </li> <li> <p>Modify the following fields in the Hugo config file <code>config.toml</code>. You may comment out stuff by <code>#</code>.</p> <pre><code> baseURL = "https://<username>.gitlab.io" title = "Your title" [Params] subtitle = "Your subtitle" [Params.staticman] api = "https://staticman3.herokuapp.com/v3/entry/gitlab/<username>/<username>.gitlab.io/master/comments" pulls = "https://gitlab.com/<username>/<username>.gitlab.io/merge_requests" [Author] name = "Your name" website = "https://example.com" </code></pre> <p>If this is your project page, use the following parameters instead.</p> <pre><code> baseURL = "https://<username>.gitlab.io/<your-project>" [Params.staticman] api = "https://staticman3.herokuapp.com/v3/entry/gitlab/<username>/<your-project>/master/comments" pulls = "https://gitlab.com/<username>/<your-project>/merge_requests" </code></pre> </li> <li> <p>Either remove the <a href="https://www.google.com/recaptcha/intro/v3.html" rel="nofollow noopener">reCAPTCHA</a> config or <em>change the parameters below with your own site key and secret</em>. (You may apply your personal ones with your Google account.)</p> <pre><code> [Params.staticman.recaptcha] sitekey = "6Lcv8G8UAAAAAEqV1Y-XEPum00C_DxhD6O--qkFo" secret = "p5uHlH9hCqp...33F1WaIYuwNw==" </code></pre> </li> <li> <p>Remove these lines at the bottom of <code>config.toml</code>.</p> <pre><code> [[menu.main]] name = "Source" url = "https://gitlab.com/vincenttam/bhdemo" weight = 2 </code></pre> </li> </ol> <p>Write new posts.</p> <ol> <li>Execute the command <code>hugo new posts/<your-filename>.md</code> </li> <li>Edit <code>content/posts/<your-filename>.md</code> </li> <li>Save everything with <code>git add .</code> </li> <li>Commit with <code>git commit</code>. Add your commit message.</li> <li>Publish with <code>git push -u origin master</code> </li> </ol> <h2>Demo Screenshots</h2> <p><a href="https://i.stack.imgur.com/awXuK.png" rel="nofollow noopener"><img src="https://i.stack.imgur.com/awXuK.png" alt="staticman demo"></a><br> <a href="https://i.stack.imgur.com/mA9S6.png" rel="nofollow noopener"><img src="https://i.stack.imgur.com/mA9S6.png" alt="staticman math comment preview"></a></p></p> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/tos' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/privacy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>