aboutsummaryrefslogtreecommitdiffstats
path: root/bin/func
diff options
context:
space:
mode:
Diffstat (limited to 'bin/func')
-rw-r--r--bin/func13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/func b/bin/func
index af81d92..eb3b489 100644
--- a/bin/func
+++ b/bin/func
@@ -6,6 +6,12 @@ tmp_dir="tmp"
out_dir="out"
tmp_file="${tmp_dir}/tmp"
+rss_dir="${src_dir}/b"
+rss_out_file="${out_dir}/rss.xml"
+
+website_title="rgoncalves.se"
+website_link="https://${website_title}"
+website_description="hacker and "
__get_value() {
# 1: filename
@@ -50,6 +56,13 @@ __get_value_date_human() {
__get_value_date "${1}" | xargs date -j -f "%Y-%m-%d" +"%B %d, %Y"
}
+__get_value_date_publication() {
+ # 1: filename
+ # Get publication date according to rfc 2822 and return a safe string.
+ __get_value_date "${1}" |
+ xargs date -j -f "%Y-%m-%d" +"%a, %d %b %Y %H:%M:%S %z"
+}
+
__get_out_filename() {
# 1: filename
# Convert the source filename to its output destination.
remember that computers suck.