From 1fc1ab9dc6295cb52304b541041f19c6998ff3a6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 16 Aug 2018 20:42:02 +0100 Subject: [PATCH] Remove unnecessary output files --- config.yml | 19 ------------------- layouts/_default/list.json | 6 ------ layouts/_default/list.txt | 3 --- layouts/_default/single.json | 1 - layouts/_default/single.txt | 3 --- layouts/partials/page_data.json | 16 ---------------- 6 files changed, 48 deletions(-) delete mode 100644 layouts/_default/list.json delete mode 100644 layouts/_default/list.txt delete mode 100644 layouts/_default/single.json delete mode 100644 layouts/_default/single.txt delete mode 100644 layouts/partials/page_data.json diff --git a/config.yml b/config.yml index 54d22e6..7ba93e9 100644 --- a/config.yml +++ b/config.yml @@ -11,25 +11,6 @@ params: summaryLength: 40 -outputFormats: - markdown: - name: "txt" - mediaType: "text/plain" - isPlainText: true -outputs: - home: - - "html" - - "rss" - - "json" - section: - - "html" - - "rss" - - "txt" - page: - - "html" - - "txt" - - "json" - staticDir: "static/build" buildFuture: true diff --git a/layouts/_default/list.json b/layouts/_default/list.json deleted file mode 100644 index 30ef6f5..0000000 --- a/layouts/_default/list.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - {{ range $i, $e := .Data.Pages.ByTitle }} - {{ if $i }}, {{ end }} - "{{ .RelPermalink }}": {{ partial "page_data.json" . }} - {{ end }} -} diff --git a/layouts/_default/list.txt b/layouts/_default/list.txt deleted file mode 100644 index aebd892..0000000 --- a/layouts/_default/list.txt +++ /dev/null @@ -1,3 +0,0 @@ -# {{ .Title | plainify }} - -{{ .RawContent | safeHTML }} diff --git a/layouts/_default/single.json b/layouts/_default/single.json deleted file mode 100644 index 2f4a87c..0000000 --- a/layouts/_default/single.json +++ /dev/null @@ -1 +0,0 @@ -{{ partial "page_data.json" . }} diff --git a/layouts/_default/single.txt b/layouts/_default/single.txt deleted file mode 100644 index aebd892..0000000 --- a/layouts/_default/single.txt +++ /dev/null @@ -1,3 +0,0 @@ -# {{ .Title | plainify }} - -{{ .RawContent | safeHTML }} diff --git a/layouts/partials/page_data.json b/layouts/partials/page_data.json deleted file mode 100644 index 5cbe072..0000000 --- a/layouts/partials/page_data.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "{{ .UniqueID }}", - "title": "{{ .Title }}", - "image": "{{ absURL .Params.image }}", - "date": "{{ .Date.Format .Site.Params.iso8601 }}", - "url": "{{ .Permalink }}", - "link": "{{ .RelPermalink }}", - "link_title": "{{ .LinkTitle }}", - "content": {{ jsonify .RawContent }}, - "content_html": {{ jsonify (.Content | chomp) }}, - "summary": {{ jsonify (.Summary | plainify | chomp | htmlUnescape) }}, - "words": {{ .FuzzyWordCount }}, - "reading_time": {{ .ReadingTime }}, - "parent": "{{ if .Parent }}{{ .Parent.Title }}{{ end }}", - "tags": {{ jsonify .Params.tags }} -}