diff --git a/.forestry/front_matter/templates/article.yml b/.forestry/front_matter/templates/article.yml new file mode 100644 index 00000000..5c332ffe --- /dev/null +++ b/.forestry/front_matter/templates/article.yml @@ -0,0 +1,15 @@ +--- +label: Article +hide_body: false +fields: +- name: slug + type: text + config: + required: false + label: slug +- name: tags + type: tag_list + default: [] + label: tags +pages: +- data/articles/article-test.md diff --git a/.forestry/settings.yml b/.forestry/settings.yml new file mode 100644 index 00000000..a6111cbf --- /dev/null +++ b/.forestry/settings.yml @@ -0,0 +1,29 @@ +--- +new_page_extension: md +auto_deploy: false +admin_path: '' +webhook_url: +sections: +- type: directory + path: data/articles + label: Articles + create: documents + match: "**/*" +- type: document + path: data/settings.json + label: Settings +upload_dir: uploads +public_path: "/uploads" +front_matter_path: '' +use_front_matter_path: false +file_template: ":year:/:filename:" +build: + preview_command: gatsby build + publish_command: gatsby build + preview_output_directory: public + output_directory: public + instant_preview_command: npm run forestry:preview + install_dependencies_command: yarn install + preview_docker_image: node:10 + mount_path: "/srv" + working_dir: "/srv" diff --git a/data/articles/article-test.md b/data/articles/article-test.md new file mode 100644 index 00000000..54bed517 --- /dev/null +++ b/data/articles/article-test.md @@ -0,0 +1,16 @@ +--- +tags: +- test +- dev +slug: article-test + +--- +This is **Hudozka** + +![](/uploads/2019/HudozkaMain2014.jpg) + +1. 1 +2. 2 +3. 3 + +[Устав 2015](https://app.forestry.io/sites/tadnt0fp3fdrgg/body-media//uploads/2019/Устав 2015.pdf "Устав 2015") \ No newline at end of file diff --git a/data/settings.json b/data/settings.json new file mode 100644 index 00000000..fa776939 --- /dev/null +++ b/data/settings.json @@ -0,0 +1,3 @@ +{ + "name": "Hudozka" +} diff --git a/uploads/2019/HudozkaMain2014.jpg b/uploads/2019/HudozkaMain2014.jpg new file mode 100644 index 00000000..0ebade4e Binary files /dev/null and b/uploads/2019/HudozkaMain2014.jpg differ diff --git a/uploads/2019/Устав 2015.pdf b/uploads/2019/Устав 2015.pdf new file mode 100644 index 00000000..d4e9d34b Binary files /dev/null and b/uploads/2019/Устав 2015.pdf differ diff --git a/utils/Sync/requirements.txt b/utils/Sync/requirements.txt index eac62e6f..1ffd70f2 100644 --- a/utils/Sync/requirements.txt +++ b/utils/Sync/requirements.txt @@ -6,7 +6,7 @@ pymongo==3.3.0 PyPDF2==1.26.0 python-frontmatter==0.3.1 PyYAML==3.11 -requests==2.10.0 +requests==2.20.0 six==1.10.0 smartcrop==0.1 toml==0.9.2