🐛 Fix up exampleSite and docs

pull/155/head
James Panther 2021-08-11 18:56:07 +10:00
parent 57784ce892
commit 7bb809545b
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
6 changed files with 13 additions and 12 deletions

View File

@ -43,16 +43,16 @@ Change into the directory for your Hugo website, initialise a new repository and
```bash ```bash
cd mywebsite cd mywebsite
git init git init
git submodule add https://github.com/jpanther/hugo-congo.git themes/congo git submodule add https://github.com/jpanther/Congo.git themes/congo
``` ```
_**Note:** You need to substitute `mywebsite` for the correct folder name you used in Step 2._ _**Note:** You need to substitute `mywebsite` for the correct folder name you used in Step 2._
#### Install manually #### Install manually
Download the latest version of the theme from: [https://github.com/jpanther/hugo-congo/archive/master.zip](https://github.com/jpanther/hugo-congo/archive/master.zip) Download the latest version of the theme from: [https://github.com/jpanther/Congo/archive/master.zip](https://github.com/jpanther/Congo/archive/master.zip)
Extract the archive and you should have a folder named `hugo-congo-master`. Extract the archive and you should have a folder named `Congo-master`.
Rename the folder to `congo` and move it to the `themes/` directory inside your `mywebsite` folder. Rename the folder to `congo` and move it to the `themes/` directory inside your `mywebsite` folder.

View File

Before

Width:  |  Height:  |  Size: 669 KiB

After

Width:  |  Height:  |  Size: 669 KiB

View File

@ -1,4 +1,4 @@
<span class="relative inline-block align-text-bottom icon"> <span class="relative inline-block align-text-bottom icon">
{{- $icon:=print "themes/congo/assets/icons/" . ".svg" -}} {{ $icon := resources.Get (print "icons/" . ".svg") }}
{{ readFile $icon | safeHTML }} {{ $icon | safeHTML }}
</span> </span>

View File

@ -1,4 +1,4 @@
<span class="relative inline-block align-text-bottom icon"> <span class="relative inline-block align-text-bottom icon">
{{- $icon:=print "themes/congo/assets/icons/" . ".svg" -}} {{ $icon := resources.Get (print "icons/" . ".svg") }}
{{ readFile $icon | safeHTML }} {{ $icon | safeHTML }}
</span> </span>

3
package-lock.json generated
View File

@ -1,10 +1,11 @@
{ {
"name": "hugo-congo", "name": "congo",
"version": "1.0.0", "version": "1.0.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "congo",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {

View File

@ -1,5 +1,5 @@
{ {
"name": "hugo-congo", "name": "congo",
"version": "1.0.0", "version": "1.0.0",
"description": "Congo theme for Hugo", "description": "Congo theme for Hugo",
"main": "index.js", "main": "index.js",
@ -9,7 +9,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/jpanther/hugo-congo.git" "url": "git+https://github.com/jpanther/Congo.git"
}, },
"keywords": [ "keywords": [
"hugo", "hugo",
@ -20,9 +20,9 @@
"author": "James Panther", "author": "James Panther",
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/jpanther/hugo-congo/issues" "url": "https://github.com/jpanther/Congo/issues"
}, },
"homepage": "https://github.com/jpanther/hugo-congo#readme", "homepage": "https://github.com/jpanther/Congo#readme",
"devDependencies": { "devDependencies": {
"@tailwindcss/typography": "^0.4.1", "@tailwindcss/typography": "^0.4.1",
"prettier": "^2.3.2", "prettier": "^2.3.2",