intitial commit and add submodule

This commit is contained in:
Set Sakrecoer 2023-12-06 16:02:07 +01:00
parent 127d02ed72
commit cac102df59
6 changed files with 89 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
_site
.sass-cache
.jekyll-cache
.jekyll-metadata
vendor
.~lock.*

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "_data/wim"]
path = _data/wim
url = https://git.basspistol.org/hq/women-in-music.git

View File

@ -1,2 +1,3 @@
# rss-rifle
A simple bare-bone Jekyll to build an RSS feed from CSV files

51
_config.yml Normal file
View File

@ -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

1
_data/wim Submodule

@ -0,0 +1 @@
Subproject commit 969d548b38eeaadc520dda6e6b7549bff4963dbc

27
wim.xml Normal file
View File

@ -0,0 +1,27 @@
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
>
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
<sy:updatePeriod>{{ site.feed_update_period | default: "daily" | xml_escape }}</sy:updatePeriod>
<sy:updateFrequency>{{ site.feed_update_frequency | default: 1 | xml_escape }}</sy:updateFrequency>
<link>{{ site.url }}/wim.xml</link>
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
{% 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 %}
<item>
<title>{{ post.name | xml_escape }}</title>
{% if post.author.name %}<dc:creator>{{ post.author.name | xml_escape }}</dc:creator>{% endif %}
{% if post.excerpt %}<description>{{ post.excerpt | xml_escape }}</description>{% else %}<description>{{ post.content | xml_escape }}</description>{% endif %}
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.link }}</link>
<guid isPermaLink="false">{{ now }}</guid>
</item>{% endif %}{% endfor %}
</channel>
</rss>