From a94cd4e4456dd03a36a1c9669f7967e536f5fd46 Mon Sep 17 00:00:00 2001 From: Jasmine Amalia Date: Tue, 17 Oct 2023 21:12:52 +0700 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a80268..4b45236 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ # xml-feed-generator -an RSS/atom feed generator for my personal site +an RSS/atom feed generator for my personal site :cat: + +--- + +the basic logic of this PHP script: +1. matches files in a specificied directory +2. parses values retrieved from the following strings/HTML elements, as children of a feed ``: + - `

` as `` + - the `datetime` attribute of `<time>` as `<updated>` + - `<element class="p-summary">` as `<summary>` + - `<element class="e-content">` (or `<element class="entry"` for older markup) as `<content>` + - `/path/to/blog/entry` as `<id>`/`<link>` +3. outputs all of the above to `articles.xml` in another directory. + +feel free to modify for your needs!