diff --git a/_config.yml b/_config.yml index bf1a83d..51483fd 100644 --- a/_config.yml +++ b/_config.yml @@ -27,7 +27,7 @@ defaults: values: permalink: til/:title/ category: til - layout: til-post + layout: post jekyll-archives: enabled: diff --git a/_layouts/category.html b/_layouts/category.html deleted file mode 100644 index b685bff..0000000 --- a/_layouts/category.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - andrew conlin - - - - {% include style.html a=page.title %} - - - -
- {% include nav.html a=page.title %} -
- {% assign categories = page.title %} - {% assign category = site.data.categories[categories] %} -

-   {{ page.title }}  -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index 7bd5349..31bc952 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,27 +2,10 @@ layout: default --- -{% capture time %}{{ content | reading_time }}{% endcapture %} - -{% assign categories = page.categories %} -{% assign category = site.data.categories[categories.first] %} - -{% assign tags = page.tags %} -

 {{ page.date | date_to_string }}    |     {{ content | reading_time | pluralize: "minute" }} -    |    -   {{ categories.first }}  -    |    - - {% for tag in tags %} - {{ tag }} - {% if tag != tags.last %} - , - {% endif %} - {% endfor %}


diff --git a/_layouts/tag.html b/_layouts/tag.html deleted file mode 100644 index 2b8a26f..0000000 --- a/_layouts/tag.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - andrew conlin - - - - {% include style.html a=page.title %} - - - -
- {% include nav.html a=page.title %} -
-

-  {{ page.title }} -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_layouts/til-post.html b/_layouts/til-post.html deleted file mode 100644 index ef563e3..0000000 --- a/_layouts/til-post.html +++ /dev/null @@ -1,27 +0,0 @@ ---- -layout: default ---- - -{% assign categories = page.categories %} -{% assign category = site.data.categories[categories.first] %} - -{% assign tags = page.tags %} - -

-  {{ page.date | date_to_string }} -    |    -  {{ content | reading_time | pluralize: "minute" }} -    |    -   {{ categories.first }}  -    |    - - {% for tag in tags %} - {{ tag }} - {% if tag != tags.last %} - , - {% endif %} - {% endfor %} -

-
- -{{ content }} diff --git a/_site/blog/category/til/index.html b/_site/blog/category/til/index.html index 144a1d4..e69de29 100644 --- a/_site/blog/category/til/index.html +++ b/_site/blog/category/til/index.html @@ -1,158 +0,0 @@ - - - - - - - - - - andrew conlin - - - - - - - -
-

- ac -

-
-
- -
-
- - -

-   til  -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/blog/tag/cron/index.html b/_site/blog/tag/cron/index.html index ee90b98..e69de29 100644 --- a/_site/blog/tag/cron/index.html +++ b/_site/blog/tag/cron/index.html @@ -1,142 +0,0 @@ - - - - - - - - - - andrew conlin - - - - - - - -
-

- ac -

-
-
- -
-
-

-  cron -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/blog/tag/docker-compose/index.html b/_site/blog/tag/docker-compose/index.html index 4647c1b..e69de29 100644 --- a/_site/blog/tag/docker-compose/index.html +++ b/_site/blog/tag/docker-compose/index.html @@ -1,156 +0,0 @@ - - - - - - - - - - andrew conlin - - - - - - - -
-

- ac -

-
-
- -
-
-

-  docker-compose -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/blog/tag/docker/index.html b/_site/blog/tag/docker/index.html index 258c54d..e69de29 100644 --- a/_site/blog/tag/docker/index.html +++ b/_site/blog/tag/docker/index.html @@ -1,156 +0,0 @@ - - - - - - - - - - andrew conlin - - - - - - - -
-

- ac -

-
-
- -
-
-

-  docker -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/blog/tag/kindle/index.html b/_site/blog/tag/kindle/index.html index de82cd3..e69de29 100644 --- a/_site/blog/tag/kindle/index.html +++ b/_site/blog/tag/kindle/index.html @@ -1,142 +0,0 @@ - - - - - - - - - - andrew conlin - - - - - - - -
-

- ac -

-
-
- -
-
-

-  kindle -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/blog/tag/nextcloud/index.html b/_site/blog/tag/nextcloud/index.html index e291941..e69de29 100644 --- a/_site/blog/tag/nextcloud/index.html +++ b/_site/blog/tag/nextcloud/index.html @@ -1,142 +0,0 @@ - - - - - - - - - - andrew conlin - - - - - - - -
-

- ac -

-
-
- -
-
-

-  nextcloud -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/blog/tag/php/index.html b/_site/blog/tag/php/index.html index f5b08e0..e69de29 100644 --- a/_site/blog/tag/php/index.html +++ b/_site/blog/tag/php/index.html @@ -1,142 +0,0 @@ - - - - - - - - - - andrew conlin - - - - - - - -
-

