From 7bb809545b08462e79988f43c42a2cd07fafd632 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 11 Aug 2021 18:56:07 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20up=20exampleSite=20and=20d?= =?UTF-8?q?ocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- exampleSite/{static => content}/mountains.jpg | Bin layouts/partials/icon.html | 4 ++-- layouts/shortcodes/icon.html | 4 ++-- package-lock.json | 3 ++- package.json | 8 ++++---- 6 files changed, 13 insertions(+), 12 deletions(-) rename exampleSite/{static => content}/mountains.jpg (100%) diff --git a/README.md b/README.md index ad04c93f..b3919ffe 100644 --- a/README.md +++ b/README.md @@ -43,16 +43,16 @@ Change into the directory for your Hugo website, initialise a new repository and ```bash cd mywebsite 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._ #### 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. diff --git a/exampleSite/static/mountains.jpg b/exampleSite/content/mountains.jpg similarity index 100% rename from exampleSite/static/mountains.jpg rename to exampleSite/content/mountains.jpg diff --git a/layouts/partials/icon.html b/layouts/partials/icon.html index da01c1cf..8b0c662c 100644 --- a/layouts/partials/icon.html +++ b/layouts/partials/icon.html @@ -1,4 +1,4 @@ - {{- $icon:=print "themes/congo/assets/icons/" . ".svg" -}} - {{ readFile $icon | safeHTML }} + {{ $icon := resources.Get (print "icons/" . ".svg") }} + {{ $icon | safeHTML }} diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html index da01c1cf..8b0c662c 100644 --- a/layouts/shortcodes/icon.html +++ b/layouts/shortcodes/icon.html @@ -1,4 +1,4 @@ - {{- $icon:=print "themes/congo/assets/icons/" . ".svg" -}} - {{ readFile $icon | safeHTML }} + {{ $icon := resources.Get (print "icons/" . ".svg") }} + {{ $icon | safeHTML }} diff --git a/package-lock.json b/package-lock.json index 6e69057b..90db93c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,10 +1,11 @@ { - "name": "hugo-congo", + "name": "congo", "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { + "name": "congo", "version": "1.0.0", "license": "MIT", "devDependencies": { diff --git a/package.json b/package.json index 47190e48..1c73a5cc 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "hugo-congo", + "name": "congo", "version": "1.0.0", "description": "Congo theme for Hugo", "main": "index.js", @@ -9,7 +9,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/jpanther/hugo-congo.git" + "url": "git+https://github.com/jpanther/Congo.git" }, "keywords": [ "hugo", @@ -20,9 +20,9 @@ "author": "James Panther", "license": "MIT", "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": { "@tailwindcss/typography": "^0.4.1", "prettier": "^2.3.2",