From b3e6c0de8df45ce80489417e89351893d8742659 Mon Sep 17 00:00:00 2001 From: Facundo Olano Date: Fri, 16 Feb 2024 15:29:43 -0300 Subject: [PATCH] rename project to jorge (#4) --- README.md | 22 +++++++++++----------- commands/commands.go | 4 ++-- commands/serve.go | 4 ++-- go.mod | 2 +- main.go | 2 +- site/site.go | 4 ++-- site/site_test.go | 8 ++++---- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 4b48716..0c51253 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ -# blorg +# jorge A presonal (small + opinionated) site generator with org-mode support. (NOTE: this is stil a WIP, the doc below is a wishlist, not the current behavior.) Install from binary: - $ wget https://github.com/facundoolano/blorg/releases/download/latest/blorg-$(uname -m) \ - -o blorg && chmod +x blorg + $ wget https://github.com/facundoolano/jorge/releases/download/latest/jorge-$(uname -m) \ + -o jorge && chmod +x jorge Or install with go: - $ go install github.com/facundoolano/blorg + $ go install github.com/facundoolano/jorge Usage: ```bash -$ blorg init myblog +$ jorge init myblog > site name: My Blog > author: Facundo Olano > url: https://myblog.olano.dev @@ -33,11 +33,11 @@ $ blorg init myblog added myblog/src/tags.html $ cd myblog -$ blorg post "My First Post" +$ jorge post "My First Post" added draft src/blog/my-first-post.org # serve the site locally with live reload -$ blorg serve +$ jorge serve server running at http://localhost:4001/ # browse to the new post @@ -53,7 +53,7 @@ EOF # remove the draft flag before publishing $ sed -i '/^draft: true$/d' src/blog/my-first-post.org -$ blorg build +$ jorge build wrote target/index.html wrote target/assets/css/main.css wrote target/blog/hello.html @@ -64,6 +64,6 @@ $ blorg build For more details see the: - - [Tutorial](https://blorg.olano.dev#tutorial) - - [Docs](https://blorg.olano.dev#docs) - - [Development blog](https://blorg.olano.dev#blog) + - [Tutorial](https://jorge.olano.dev#tutorial) + - [Docs](https://jorge.olano.dev#docs) + - [Development blog](https://jorge.olano.dev#blog) diff --git a/commands/commands.go b/commands/commands.go index 6613d97..14c7688 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -3,8 +3,8 @@ package commands import ( "fmt" - "github.com/facundoolano/blorg/config" - "github.com/facundoolano/blorg/site" + "github.com/facundoolano/jorge/config" + "github.com/facundoolano/jorge/site" ) func Init() error { diff --git a/commands/serve.go b/commands/serve.go index 228192b..f3fcffe 100644 --- a/commands/serve.go +++ b/commands/serve.go @@ -8,8 +8,8 @@ import ( "os" "path/filepath" - "github.com/facundoolano/blorg/config" - "github.com/facundoolano/blorg/site" + "github.com/facundoolano/jorge/config" + "github.com/facundoolano/jorge/site" "github.com/fsnotify/fsnotify" ) diff --git a/go.mod b/go.mod index 47e5a03..3e445a9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/facundoolano/blorg +module github.com/facundoolano/jorge go 1.22.0 diff --git a/main.go b/main.go index 79a6969..e77d191 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,7 @@ import ( "fmt" "os" - "github.com/facundoolano/blorg/commands" + "github.com/facundoolano/jorge/commands" ) func main() { diff --git a/site/site.go b/site/site.go index c1e1b7a..1766904 100644 --- a/site/site.go +++ b/site/site.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/facundoolano/blorg/config" - "github.com/facundoolano/blorg/templates" + "github.com/facundoolano/jorge/config" + "github.com/facundoolano/jorge/templates" "golang.org/x/net/html" "gopkg.in/yaml.v3" ) diff --git a/site/site_test.go b/site/site_test.go index 4e7003c..074630d 100644 --- a/site/site_test.go +++ b/site/site_test.go @@ -1,7 +1,7 @@ package site import ( - "github.com/facundoolano/blorg/config" + "github.com/facundoolano/jorge/config" "os" "path/filepath" "testing" @@ -278,8 +278,8 @@ func TestRenderDataFile(t *testing.T) { content := ` - name: feedi url: https://github.com/facundoolano/feedi -- name: blorg - url: https://github.com/facundoolano/blorg +- name: jorge + url: https://github.com/facundoolano/jorge ` file := newFile(config.DataDir, "projects.yml", content) defer os.Remove(file.Name()) @@ -299,7 +299,7 @@ func TestRenderDataFile(t *testing.T) { assertEqual(t, err, nil) assertEqual(t, string(output), ``) }