diff --git a/.gitignore b/.gitignore index 72a5c3ba..dc075bc8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -_site/ \ No newline at end of file +_site/ +\.jekyll-metadata diff --git a/assets/feed.json b/assets/feed.json deleted file mode 100644 index 9d098bde..00000000 --- a/assets/feed.json +++ /dev/null @@ -1,52 +0,0 @@ ---- -layout: null ---- -{% assign first = true %} -[ -{% for collection in site.collections %} - {% for item in collection %} - {% for item in site.[item.label] %} - {% if item.title != null and item.title != empty %} - {% unless first %},{% endunless %}{ - "title": {{item.title | jsonify}}, - "content": {{item.content | markdownify | strip_html | jsonify}}, - "link": "{{ site.baseurl }}{{ item.url }}", - "date": "{{ item.date }}", - "excerpt": "{{ item.snippet }}", - "search_omit": "{{ item.search_omit }}" - } - {% assign first = false %} - {% endif %} - {% endfor %} - {% endfor %} -{% endfor %} - - -{% for post in site.posts %} - {% if post.title != null and post.title != empty %} - {% unless first %},{% endunless %}{ - "title": {{post.title | jsonify}}, - "content": {{post.content | markdownify | strip_html | jsonify}}, - "link": "{{ site.baseurl }}{{ post.url }}", - "date": "{{ post.date }}", - "excerpt": "{{ post.snippet }}", - "search_omit": "{{ post.search_omit }}" - } - {% assign first = false %} - {% endif %} -{% endfor %} - -{% for page in site.pages %} - {% if page.title != null and page.title != empty %} - {% unless first %},{% endunless %}{ - "title": {{page.title | jsonify}}, - "content": {{page.content | strip_html | jsonify}}, - "link": "{{ site.baseurl }}{{ page.url | replace: 'index.html', '' }}", - "date": {{ page.date | jsonify }}, - "excerpt": {{ page.description | jsonify }}, - "search_omit": "{{ page.search_omit }}" - } - {% assign first = false %} - {% endif %} -{% endfor %} -] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..18755ce3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +jekyll: + image: jekyll/jekyll:pages + command: jekyll serve --watch --incremental + ports: + - 4000:4000 + volumes: + - .:/srv/jekyll \ No newline at end of file