From 0cc1755f3d920b415fa473a7f07466b4d134e98c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 27 Aug 2016 19:25:37 -0400 Subject: tidy atom stuff --- Makefile | 2 -- index.atom.erb | 9 ++++--- page.atom.erb | 13 ---------- public/index.atom | 72 +++++++++++++++++++------------------------------------ 4 files changed, 29 insertions(+), 67 deletions(-) delete mode 100644 page.atom.erb diff --git a/Makefile b/Makefile index 94f7ae8..0275851 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,6 @@ all: public/index.html public/index.atom $(addsuffix .html,$(articles)) public/%.html: public/%.md page page.html.erb util.rb Makefile write-atomic ./page html $< | ./write-atomic $@ -public/%.atom: public/%.md page page.atom.erb util.rb Makefile write-atomic - ./page atom $< | ./write-atomic $@ public/index.md : index index.md.erb .var.articles $(addsuffix .md,$(articles)) util.rb Makefile write-atomic ./index md $(filter %.md,$^) | ./write-atomic $@ public/index.atom: index index.atom.erb .var.articles $(addsuffix .md,$(articles)) util.rb Makefile write-atomic diff --git a/index.atom.erb b/index.atom.erb index 1784635..ea5f1ef 100644 --- a/index.atom.erb +++ b/index.atom.erb @@ -2,17 +2,16 @@ Luke Shumaker's Web Log - - - + + + <%= @pages.map{|p|p.gitdate}.sort.last.rfc3339 %> <%= Person.new("Luke Shumaker").atom %> https://lukeshu.com/blog/ <% @pages.sort_by{|p| p.date}.reverse.each do |page| %> - - + https://lukeshu.com/blog/<%= page.slug %>.html <%= page.gitdate.rfc3339 %> <%= page.date.rfc3339 %> diff --git a/page.atom.erb b/page.atom.erb deleted file mode 100644 index bc81380..0000000 --- a/page.atom.erb +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - https://lukeshu.com/blog/<%= @page.slug %>.html - <%= @page.gitdate.rfc3339 %> - <%= @page.date.rfc3339 %> - <%= @page.title %> - <%= html_escape(@page.content) %> - <%= @page.author.atom %> - <%= html_escape(@page.rights) %> - diff --git a/public/index.atom b/public/index.atom index 7d9366b..760eb9d 100644 --- a/public/index.atom +++ b/public/index.atom @@ -2,17 +2,16 @@ Luke Shumaker's Web Log - - - + + + 2016-05-02T02:28:19-04:00 Luke Shumakerhttps://lukeshu.com/lukeshu@sbcglobal.net https://lukeshu.com/blog/ - - + https://lukeshu.com/blog/x11-systemd.html 2016-02-28T07:12:18-05:00 2016-02-28T00:00:00+00:00 @@ -196,8 +195,7 @@ Requires=wm-running@%i.target</code></pre> - - + https://lukeshu.com/blog/java-segfault-redux.html 2016-05-02T02:28:19-04:00 2016-02-28T00:00:00+00:00 @@ -279,8 +277,7 @@ public BufferedImage getBufferedImage() { - - + https://lukeshu.com/blog/nginx-mediawiki.html 2015-05-19T23:53:52-06:00 2015-05-19T00:00:00+00:00 @@ -330,8 +327,7 @@ location @php { - - + https://lukeshu.com/blog/lp2015-videos.html 2015-03-22T07:52:39-04:00 2015-03-22T00:00:00+00:00 @@ -348,8 +344,7 @@ location @php { - - + https://lukeshu.com/blog/build-bash-1.html 2016-05-02T02:20:41-04:00 2015-03-18T00:00:00+00:00 @@ -399,8 +394,7 @@ location @php { - - + https://lukeshu.com/blog/purdue-cs-login.html 2016-03-21T02:34:10-04:00 2015-02-06T00:00:00+00:00 @@ -490,8 +484,7 @@ SessionDesktopDir=/usr/local/share/xsessions/</code></pre> - - + https://lukeshu.com/blog/make-memoize.html 2016-03-21T02:34:10-04:00 2014-11-20T00:00:00+00:00 @@ -550,8 +543,7 @@ memoized = $(if $($(_hash)),,$(eval $(_hash) := _ $(_main)))$(call rest,$($(_has - - + https://lukeshu.com/blog/ryf-routers.html 2014-09-12T00:21:05-04:00 2014-09-12T00:00:00+00:00 @@ -575,8 +567,7 @@ memoized = $(if $($(_hash)),,$(eval $(_hash) := _ $(_main)))$(call rest,$($(_has - - + https://lukeshu.com/blog/what-im-working-on-fall-2014.html 2016-02-28T07:12:18-05:00 2014-09-11T00:00:00+00:00 @@ -619,8 +610,7 @@ memoized = $(if $($(_hash)),,$(eval $(_hash) := _ $(_main)))$(call rest,$($(_has - - + https://lukeshu.com/blog/rails-improvements.html 2016-02-28T07:12:18-05:00 2014-05-08T00:00:00+00:00 @@ -680,8 +670,7 @@ end</code></pre> - - + https://lukeshu.com/blog/bash-redirection.html 2014-05-08T14:36:47-04:00 2014-02-13T00:00:00+00:00 @@ -710,8 +699,7 @@ cmd &gt;file 2&gt;&amp;1 # both stdout and stderr go to file</cod - - + https://lukeshu.com/blog/java-segfault.html 2016-02-28T07:12:18-05:00 2014-01-13T00:00:00+00:00 @@ -758,8 +746,7 @@ cmd &gt;file 2&gt;&amp;1 # both stdout and stderr go to file</cod - - + https://lukeshu.com/blog/bash-arrays.html 2016-02-28T07:12:18-05:00 2013-10-13T00:00:00+00:00 @@ -1054,8 +1041,7 @@ command &quot;${ARGS[@]}&quot;</code></pre> - - + https://lukeshu.com/blog/git-go-pre-commit.html 2014-01-26T17:00:58-05:00 2013-10-12T00:00:00+00:00 @@ -1091,8 +1077,7 @@ done</code></pre> - - + https://lukeshu.com/blog/fd_printf.html 2016-02-28T07:12:18-05:00 2013-10-12T00:00:00+00:00 @@ -1133,8 +1118,7 @@ fd_printf(int fd, const char *format, ...) - - + https://lukeshu.com/blog/emacs-as-an-os.html 2014-01-26T17:00:58-05:00 2013-08-29T00:00:00+00:00 @@ -1153,8 +1137,7 @@ fd_printf(int fd, const char *format, ...) - - + https://lukeshu.com/blog/emacs-shells.html 2016-02-28T07:12:18-05:00 2013-04-09T00:00:00+00:00 @@ -1193,8 +1176,7 @@ M-x ansi-term</code></pre> - - + https://lukeshu.com/blog/term-colors.html 2014-01-26T17:00:58-05:00 2013-03-21T00:00:00+00:00 @@ -1217,8 +1199,7 @@ M-x ansi-term</code></pre> - - + https://lukeshu.com/blog/fs-licensing-explanation.html 2016-02-28T07:12:18-05:00 2013-02-21T00:00:00+00:00 @@ -1249,8 +1230,7 @@ M-x ansi-term</code></pre> - - + https://lukeshu.com/blog/pacman-overview.html 2016-02-28T07:12:18-05:00 2013-01-23T00:00:00+00:00 @@ -1280,8 +1260,7 @@ M-x ansi-term</code></pre> - - + https://lukeshu.com/blog/poor-system-documentation.html 2014-01-26T17:00:58-05:00 2012-09-12T00:00:00+00:00 @@ -1299,8 +1278,7 @@ M-x ansi-term</code></pre> - - + https://lukeshu.com/blog/arch-systemd.html 2016-02-28T07:12:18-05:00 2012-09-11T00:00:00+00:00 -- cgit v1.2.3