From c0fcf738e0de1673c30ec956f3443f2b764f1e34 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Wed, 11 Nov 2020 10:27:42 +0530 Subject: [PATCH] papermod stuff update --- content/posts/papermod/papermod-how-to.md | 4 +- .../posts/papermod/papermod-installation.md | 103 +++++++++--------- 2 files changed, 56 insertions(+), 51 deletions(-) diff --git a/content/posts/papermod/papermod-how-to.md b/content/posts/papermod/papermod-how-to.md index ff1cd5d2..c0f659fc 100644 --- a/content/posts/papermod/papermod-how-to.md +++ b/content/posts/papermod/papermod-how-to.md @@ -12,7 +12,9 @@ draft: true ## Intro -We'll be using `yml/yaml` format for all examples down below, I recommend using `yml` over `toml` as it is easier to read. +- **We'll be using `yml/yaml` format for all examples down below, I recommend using `yml` over `toml` as it is easier to read.** + +- You can find any [YML to TOML](https://www.google.com/search?q=yml+to+toml) converters if necessary. --- diff --git a/content/posts/papermod/papermod-installation.md b/content/posts/papermod/papermod-installation.md index 01f142a4..b304f692 100644 --- a/content/posts/papermod/papermod-installation.md +++ b/content/posts/papermod/papermod-installation.md @@ -57,7 +57,7 @@ Example Site Structure is present here: [exampleSite](https://github.com/adityat ### Sample `config.yml` ```yml -baseURL: 'https://examplesite.com' +baseURL: "https://examplesite.com" title: ExampleSite paginate: 5 theme: hugo-PaperMod @@ -70,62 +70,65 @@ buildExpired: false googleAnalytics: UA-123-45 minify: - disableXML: true - minifyOutput: true + disableXML: true + minifyOutput: true params: - env: production # to enable google analytics, opengraph, twitter-cards and schema. - title: ExampleSite - description: 'ExampleSite description' - author: Me - # author: ["Me", "You"] # multiple authors - - images: "" - - ShowReadingTime: true - ShowShareButtons: true - comments: false - defaultTheme: auto - disableThemeToggle : false - disableSpecial1stPost : false - - assets: - favicon: '' - - label: - text: "Home" - icon: /apple-touch-icon.png - iconHeight: 35 - - # profile-mode - profileMode: - enabled: false # needs to be explicitly set + env: production # to enable google analytics, opengraph, twitter-cards and schema. title: ExampleSite - # imageUrl: '' - # imageTitle: my image - buttons: - - name: Posts - url: posts - - name: Tags - url: tags + description: "ExampleSite description" + author: Me + # author: ["Me", "You"] # multiple authors - # home-info mode - homeInfoParams: - Title: "Hi there \U0001F44B" - Content: Welcome to my blog + images: "" - socialIcons: - - name: twitter - url: 'https://twitter.com/' - - name: stackoverflow - url: 'https://stackoverflow.com' - - name: github - url: 'https://github.com/' + ShowReadingTime: true + ShowShareButtons: true + comments: false + defaultTheme: auto + disableThemeToggle: false + disableSpecial1stPost: false + assets: + favicon: "" + favicon16x16: "" + favicon32x32: "" + apple_touch_icon: "" + safari_pinned_tab: "" - analytics: - google: - SiteVerificationTag: "XYZabc" + label: + text: "Home" + icon: /apple-touch-icon.png + iconHeight: 35 + + # profile-mode + profileMode: + enabled: false # needs to be explicitly set + title: ExampleSite + # imageUrl: '' + # imageTitle: my image + buttons: + - name: Posts + url: posts + - name: Tags + url: tags + + # home-info mode + homeInfoParams: + Title: "Hi there \U0001F44B" + Content: Welcome to my blog + + socialIcons: + - name: twitter + url: "https://twitter.com/" + - name: stackoverflow + url: "https://stackoverflow.com" + - name: github + url: "https://github.com/" + + analytics: + google: + SiteVerificationTag: "XYZabc" ``` ---