Skip to content

Commit

Permalink
Change theme to Minimo
Browse files Browse the repository at this point in the history
  • Loading branch information
ychubachi committed Oct 16, 2021
1 parent d826d71 commit 4a498c8
Show file tree
Hide file tree
Showing 31 changed files with 1,646 additions and 34 deletions.
179 changes: 145 additions & 34 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,146 @@
baseurl = "https://ghp.chubachi.net/"
baseURL = "http://www.example.com"
title = "YC's Blog"
languageCode = "en-us"
paginate = "10" # Number of posts per page
theme = "Mainroad"
disqusShortname = "" # Enable comments by entering your Disqus shortname
googleAnalytics = "" # Enable Google Analytics by entering your tracking id

[Author]
name = "YC"
bio = "YC's true identity is unknown. Maybe he is a successful blogger or writer. Nobody knows it."
avatar = "img/avatar.png"

[Params]
description = "YC's Personal blog about everything" # Description of your site
opengraph = true
twitter_cards = false
readmore = false # Show "Read more" button in list if true
authorbox = true
pager = true
post_meta = ["date", "categories"] # Order of post meta information

[Params.logo]
subtitle = "My blog about everything" # Logo subtitle

[Params.sidebar]
home = "right" # Configure layout for home page
list = "right" # Configure layout for list pages
single = "right" # Configure layout for single pages
# Enable widgets in given order
widgets = ["search", "recent", "categories", "taglist"]

[Params.widgets]
recent_num = 3 # Set the number of articles in the "Recent articles" widget
tags_counter = false # Enable counter for each tag in "Tags" widget (disabled by default)
# 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 = "My Blog for Everything"
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 = "ychubachi"
startYear = "2021"
suffix = ""

[params.settings]
# date & time format: https://golang.org/pkg/time/
# dateFormat = "2006, Jan 02"
dateFormat = "2006-01-02"
listDateFormat = "2006-01-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 = true

[params.sidebar]
enable = false

[params.widgets]
header = ["breadcrumbs"]
homepage = ["recent_posts"]
sidebar = ["about","search","sidebar_menu","taxonomy_cloud"]
footer = ["taxonomy_cloud", "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 = "[email protected]"
facebook = "ychubachi"
github = "ychubachi"
# gitlab = "MunifTanjim"
# instagram = "MunifTanjim"
# linkedin = "muniftanjim"
twitter = "ychubachi"
# 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 / <string>
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
9 changes: 9 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Home
menu:
- main
- sidebar
weight: -270
---
> Minimalism is not a lack of something. It’s simply the perfect amount of something.
> — Nicholas Burroughs
3 changes: 3 additions & 0 deletions content/authors/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Authors
---
10 changes: 10 additions & 0 deletions content/docs/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Documentation
linkTitle: Docs
menu:
main:
sidebar:
identifier: docs
weight: -250
slug: docs
---
48 changes: 48 additions & 0 deletions content/docs/authors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
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: **`<username>.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.
Loading

0 comments on commit 4a498c8

Please sign in to comment.