Browse Source

feed in header; zap generated index.html

Brennen Bearnes 4 years ago
parent
commit
d7890d359d
3 changed files with 3 additions and 3029 deletions
  1. 2
    3
      git-feed.pl
  2. 1
    0
      header.html
  3. 0
    3026
      index.html

+ 2
- 3
git-feed.pl View File

@@ -9,7 +9,7 @@ use HTML::Entities;
9 9
 my $book_url = "http://www.p1k3.com/userland-book/";
10 10
 my $feed_url = "http://www.p1k3.com/userland-book/feed.xml";
11 11
 
12
-my $log = `git log --pretty=format:"%H _ %ai _ %s"`;
12
+my $log = `git log -10 --pretty=format:"%H _ %ai _ %s"`;
13 13
 
14 14
 my $feed = XML::Atom::SimpleFeed->new(
15 15
   title     => "userland: a book about the command line for humans",
@@ -22,7 +22,6 @@ my $feed = XML::Atom::SimpleFeed->new(
22 22
   # updated   => iso_date(Wala::get_mtime($month_file)),
23 23
 );
24 24
 
25
-# content   => `git show $hash`,
26 25
 while ($log =~ m/^([a-z0-9]+) _ (.*) _ (.*)$/gm) {
27 26
   my $hash = $1;
28 27
   my $full_commit = `git show $hash`;
@@ -35,7 +34,7 @@ while ($log =~ m/^([a-z0-9]+) _ (.*) _ (.*)$/gm) {
35 34
     link      => $book_url,
36 35
     id        => $hash,
37 36
     # content   => { content => `git show $hash`, type => 'text' },
38
-    content   => $formatted_commit,
37
+    # content   => $formatted_commit,
39 38
     updated   => $date,
40 39
   );
41 40
 }

+ 1
- 0
header.html View File

@@ -4,6 +4,7 @@
4 4
   <meta charset="utf-8">
5 5
   <title>userland: a book about the command line for humans</title>
6 6
   <link rel=stylesheet href="userland.css" />
7
+  <link rel="alternate" type="application/atom+xml" title="changes" href="//p1k3.com/userland-book/feed.xml" />
7 8
   <script src="js/jquery.js" type="text/javascript"></script>
8 9
 </head>
9 10
 

+ 0
- 3026
index.html
File diff suppressed because it is too large
View File