Skip to content

Commit

Permalink
rename project to jorge (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
facundoolano authored Feb 16, 2024
1 parent 6634632 commit b3e6c0d
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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)
4 changes: 2 additions & 2 deletions commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions commands/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/facundoolano/blorg
module github.com/facundoolano/jorge

go 1.22.0

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"os"

"github.com/facundoolano/blorg/commands"
"github.com/facundoolano/jorge/commands"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions site/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
8 changes: 4 additions & 4 deletions site/site_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package site

import (
"github.com/facundoolano/blorg/config"
"github.com/facundoolano/jorge/config"
"os"
"path/filepath"
"testing"
Expand Down Expand Up @@ -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())
Expand All @@ -299,7 +299,7 @@ func TestRenderDataFile(t *testing.T) {
assertEqual(t, err, nil)
assertEqual(t, string(output), `<ul>
<li><a href="https://github.com/facundoolano/feedi">feedi</a></li>
<li><a href="https://github.com/facundoolano/blorg">blorg</a></li>
<li><a href="https://github.com/facundoolano/jorge">jorge</a></li>
</ul>`)
}

Expand Down

0 comments on commit b3e6c0d

Please sign in to comment.