bryndin / maupassant-hugo

"Maupassant IC" Maupassant is a free, minimalistic, light, and responsive Hugo theme designed for bloggers. It offers a clean design focused on readability and simplicity, ensuring your content stands out on desktops, laptops, tablets and phones.
https://bryndin.github.io/maupassant-hugo/
MIT License
0 stars 0 forks source link
hugo hugo-blog hugo-blog-theme hugo-site hugo-theme

"Maupassant IC" Hugo Theme (International Collection)

Maupassant IC is a free, minimalistic, light, and responsive Hugo theme designed for bloggers. It offers a clean design focused on readability and simplicity, ensuring your content stands out on desktops, laptops, tablets and phones.

Demo Site

Key Features

Comprehensive Feature List

Requirements

The theme was developed and tested with v0.127.0. If this version is not available for your default package manager, try one from Snap.

Installation

  1. Clone the Repository into your Hugo website directory:

    git clone https://github.com/bryndin/maupassant-hugo/ themes/maupassant
  2. Copy example configuration and modify it for your needs:

    cp themes/maupassant/exampleSite/hugo.toml .
  3. Copy "about.md", "archives.md" and "search.md" content files. Modify "about" page for your needs.

    cp themes/maupassant/exampleSite/content/about.md content/
    cp themes/maupassant/exampleSite/content/archives.md content/
    cp themes/maupassant/exampleSite/content/search.md content/

Updating the Theme

To update the theme, navigate to the theme directory and pull the latest changes:

cd themes/maupassant
git pull

Configuration

Follow the comments in sample hugo.toml

Declaring "blog post" pages

Most of the theme features, e.g. comments, categories, tags, etc. by default only apply to the blog post pages. What page is blog post is configured via required blogType parameter in the [params] section of hugo.toml.

blogType is a directory name of your blog content (e.g. posts, for content/posts directory). To mark any other page a blog post, set e.g. type: posts in front matter.

Enabling comments

Prerequisite: Pick one of the supported comments systems: Disqus, Utterances, or Waline, and configure it in your hugo.toml.

Setting up GihHub CI/CD

To automate website deployment from a GitHub repository to GitHub Pages, adjust our workflow of the theme exampleSite.

Customization

Layout Customization Modify layout files in the layouts directory to customize the theme's appearance.

Adding Widgets Add widgets by modifying the sidebar.html partial in the layouts/partials directory.

Configuring Menus Define menus in the config.toml as shown in the example configuration.

Customizing the Footer Edit the footer.html partial to customize the footer content.

Troubleshooting

Reporting Bugs Report bugs by creating an issue.

Getting Help For help, check the Hugo community forums or Hugo documentation.

Local Search

Local search is based on RSS (index.html file). If you don't see the list of results

Archive Page

Google Tag Manager, Google Analytics, AdSense, etc

No need to integrate Google Analytics, AdSense, etc. code into your website. The theme has the support for Google Tag Manager (GTM) containerization. Include your GTM key in hugo.toml and the rest of integrations are done via GTM website.

[params.googletagmanager]
  gtmid = "GTM-xxxxxx" # Google Tag Manager ID

Follow Google's instructions, they claim it takes them up to 48h to start showing data.

Wrong i18n Translations

All translations are in the i18n directory in theme/maupassant. If there's an error, please open an issue, indicate the language and suggest the correct translation. Pull requests are always welcome.

Contributing

Submitting Pull Requests Fork the repository, create a new branch, and submit a pull request with your changes.

Credits

The Maupassant theme was originally created by Cho for the Typecho PHP blogging platform. It has been ported to multiple platforms, including Hugo. The initial Hugo port was created by JokerQyou and further improved by Flysnow-org. These versions are primarily targeted at an oriental audience and offer good integrations with Chinese services.

"Maupassant IC" is an enhanced version tailored for an international audience.

SVG Icons from Bootstrap Icons.