~exprez135/taliaferro

36923dd5705ee4f90f5701ef2aae800d39102089 — Nate Ijams 9 months ago 05e31bf
Patch: attempt to fix CMS
2 files changed, 9 insertions(+), 7 deletions(-)

M scripts/hugo.sh
M static/admin/config.yml
M scripts/hugo.sh => scripts/hugo.sh +2 -0
@@ 17,6 17,8 @@ root_project=`git rev-parse --show-toplevel`
rp="$root_project"
echo "$root_project"

echo "Do you want to update pandoc files?"

echo "Creating pandoc files..."
cd $rp/content/coronavirus
pandoc index.md -f markdown+lists_without_preceding_blankline+hard_line_breaks+blank_before_blockquote -t pdf -o post.pdf --toc -V geometry:"top=2cm, bottom=1.5cm, left=2cm, right=2cm" -V mainfont:../../static/webfonts/charter/Charter\ Regular.otf

M static/admin/config.yml => static/admin/config.yml +7 -7
@@ 7,16 7,16 @@ publish_mode: editorial_workflow
media_folder: static/uploads # This is here because it is required, our posts collection overrides it to empty
public_folder: /uploads # This is here because it is required, our posts collection overrides it to empty

display_url: https://thetaliaferrotimes.org
logo_url: https://thetaliaferrotimes.org/logo.png
display_url: https://taliaferro.tk
logo_url: https://taliaferro.tk/logo.png

collections:
  - name: posts
    label: Posts
    label_singular: Post
    folder: content/
  - name: posts-2020
    label: Testing Posts
    label_singular: Testing Post
    folder: "content/testing"
    create: true
    path: '{{year}}/{{slug}}/index'
    path: '{{slug}}/index'
    media_folder: ''
    public_folder: ''
    fields: