diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c223ae5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +_site +.sass-cache +.jekyll-cache +.jekyll-metadata +vendor +.~lock.* \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..311d2fe --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "_data/wim"] + path = _data/wim + url = https://git.basspistol.org/hq/women-in-music.git diff --git a/README.md b/README.md index bf6bf56..2cc65bf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # rss-rifle +A simple bare-bone Jekyll to build an RSS feed from CSV files \ No newline at end of file diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..af17ce9 --- /dev/null +++ b/_config.yml @@ -0,0 +1,51 @@ +# Welcome to Jekyll! +# +# This config file is meant for settings that affect your whole blog, values +# which you are expected to set up once and rarely edit after that. If you find +# yourself editing this file very often, consider using Jekyll's data files +# feature for the data you need to update frequently. +# +# For technical reasons, this file is *NOT* reloaded automatically when you use +# 'bundle exec jekyll serve'. If you change this file, please restart the server process. +# +# If you need help with YAML syntax, here are some quick references for you: +# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml +# https://learnxinyminutes.com/docs/yaml/ +# +# Site settings +# These are used to personalize your new site. If you look in the HTML files, +# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. +# You can create any custom variable you would like, and they will be accessible +# in the templates via {{ site.myvariable }}. + +title: Women in Music +email: info@basspistol.com +description: >- # this means to ignore newlines until "baseurl:" + Post automation feed for women in music +baseurl: "" # the subpath of your site, e.g. /blog +url: "https://basspistol.com" # the base hostname & protocol for your site, e.g. http://example.com +timezone: Europe/Stockholm + +# Build settings + + +# Exclude from processing. +# The following items will not be processed, by default. +# Any item listed under the `exclude:` key here will be automatically added to +# the internal "default list". +# +# Excluded items can be processed by explicitly listing the directories or +# their entries' file path in the `include:` list. +# +exclude: +# - .sass-cache/ +# - .jekyll-cache/ +# - gemfiles/ +# - Gemfile +# - Gemfile.lock +# - node_modules/ +# - vendor/bundle/ +# - vendor/cache/ +# - vendor/gems/ +# - vendor/ruby/ + - feed.xml \ No newline at end of file diff --git a/_data/wim b/_data/wim new file mode 160000 index 0000000..969d548 --- /dev/null +++ b/_data/wim @@ -0,0 +1 @@ +Subproject commit 969d548b38eeaadc520dda6e6b7549bff4963dbc diff --git a/wim.xml b/wim.xml new file mode 100644 index 0000000..4461a27 --- /dev/null +++ b/wim.xml @@ -0,0 +1,27 @@ +--- +--- + + + + {{ site.title | xml_escape }} + {% if site.description %}{{ site.description | xml_escape }}{% endif %} + {{ site.feed_update_period | default: "daily" | xml_escape }} + {{ site.feed_update_frequency | default: 1 | xml_escape }} + {{ site.url }}/wim.xml + + {{ site.time | date_to_rfc822 }} + {% assign feed_items = site.feed_items | default: 10 %}{% for post in site.data.wim.wim reversed %}{% assign sitetimexml = site.time | date: "%s" %}{% assign now = post.date | date: "%s" %}{% if now <= sitetimexml %} + + {{ post.name | xml_escape }} + {% if post.author.name %}{{ post.author.name | xml_escape }}{% endif %} + {% if post.excerpt %}{{ post.excerpt | xml_escape }}{% else %}{{ post.content | xml_escape }}{% endif %} + {{ post.date | date_to_rfc822 }} + {{ post.link }} + {{ now }} + {% endif %}{% endfor %} + +