aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2020-01-11 18:32:56 +0000
committerChristine Dodrill <me@christine.website>2020-01-11 18:32:56 +0000
commitd8f2b6f4969989491ce60e3f4f263c4571245c34 (patch)
treec944d823caf3ed506cbb8efb450a7013f36d1ddd
parentb484f8e50e398753afc58477151892d261079761 (diff)
downloadxesite-d8f2b6f4969989491ce60e3f4f263c4571245c34.tar.xz
xesite-d8f2b6f4969989491ce60e3f4f263c4571245c34.zip
expose jsonfeedv1.3.1
-rw-r--r--cmd/site/main.go3
-rw-r--r--jsonfeed/.travis.yml (renamed from cmd/site/internal/jsonfeed/.travis.yml)0
-rw-r--r--jsonfeed/LICENSE (renamed from cmd/site/internal/jsonfeed/LICENSE)0
-rw-r--r--jsonfeed/README.md (renamed from cmd/site/internal/jsonfeed/README.md)0
-rw-r--r--jsonfeed/jsonfeed.go (renamed from cmd/site/internal/jsonfeed/jsonfeed.go)0
-rw-r--r--jsonfeed/jsonfeed_test.go (renamed from cmd/site/internal/jsonfeed/jsonfeed_test.go)7
-rw-r--r--jsonfeed/testdata/feed.json (renamed from cmd/site/internal/jsonfeed/testdata/feed.json)0
7 files changed, 5 insertions, 5 deletions
diff --git a/cmd/site/main.go b/cmd/site/main.go
index 635c313..da0207d 100644
--- a/cmd/site/main.go
+++ b/cmd/site/main.go
@@ -10,8 +10,8 @@ import (
"time"
"christine.website/cmd/site/internal/blog"
- "christine.website/cmd/site/internal/jsonfeed"
"christine.website/cmd/site/internal/middleware"
+ "christine.website/jsonfeed"
"github.com/gorilla/feeds"
"github.com/povilasv/prommod"
"github.com/prometheus/client_golang/prometheus"
@@ -194,6 +194,7 @@ func Build() (*Site, error) {
Title: item.Title,
DatePublished: item.Date,
ContentHTML: string(item.BodyHTML),
+ Tags: item.Tags,
})
smi.Add(&sitemap.URL{
diff --git a/cmd/site/internal/jsonfeed/.travis.yml b/jsonfeed/.travis.yml
index e872c60..e872c60 100644
--- a/cmd/site/internal/jsonfeed/.travis.yml
+++ b/jsonfeed/.travis.yml
diff --git a/cmd/site/internal/jsonfeed/LICENSE b/jsonfeed/LICENSE
index e87a115..e87a115 100644
--- a/cmd/site/internal/jsonfeed/LICENSE
+++ b/jsonfeed/LICENSE
diff --git a/cmd/site/internal/jsonfeed/README.md b/jsonfeed/README.md
index 27f7cb5..27f7cb5 100644
--- a/cmd/site/internal/jsonfeed/README.md
+++ b/jsonfeed/README.md
diff --git a/cmd/site/internal/jsonfeed/jsonfeed.go b/jsonfeed/jsonfeed.go
index 913880d..913880d 100644
--- a/cmd/site/internal/jsonfeed/jsonfeed.go
+++ b/jsonfeed/jsonfeed.go
diff --git a/cmd/site/internal/jsonfeed/jsonfeed_test.go b/jsonfeed/jsonfeed_test.go
index cd071d7..d345f38 100644
--- a/cmd/site/internal/jsonfeed/jsonfeed_test.go
+++ b/jsonfeed/jsonfeed_test.go
@@ -2,22 +2,21 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/
-package jsonfeed_test
+package jsonfeed
import (
"os"
"testing"
"time"
- "christine.website/cmd/site/internal/jsonfeed"
"github.com/stretchr/testify/assert"
)
-func Test_ParseSimple(t *testing.T) {
+func TestParseSimple(t *testing.T) {
r, err := os.Open("testdata/feed.json")
assert.NoError(t, err, "Could not open testdata/feed.json")
- feed, err := jsonfeed.Parse(r)
+ feed, err := Parse(r)
assert.NoError(t, err, "Could not parse testdata/feed.json")
assert.Equal(t, "https://jsonfeed.org/version/1", feed.Version)
diff --git a/cmd/site/internal/jsonfeed/testdata/feed.json b/jsonfeed/testdata/feed.json
index ad4bbe1..ad4bbe1 100644
--- a/cmd/site/internal/jsonfeed/testdata/feed.json
+++ b/jsonfeed/testdata/feed.json