congo/README.md

133 lines
5.6 KiB
Markdown
Raw Permalink Normal View History

2021-08-11 10:22:25 +00:00
# Congo
2021-08-11 05:28:33 +00:00
2021-08-19 01:49:20 +00:00
Congo is designed to be a simple, lightweight theme for [Hugo](https://gohugo.io). It's built using Tailwind CSS with a clean and minimalist design that prioritises to your content.
2021-08-11 05:28:33 +00:00
🌏 [Demo site](https://jpanther.github.io/congo/)
2021-08-19 01:49:20 +00:00
📑 [Theme documentation](https://jpanther.github.io/congo/docs/)
🐛 [Bug reports & issues](https://github.com/jpanther/congo/issues)
💡 [Questions & feature requests](https://github.com/jpanther/congo/discussions)
2021-08-14 00:50:40 +00:00
![Screenshot](https://raw.githubusercontent.com/jpanther/congo/stable/images/screenshot.png)
2021-08-12 07:33:04 +00:00
2021-08-11 05:28:33 +00:00
## Features
2021-08-14 00:50:40 +00:00
- Built with Tailwind CSS JIT for minified stylesheets without any excess code
- Fully responsive layout
2021-08-20 07:02:08 +00:00
- Multiple colour schemes (or fully customise your own)
2021-08-14 00:50:40 +00:00
- Dark mode (auto-switching based upon browser)
- Highly customisable configuration
2021-08-15 08:41:40 +00:00
- Multiple homepage layouts
2021-08-12 07:33:04 +00:00
- Flexible with any content types, taxonomies and menus
2021-08-16 07:19:10 +00:00
- Ability to link to posts on third-party websites
2021-08-14 00:50:40 +00:00
- Diagrams and visualisations using Mermaid JS
- SVG icons from FontAwesome 5
2021-08-16 07:19:10 +00:00
- Heading anchors, Buttons, Badges and more
2021-08-14 00:50:40 +00:00
- HTML and Emoji support in articles
2021-08-16 07:19:10 +00:00
- SEO friendly with links for sharing to social media
2021-08-14 03:54:17 +00:00
- RSS feeds
2021-08-14 00:50:40 +00:00
- Fathom Analytics and Google Analytics support
- Favicons support
- Comments support
- Advanced customisation using simple Tailwind colour definitions and styles
- [Fully documented](https://jpanther.github.io/congo/docs/)
2021-08-14 00:50:40 +00:00
---
2021-08-11 05:28:33 +00:00
## Installation
This is a simplified set of instructions and assumes a basic understanding of building Hugo sites and installing themes. For detailed instructions, refer to the full [theme documentation](https://jpanther.github.io/congo/docs/).
2021-08-11 05:28:33 +00:00
There are a few ways to install the Congo theme into your Hugo website.
### Install using Hugo
This method is the quickest and easiest for keeping the theme up-to-date. Hugo Modules uses Go to initialise and manage modules so you need to ensure you have Go installed before proceeding.
1. [Download](https://golang.org/dl/) and install Go. You can check if it's already installed by using the command `go version`.
2. From your Hugo project's directory, initiate the Hugo Modules system for your website:
```shell
hugo mod init github.com/<username>/<repo-name>
```
3. Add the theme to your configuration by creating a new file `config/_default/module.toml` and adding the following:
```toml
[[imports]]
path = "github.com/jpanther/congo"
```
4. Start your server using `hugo server` and the theme will be downloaded automatically.
5. Continue to [set up the theme configuration files](#set-up-theme-configuration-files).
2021-08-11 05:28:33 +00:00
2021-08-16 07:19:10 +00:00
### Install using git
2021-08-11 05:28:33 +00:00
Change into the directory for your Hugo website, initialise a new repository and add Congo as a submodule.
```bash
cd mywebsite
git init
git submodule add -b stable https://github.com/jpanther/congo.git themes/congo
2021-08-11 05:28:33 +00:00
```
Then continue to [set up the theme configuration files](#set-up-theme-configuration-files).
2021-08-16 07:19:10 +00:00
### Install manually
2021-08-11 05:28:33 +00:00
Download the latest release of the theme from: [https://github.com/jpanther/congo/releases/latest](https://github.com/jpanther/congo/releases/latest)
2021-08-11 05:28:33 +00:00
2021-08-16 07:19:10 +00:00
Extract the archive, rename the folder to `congo` and move it to the `themes/` directory inside your Hugo project.
2021-08-11 05:28:33 +00:00
Then continue to [set up the theme configuration files](#set-up-theme-configuration-files).
### Set up theme configuration files
In the root folder of your website, delete the `config.toml` file that was generated by Hugo. Copy the `*.toml` config files from the theme into your `config/_default/` folder. If you installed using Hugo Modules, you should not copy the `module.toml` file! This will ensure you have all the correct theme settings and will enable you to easily customise the theme.
Depending on how you installed the theme you will find the theme config files in different places:
- **Hugo Modules:** In the Hugo cache directory, or [download a copy](https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/jpanther/congo/tree/stable/config/_default) from GitHub
- **Git submodule or Manual install:** `themes/congo/config/_default`
2021-08-11 05:28:33 +00:00
> **Important:** If you didn't use Hugo Modules to install Congo, you must add the line `theme = "congo"` to the top of your `config.toml` file.
2021-08-11 05:28:33 +00:00
You're now all set up to use Congo. From here you can add some content and start the Hugo server.
## Configuration
For all the theme options and detailed configuration instructions, refer to the [Congo docs](https://jpanther.github.io/congo/docs/).
2021-08-11 05:28:33 +00:00
A few things you need to set for a new installation:
```toml
2021-08-12 08:33:42 +00:00
# config/_default/config.toml
2021-08-11 05:28:33 +00:00
baseURL = "https://your_domain.com"
languageCode = "en-AU"
title = "My awesome website"
[author]
name = "Your name"
links = [
{ twitter = "https://twitter.com/jpanther" }
]
2021-08-11 05:28:33 +00:00
```
2021-08-14 00:50:40 +00:00
## Advanced customisation
2021-08-20 07:02:08 +00:00
Refer to the [theme documentation](https://jpanther.github.io/congo/docs/advanced-customisation/) for details on customising Congo, including rebuilding the theme from scratch.
2021-08-14 00:50:40 +00:00
2021-08-16 07:19:10 +00:00
---
2021-08-11 05:28:33 +00:00
## Contributing
Congo is still very much a work in progress. I intend to keep adding features and making changes as required.
2021-08-19 01:49:20 +00:00
Feel free to get in touch with any issues or suggestions for new features you'd like to see.
2021-08-11 05:28:33 +00:00
2021-08-19 01:49:20 +00:00
- 🐛 **Bug reports & issues:** Use [GitHub Issues](https://github.com/jpanther/congo/issues)
- 💡 **Ideas for new features:** Open a discussion on [GitHub Discussions](https://github.com/jpanther/congo/discussions)
- 🙋‍♀️ **General questions:** Head to [GitHub Discussions](https://github.com/jpanther/congo/discussions)
2021-08-11 05:28:33 +00:00
2021-08-19 01:49:20 +00:00
If you're able to fix a bug or implement a new feature, I welcome PRs for this purpose. Learn more in the [contributing guidelines](https://github.com/jpanther/congo/CONTRIBUTING.md).