- ac -

-
-
- -
-
-

-  php -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/blog/tag/python/index.html b/_site/blog/tag/python/index.html index 57ff9ee..e69de29 100644 --- a/_site/blog/tag/python/index.html +++ b/_site/blog/tag/python/index.html @@ -1,142 +0,0 @@ - - - - - - - - - - andrew conlin - - - - - - - -
-

- ac -

-
-
- -
-
-

-  python -

-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/_site/feed.xml b/_site/feed.xml index efbb6a4..f2957c2 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -1,4 +1,4 @@ -Jekyll2023-08-06T13:45:24+01:00http://localhost:4000/feed.xmlAndrew ConlinRunning a Python script periodically in a Docker container using cron2023-04-19T00:00:00+01:002023-04-19T00:00:00+01:00http://localhost:4000/til/running-python-in-cron-in-dockerRecently, my partner gave a great idea for utilising my old Kindle: generate a “newspaper” each morning from a bunch of RSS feeds, and email it to the Kindle using “Send-to-Kindle” feature (a blog post about this project is in the works).

+Jekyll2023-08-06T18:05:21+01:00http://localhost:4000/feed.xmlAndrew ConlinRunning a Python script periodically in a Docker container using cron2023-04-19T00:00:00+01:002023-04-19T00:00:00+01:00http://localhost:4000/til/running-python-in-cron-in-dockerRecently, my partner gave a great idea for utilising my old Kindle: generate a “newspaper” each morning from a bunch of RSS feeds, and email it to the Kindle using “Send-to-Kindle” feature (a blog post about this project is in the works).

I loved this idea, and thought it would be no problem to get a Python script up and running periodically on my Raspberry Pi home server using cron. However, I ran into various issues along the way (some of which were not so easy to resolve), so I’m collating all the configuration changes I made in the hopes that it will be useful to someone one day. You can find the full repo for this project here, and I have also included my Dockerfile, docker-compose.yml and crontab at the end of this TIL.

diff --git a/_site/feed/til.xml b/_site/feed/til.xml index 2cd942f..a441047 100644 --- a/_site/feed/til.xml +++ b/_site/feed/til.xml @@ -1,4 +1,4 @@ -Jekyll2023-08-06T13:45:24+01:00http://localhost:4000/feed/til.xml | TilAndrew ConlinRunning a Python script periodically in a Docker container using cron2023-04-19T00:00:00+01:002023-04-19T00:00:00+01:00http://localhost:4000/til/running-python-in-cron-in-dockerRecently, my partner gave a great idea for utilising my old Kindle: generate a “newspaper” each morning from a bunch of RSS feeds, and email it to the Kindle using “Send-to-Kindle” feature (a blog post about this project is in the works).

+Jekyll2023-08-06T18:05:21+01:00http://localhost:4000/feed/til.xml | TilAndrew ConlinRunning a Python script periodically in a Docker container using cron2023-04-19T00:00:00+01:002023-04-19T00:00:00+01:00http://localhost:4000/til/running-python-in-cron-in-dockerRecently, my partner gave a great idea for utilising my old Kindle: generate a “newspaper” each morning from a bunch of RSS feeds, and email it to the Kindle using “Send-to-Kindle” feature (a blog post about this project is in the works).

I loved this idea, and thought it would be no problem to get a Python script up and running periodically on my Raspberry Pi home server using cron. However, I ran into various issues along the way (some of which were not so easy to resolve), so I’m collating all the configuration changes I made in the hopes that it will be useful to someone one day. You can find the full repo for this project here, and I have also included my Dockerfile, docker-compose.yml and crontab at the end of this TIL.

diff --git a/_site/til/nextcloud-php-errors/index.html b/_site/til/nextcloud-php-errors/index.html index 277ac73..d11a2f1 100644 --- a/_site/til/nextcloud-php-errors/index.html +++ b/_site/til/nextcloud-php-errors/index.html @@ -116,38 +116,10 @@

- - - - - -

+

 01 Mar 2023    |     2 minutes -    |    -   til  -    |    - - - php - - , - - - nextcloud - - , - - - docker - - , - - - docker-compose - -


diff --git a/_site/til/running-python-in-cron-in-docker/index.html b/_site/til/running-python-in-cron-in-docker/index.html index b25bf6b..7d6063a 100644 --- a/_site/til/running-python-in-cron-in-docker/index.html +++ b/_site/til/running-python-in-cron-in-docker/index.html @@ -116,43 +116,10 @@

- - - - - -

+

 19 Apr 2023    |     3 minutes -    |    -   til  -    |    - - - cron - - , - - - python - - , - - - docker - - , - - - docker-compose - - , - - - kindle - -