diff options
author | Cem Keylan <cem@ckyln.com> | 2020-04-13 01:01:10 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-04-13 01:01:10 +0300 |
commit | dc325ab967af67851a6abc5f13aabf69c2850033 (patch) | |
tree | 1d0e07124816a9624a4dea50b0aa58c621f70d08 /build | |
parent | 4f5cf4f47a64e612171b714103831730ddbc8808 (diff) | |
download | website-dc325ab967af67851a6abc5f13aabf69c2850033.tar.gz |
update
Diffstat (limited to 'build')
-rwxr-xr-x | build | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -90,11 +90,16 @@ EOF site_index() { cp index/index.md src/index.md - find index -name '*.news' | sort -r | while read -r news ; do + find index -name '*.news' | sort -r | sed 3q | while read -r news ; do newsdate="${news##*/}" ; newsdate="${newsdate%.news}" - printf '\n### %s\n\n' "$(date --date="$newsdate" +%b\ %d\ %Y)" >> src/index.md + printf '\n%s\n-----------\n\n' "$(date --date="$newsdate" +%b\ %d\ %Y)" >> src/index.md cat "$news" >> src/index.md done + find index -name '*.news' | sort -r | while read -r news ; do + newsdate="${news##*/}" ; newsdate="${newsdate%.news}" + printf '\n%s\n-----------\n\n' "$(date --date="$newsdate" +%b\ %d\ %Y)" >> src/news.md + cat "$news" >> src/news.md + done } genrss() { |