From 9b6f030f60ec37dc943b7fd119456565a0011c5f Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Mon, 6 Sep 2021 23:59:49 -0400 Subject: [PATCH] Fix disqus comments not loading --- config.yaml | 22 +-- content/page/about.md | 1 + themes/minimo/exampleSite/config.toml | 145 -------------- themes/minimo/exampleSite/content/_index.md | 9 - .../exampleSite/content/authors/_index.md | 3 - .../minimo/exampleSite/content/docs/_index.md | 10 - .../exampleSite/content/docs/authors.md | 48 ----- .../content/docs/comments-support.md | 153 -------------- .../exampleSite/content/docs/config-file.md | 15 -- .../exampleSite/content/docs/cover-image.md | 40 ---- .../exampleSite/content/docs/emoji-support.md | 37 ---- .../exampleSite/content/docs/installation.md | 71 ------- .../exampleSite/content/docs/katex-support.md | 85 -------- .../content/docs/mathjax-support.md | 106 ---------- .../minimo/exampleSite/content/docs/menus.md | 82 -------- .../exampleSite/content/docs/opengraph.md | 62 ------ .../exampleSite/content/docs/res/index.md | 3 - .../content/docs/search-algolia.md | 94 --------- .../content/docs/search-fuse-js.md | 22 --- .../content/docs/search-lunr-js.md | 68 ------- .../content/docs/search-support.md | 65 ------ .../exampleSite/content/docs/shortcodes.md | 186 ------------------ .../exampleSite/content/docs/sidebar.md | 28 --- .../content/docs/syntax-highlighting.md | 14 -- .../exampleSite/content/docs/translation.md | 27 --- .../exampleSite/content/docs/updating.md | 45 ----- .../exampleSite/content/docs/widgets.md | 133 ------------- .../minimo/exampleSite/content/page/about.md | 12 -- .../minimo/exampleSite/content/page/search.md | 8 - .../exampleSite/content/page/typography.md | 65 ------ .../exampleSite/content/tags/config/_index.md | 3 - .../exampleSite/content/tags/og/_index.md | 3 - .../exampleSite/data/authors/muniftanjim.toml | 13 -- .../85b5b000-33c9-11e8-b7f2-af13eee21e7d.yml | 8 - .../c7062840-33ca-11e8-b7f2-af13eee21e7d.yml | 9 - .../exampleSite/data/config/widgets.toml | 36 ---- .../minimo/exampleSite/static/css/custom.css | 1 - .../images/eden-farm-children-s-village.jpg | Bin 298250 -> 0 bytes themes/minimo/exampleSite/static/js/custom.js | 1 - themes/minimo/exampleSite/staticman.yml | 21 -- themes/minimo/layouts/partials/head/css.html | 2 +- 41 files changed, 4 insertions(+), 1752 deletions(-) delete mode 100644 themes/minimo/exampleSite/config.toml delete mode 100644 themes/minimo/exampleSite/content/_index.md delete mode 100644 themes/minimo/exampleSite/content/authors/_index.md delete mode 100644 themes/minimo/exampleSite/content/docs/_index.md delete mode 100644 themes/minimo/exampleSite/content/docs/authors.md delete mode 100644 themes/minimo/exampleSite/content/docs/comments-support.md delete mode 100644 themes/minimo/exampleSite/content/docs/config-file.md delete mode 100644 themes/minimo/exampleSite/content/docs/cover-image.md delete mode 100644 themes/minimo/exampleSite/content/docs/emoji-support.md delete mode 100644 themes/minimo/exampleSite/content/docs/installation.md delete mode 100644 themes/minimo/exampleSite/content/docs/katex-support.md delete mode 100644 themes/minimo/exampleSite/content/docs/mathjax-support.md delete mode 100644 themes/minimo/exampleSite/content/docs/menus.md delete mode 100644 themes/minimo/exampleSite/content/docs/opengraph.md delete mode 100644 themes/minimo/exampleSite/content/docs/res/index.md delete mode 100644 themes/minimo/exampleSite/content/docs/search-algolia.md delete mode 100644 themes/minimo/exampleSite/content/docs/search-fuse-js.md delete mode 100644 themes/minimo/exampleSite/content/docs/search-lunr-js.md delete mode 100644 themes/minimo/exampleSite/content/docs/search-support.md delete mode 100644 themes/minimo/exampleSite/content/docs/shortcodes.md delete mode 100644 themes/minimo/exampleSite/content/docs/sidebar.md delete mode 100644 themes/minimo/exampleSite/content/docs/syntax-highlighting.md delete mode 100644 themes/minimo/exampleSite/content/docs/translation.md delete mode 100644 themes/minimo/exampleSite/content/docs/updating.md delete mode 100644 themes/minimo/exampleSite/content/docs/widgets.md delete mode 100644 themes/minimo/exampleSite/content/page/about.md delete mode 100644 themes/minimo/exampleSite/content/page/search.md delete mode 100644 themes/minimo/exampleSite/content/page/typography.md delete mode 100644 themes/minimo/exampleSite/content/tags/config/_index.md delete mode 100644 themes/minimo/exampleSite/content/tags/og/_index.md delete mode 100644 themes/minimo/exampleSite/data/authors/muniftanjim.toml delete mode 100644 themes/minimo/exampleSite/data/comments/33deba780bf80cacf2627abf7a22fec7/85b5b000-33c9-11e8-b7f2-af13eee21e7d.yml delete mode 100644 themes/minimo/exampleSite/data/comments/33deba780bf80cacf2627abf7a22fec7/c7062840-33ca-11e8-b7f2-af13eee21e7d.yml delete mode 100644 themes/minimo/exampleSite/data/config/widgets.toml delete mode 100644 themes/minimo/exampleSite/static/css/custom.css delete mode 100644 themes/minimo/exampleSite/static/images/eden-farm-children-s-village.jpg delete mode 100644 themes/minimo/exampleSite/static/js/custom.js delete mode 100644 themes/minimo/exampleSite/staticman.yml diff --git a/config.yaml b/config.yaml index 684465a5..02466acf 100644 --- a/config.yaml +++ b/config.yaml @@ -25,7 +25,7 @@ menu: - name: About url: /about/ weight: 2 - - name: Subscribe + - name: RSS url: /index.xml params: @@ -82,25 +82,7 @@ params: linkedin: dave-gallant twitter: dave_gallant_ comments: - enable: false - isso: - enable: false - scriptSrc: '' - dataAttrs: '' - staticman: - enable: true - apiEndpoint: 'https://api.staticman.net/v2/entry' - maxDepth: 2 - username: MunifTanjim - repository: minimo - utterances: - enable: false - issueTerm: pathname - label: '' - theme: github-light - github: - username: MunifTanjim - repository: minimo + enable: true search: client: fuse diff --git a/content/page/about.md b/content/page/about.md index 4a6c36e9..1567473f 100644 --- a/content/page/about.md +++ b/content/page/about.md @@ -1,5 +1,6 @@ --- title: About +weight: -210 --- I'm a software engineer with a passion for open-source, infrastructure, tooling and security. diff --git a/themes/minimo/exampleSite/config.toml b/themes/minimo/exampleSite/config.toml deleted file mode 100644 index 7606b06d..00000000 --- a/themes/minimo/exampleSite/config.toml +++ /dev/null @@ -1,145 +0,0 @@ -baseURL = "http://www.example.com" -title = "Minimo" -# for smart copyright line, leave this blank and check [params.copyright] -copyright = "" - -theme = "minimo" - -disqusShortname = "" -googleAnalytics = "" - -Paginate = 5 -preserveTaxonomyNames = true - -enableRobotsTXT = true # generate robots.txt - -# Syntax Highlighting ( https://gohugo.io/content-management/syntax-highlighting/ ) -pygmentsCodefences = true - -enableEmoji = true - -# Missing translations will default to this content language -defaultContentLanguage = "en" - -[params.info] -description = "Minimalist theme for Hugo" -title404 = "Nothing's here!" - -[params.assets] -favicon = "favicon.ico" -customCSS = ["css/custom.css"] -customJS = ["js/custom.js"] -gopher = "" # used in 404 template ( Generator: https://gopherize.me ) - -[params.copyright] -prefix = "" -holder = "MunifTanjim" -startYear = "2017" -suffix = "" - -[params.settings] -# date & time format: https://golang.org/pkg/time/ -dateFormat = "2006, Jan 02" -listDateFormat = "2006, Jan 02" -archiveDateFormat = "Jan 02" -hideEntryNavigation = ["page"] # boolean / array of sections -hideEntryMeta = ["page"] # boolean / array of sections -showReadingTime = true -showLastmod = true -taxonomyCloudShuffle = true -accentColor = "#ffcd00" -hideMainMenu = false - -[params.sidebar] -enable = true - -[params.widgets] -header = ["breadcrumbs"] -homepage = ["recent_posts"] -sidebar = ["about","search","sidebar_menu","taxonomy_cloud"] -footer = ["social_menu"] - -[params.opengraph.facebook] -admins = [] # array of Facebook IDs -appID = "" -pageID = "" - -[params.opengraph.twitter] -page = "" # Twitter page username - -[params.seo] -# Title Separator: - – — · • * ⋆ | ~ « » < > -titleSeparator = "•" - -[params.social] -codepen = "MunifTanjim" -email = "contact@example.com" -facebook = "MunifTanjim" -github = "MunifTanjim" -gitlab = "MunifTanjim" -instagram = "MunifTanjim" -linkedin = "muniftanjim" -twitter = "MunifTanjim" -telegram = "MunifTanjim" -google_scholar = "qc6CJjYAAAAJ" -youtube = "UCT-U0rNerYxItGcuoPX-WYA" - -[params.comments] -enable = false - -# Isso: https://posativ.org/isso/ -[params.comments.isso] -enable = false -scriptSrc = "" # "https://isso.example.com/js/embed.min.js" -dataAttrs = "" # "data-isso='https://isso.example.com' data-isso-require-author='true'" - -[params.comments.staticman] -enable = true -apiEndpoint = "https://api.staticman.net/v2/entry" -maxDepth = 2 -username = "MunifTanjim" -repository = "minimo" - -# Utterances: https://utteranc.es -[params.comments.utterances] -enable = false -issueTerm = "pathname" # pathname / url / title / og:title / -label = "" -theme = "github-light" - -[params.comments.utterances.github] -username = "MunifTanjim" -repository = "minimo" - -[params.search] -client = "fuse" # algolia / fuse / lunr - -[params.search.algolia] -appId = "" -indexName = "" -searchApiKey = "" - -[taxonomies] -author = "authors" -category = "categories" -series = "series" -tag = "tags" - -[permalinks] -page = "/:slug/" - -[[menu.main]] -name = "Repo" -weight = -10 -identifier = "repository" -url = "https://github.com/MunifTanjim/minimo" - -[blackfriday] -hrefTargetBlank = true - -[languages] -# edit this block for your own language -[languages.en] -lang = "en" -languageName = "English" -weight = 1 diff --git a/themes/minimo/exampleSite/content/_index.md b/themes/minimo/exampleSite/content/_index.md deleted file mode 100644 index 593b7cdb..00000000 --- a/themes/minimo/exampleSite/content/_index.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Home -menu: - - main - - sidebar -weight: -270 ---- -> Minimalism is not a lack of something. It’s simply the perfect amount of something. -> — Nicholas Burroughs diff --git a/themes/minimo/exampleSite/content/authors/_index.md b/themes/minimo/exampleSite/content/authors/_index.md deleted file mode 100644 index c19d421b..00000000 --- a/themes/minimo/exampleSite/content/authors/_index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Authors ---- diff --git a/themes/minimo/exampleSite/content/docs/_index.md b/themes/minimo/exampleSite/content/docs/_index.md deleted file mode 100644 index 4d1c7682..00000000 --- a/themes/minimo/exampleSite/content/docs/_index.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Documentation -linkTitle: Docs -menu: - main: - sidebar: - identifier: docs -weight: -250 -slug: docs ---- diff --git a/themes/minimo/exampleSite/content/docs/authors.md b/themes/minimo/exampleSite/content/docs/authors.md deleted file mode 100644 index 3be830d1..00000000 --- a/themes/minimo/exampleSite/content/docs/authors.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -date: 2017-09-26T06:00:00+06:00 -lastmod: 2017-10-11T17:30:00+06:00 -title: Authors Setup Guide -authors: ["muniftanjim"] -categories: - - features -tags: - - authors -slug: authors ---- -Minimo supports multiple authors for your site. Just make sure you have the following configuration in your site's **`config.toml`**: - -```toml -[taxonomies] -author = "authors" -``` - -Minimo treats Authors as a [Hugo Taxonomy](https://gohugo.io/content-management/taxonomies/). - -## Author's Profile - -For adding an author to your site: - -- Create **`data/authors`** folder in your site's root directory -- Create a file with the filename format: **`.toml`** - -Now, add information about the author using the structure below: - -**/data/authors/muniftanjim.toml** - -{{< file "data/authors/muniftanjim.toml" >}} - -_You can use either the `[email]` fields or the `[social.email]` field. You don't need to fill them both. However, it is encouraged to use `[email]` instead of `[social.email]`._ - -## Adding Authors to Contents - -For adding authors to your content include the following option in your content's front-matter: - -```yaml ---- -authors: ["muniftanjim"] ---- -``` - -- `authors` [`Array` of `String`s]: username of authors - -That's all. diff --git a/themes/minimo/exampleSite/content/docs/comments-support.md b/themes/minimo/exampleSite/content/docs/comments-support.md deleted file mode 100644 index 13336e56..00000000 --- a/themes/minimo/exampleSite/content/docs/comments-support.md +++ /dev/null @@ -1,153 +0,0 @@ ---- -date: 2018-03-29T09:00:00+06:00 -lastmod: 2020-08-10T22:00:00+06:00 -title: Comments Support -authors: ['muniftanjim'] -categories: - - features -tags: - - config -slug: comments-support -comments: true -toc: true ---- - -Minimo has support for comments baked into it. - -## Enable/Disable Comments - -### Globally - -For enabling or disabling comments globally, check the following setting in your `config.toml` file: - -```toml -[params.comments] -enable = false -``` - -- `params.comments` [`Map`]: - - `enable` [`Boolean`]: Enable/Disable comments globally - -### For Specific Posts - -The global `.Site.Params.comments.enable` setting can be overridden for specific posts in their content's frontmatter with this option: - -```yaml ---- -comments: true ---- - -``` - -- `comments` [`Boolean`]: Enable/Disable comments for specific posts - -_Of course, you'll also need to setup a comment system ( [Disqus](#disqus) or [Staticman](#staticman) )._ - -## Setting Up Comment System - -Minimo currently supports **[Disqus](https://disqus.com/)**, **[Isso](https://posativ.org/isso/)**, **[Staticman](https://staticman.net/)** and **[Utterances](https://utteranc.es)** to be used as your site's comment system. - -### Disqus - -Disqus comments require you set a single value to the following option in your `config.toml` file: - -```toml -disqusShortname = "" -``` - -- `disqusShortname` [`String`]: Shortname for you site's Disqus account - -And that's all! - -### Isso - -Isso is a lightweight alternative to Disqus. You need to have a Isso server running somewhere, then set up the following options in your `config.toml` file: - -```toml -[params.comments.isso] -enable = true -scriptSrc = "https://isso.example.com/js/embed.min.js" -dataAttrs = "data-isso='https://isso.example.com data-isso-require-author='true'" -``` - -- `params.comments.isso` [`Map`]: - - `enable` [`Boolean`]: Enable Isso - - `scriptSrc` [`String`]: URL of the Isso integration script. - - `dataAttrs` [`String`]: Data attributes to add to the Isso `