diff --git a/README.md b/README.md index a8d451a..675b66c 100644 --- a/README.md +++ b/README.md @@ -121,12 +121,18 @@ git submodule add -f https://github.com/panr/hugo-theme-terminal.git themes/term This will install the repository as a sumbodule in the `themes/terminal` directory. +⚠️ If you encounter any issues with: + +```bash +Error: module "terminal" not found; either add it as a Hugo Module or store it in "[...your custom path]/themes".: module does not exist +``` + +then please try to remove `theme = "terminal"` from your config file. + ⚠️ **The theme needs at least Hugo version 0.90.x**. ## How to run your site -If you installed all needed `npm` dependencies, then you can run: - ```bash hugo server -t terminal ``` @@ -140,6 +146,8 @@ The theme doesn't require any advanced configuration. Just copy: ```toml baseurl = "/" languageCode = "en-us" +# Add it only if you keep the theme in the `themes` directory. +# Remove it if you use the theme as a remote Hugo Module. theme = "terminal" paginate = 5 diff --git a/package.json b/package.json index 2f38338..15f6ec1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,12 @@ { + "name": "terminal", + "version": "3.0.0", "author": "Radosław Kozieł <@panr> ", + "main": "index.js", + "license": "MIT", + "scripts": { + "test": "echo 'Test'" + }, "browserslist": [ "last 2 versions", ">1%", @@ -29,11 +36,4 @@ "eslint-plugin-jsx-a11y": "^6.2.1", "husky": "^5.1.3" }, - "license": "MIT", - "main": "index.js", - "name": "terminal", - "scripts": { - "test": "echo 'Test'" - }, - "version": "2.1.0" } diff --git a/theme.toml b/theme.toml index 39b3611..c57b5de 100644 --- a/theme.toml +++ b/theme.toml @@ -5,7 +5,7 @@ description = "A simple, retro theme for Hugo." homepage = "https://github.com/panr/hugo-theme-terminal/" tags = ["blog", "clean", "customizable", "dark", "highlighting", "minimal", "monotone", "multilingual", "personal", "responsive", "simple", "technical", "retro"] features = ["blog", "shortcode", "syntax highlighting"] -min_version = 0.74 +min_version = 0.90 [author] name = "panr"