rename project to jorge (#4)

This commit is contained in:
Facundo Olano 2024-02-16 15:29:43 -03:00 committed by GitHub
parent 663463202c
commit b3e6c0de8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 23 additions and 23 deletions

View file

@ -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)

View file

@ -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 {

View file

@ -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"
)

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/facundoolano/blorg
module github.com/facundoolano/jorge
go 1.22.0

View file

@ -6,7 +6,7 @@ import (
"fmt"
"os"
"github.com/facundoolano/blorg/commands"
"github.com/facundoolano/jorge/commands"
)
func main() {

View file

@ -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"
)

View file

@ -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), `<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>`)
}