diff --git a/blog/Post.class.php b/blog/Post.class.php index c6852082..17d257a0 100644 --- a/blog/Post.class.php +++ b/blog/Post.class.php @@ -44,17 +44,17 @@ class Post return $this->contentHtml; } - public function getPrevPostSlug() + public function getPrevPost() { $slugs = array_keys(Blog::getSlugMap()); $key = array_search($this->getSlug(), $slugs); - return $key === false || $key === 0 ? null : $slugs[$key-1]; + return $key === false || $key === 0 ? null : Blog::getPost($slugs[$key-1]); } - public function getNextPostSlug() + public function getNextPost() { $slugs = array_keys(Blog::getSlugMap()); $key = array_search($this->getSlug(), $slugs); - return $key === false || $key >= count($slugs)-1 ? null : $slugs[$key+1]; + return $key === false || $key >= count($slugs)-1 ? null : Blog::getPost($slugs[$key+1]); } } \ No newline at end of file diff --git a/blog/posts/03-5-questions-about-lbry.md b/blog/posts/03-5-questions-about-lbry.md index 489761d5..dd7c8107 100644 --- a/blog/posts/03-5-questions-about-lbry.md +++ b/blog/posts/03-5-questions-about-lbry.md @@ -21,7 +21,7 @@ As I recently traveled across Europe, and ultimately to [PorcFest](www.porcfest. ##### Join Mailing List
-
+
diff --git a/blog/posts/09-introducing-lbry-the-bitcoin-of-content.md b/blog/posts/09-introducing-lbry-the-bitcoin-of-content.md index 00b597f7..87578852 100644 --- a/blog/posts/09-introducing-lbry-the-bitcoin-of-content.md +++ b/blog/posts/09-introducing-lbry-the-bitcoin-of-content.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: mike title: 'Introducing LBRY: The Bitcoin of Content' date: '2015-09-09 13:28:35' --- diff --git a/blog/posts/12-why-not-use-bitcoin-a-dialogue.md b/blog/posts/12-why-not-use-bitcoin-a-dialogue.md index 6861c431..15b793a0 100644 --- a/blog/posts/12-why-not-use-bitcoin-a-dialogue.md +++ b/blog/posts/12-why-not-use-bitcoin-a-dialogue.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: jimmy title: Why Not Use Bitcoin? A Dialogue date: '2015-09-23 17:57:00' --- diff --git a/blog/posts/13-mike-vine-joins-lbry-as-technology-evangelist-2.md b/blog/posts/13-mike-vine-joins-lbry-as-technology-evangelist-2.md index 6294ced5..041ad9aa 100644 --- a/blog/posts/13-mike-vine-joins-lbry-as-technology-evangelist-2.md +++ b/blog/posts/13-mike-vine-joins-lbry-as-technology-evangelist-2.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: mike title: Mike Vine Joins LBRY as Technology Evangelist date: '2015-10-22 15:55:07' --- diff --git a/blog/posts/14-lbry-gets-content-creators-out-of-precarious-position-daily-decrypts-amanda-b-johnson.md b/blog/posts/14-lbry-gets-content-creators-out-of-precarious-position-daily-decrypts-amanda-b-johnson.md index c457699d..7d42d608 100644 --- a/blog/posts/14-lbry-gets-content-creators-out-of-precarious-position-daily-decrypts-amanda-b-johnson.md +++ b/blog/posts/14-lbry-gets-content-creators-out-of-precarious-position-daily-decrypts-amanda-b-johnson.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: "LBRY Gets Content Creators Out of Precarious Position - Daily Decrypt's Amanda B. Johnson" date: '2015-10-26 15:10:51' --- diff --git a/blog/posts/15-renowned-ip-attorney-kinsella-joins-lbry-cryptoapp-as-legal-advisor.md b/blog/posts/15-renowned-ip-attorney-kinsella-joins-lbry-cryptoapp-as-legal-advisor.md index 6b3f79d6..da683cae 100644 --- a/blog/posts/15-renowned-ip-attorney-kinsella-joins-lbry-cryptoapp-as-legal-advisor.md +++ b/blog/posts/15-renowned-ip-attorney-kinsella-joins-lbry-cryptoapp-as-legal-advisor.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: mike title: Renowned IP Attorney Kinsella Joins LBRY As Legal Advisor date: '2015-10-29 13:57:25' --- diff --git a/blog/posts/16-digging-into-lbry.md b/blog/posts/16-digging-into-lbry.md index f1862aac..cde8e18b 100644 --- a/blog/posts/16-digging-into-lbry.md +++ b/blog/posts/16-digging-into-lbry.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: 'Digging Into LBRY: Our Inspiration & The Future of Content' date: '2015-11-05 21:08:22' --- diff --git a/blog/posts/18-its-time-to-liberate-anne-franks-diary.md b/blog/posts/18-its-time-to-liberate-anne-franks-diary.md index 321e3a74..d9005b37 100644 --- a/blog/posts/18-its-time-to-liberate-anne-franks-diary.md +++ b/blog/posts/18-its-time-to-liberate-anne-franks-diary.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: It’s Time To Liberate Anne Frank’s Diary date: '2015-11-18 14:27:39' --- diff --git a/blog/posts/19-free-lbry-credits-come-and-get-em.md b/blog/posts/19-free-lbry-credits-come-and-get-em.md index 1c272d17..27bb0683 100644 --- a/blog/posts/19-free-lbry-credits-come-and-get-em.md +++ b/blog/posts/19-free-lbry-credits-come-and-get-em.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: 'Free LBRY Credits: Come and Get ‘Em!' date: '2015-11-24 19:43:59' --- diff --git a/blog/posts/20-open-a-valve-to-gush-classic-movies.md b/blog/posts/20-open-a-valve-to-gush-classic-movies.md index c6a633b1..78ca4602 100644 --- a/blog/posts/20-open-a-valve-to-gush-classic-movies.md +++ b/blog/posts/20-open-a-valve-to-gush-classic-movies.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: Open a Valve to Gush Classic Movies date: '2015-12-02 19:04:36' --- diff --git a/blog/posts/21-gmu-economist-alex-tabarrok-joins-lbry.md b/blog/posts/21-gmu-economist-alex-tabarrok-joins-lbry.md index babb8a8f..b8f00d50 100644 --- a/blog/posts/21-gmu-economist-alex-tabarrok-joins-lbry.md +++ b/blog/posts/21-gmu-economist-alex-tabarrok-joins-lbry.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: GMU Economist Alex Tabarrok Joins LBRY date: '2015-12-07 17:33:37' --- diff --git a/blog/posts/22-building-the-web-3-0-decentralizing-content-in-an-age-of-centralization.md b/blog/posts/22-building-the-web-3-0-decentralizing-content-in-an-age-of-centralization.md index 86579550..4b8d3a3a 100644 --- a/blog/posts/22-building-the-web-3-0-decentralizing-content-in-an-age-of-centralization.md +++ b/blog/posts/22-building-the-web-3-0-decentralizing-content-in-an-age-of-centralization.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: 'Web 3.0 with Albert K Lu: Movies, Songs, and Books with No Gatekeepers (Sorry iTunes)' date: '2015-12-09 16:38:00' --- diff --git a/blog/posts/23-bravenewcoin.md b/blog/posts/23-bravenewcoin.md index 92571b2c..fb6ad127 100644 --- a/blog/posts/23-bravenewcoin.md +++ b/blog/posts/23-bravenewcoin.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: 'BraveNewCoin Compares LBRY to Alexandria: Who Will Be the First to Supplant BitTorrent?' date: '2015-12-17 21:55:57' --- diff --git a/blog/posts/24-our-christmas-surprise.md b/blog/posts/24-our-christmas-surprise.md index fe8c0bc6..3b9c9153 100644 --- a/blog/posts/24-our-christmas-surprise.md +++ b/blog/posts/24-our-christmas-surprise.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: mike title: Our Christmas Surprise! date: '2015-12-24 02:27:31' --- diff --git a/blog/posts/25-huemer-joins-lbry-ethical-advisor.md b/blog/posts/25-huemer-joins-lbry-ethical-advisor.md index cc12ecfe..4b33bd59 100644 --- a/blog/posts/25-huemer-joins-lbry-ethical-advisor.md +++ b/blog/posts/25-huemer-joins-lbry-ethical-advisor.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: LBRY Blockchain App Can Now Tell Right From Wrong date: '2015-12-30 14:59:29' --- diff --git a/blog/posts/26-jack-robison-escaped-60-years-in-prison-now-hes-revolutionizing-the-internet.md b/blog/posts/26-jack-robison-escaped-60-years-in-prison-now-hes-revolutionizing-the-internet.md index 43c95e19..cbc3bf4e 100644 --- a/blog/posts/26-jack-robison-escaped-60-years-in-prison-now-hes-revolutionizing-the-internet.md +++ b/blog/posts/26-jack-robison-escaped-60-years-in-prison-now-hes-revolutionizing-the-internet.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: Jack Robison Escaped 60 Years in Prison; Now He’s Revolutionizing the Internet date: '2015-12-31 17:10:59' --- diff --git a/blog/posts/27-lbry-adds-chief-growth-officer-josh-finer.md b/blog/posts/27-lbry-adds-chief-growth-officer-josh-finer.md index 5838d37b..237b55ae 100644 --- a/blog/posts/27-lbry-adds-chief-growth-officer-josh-finer.md +++ b/blog/posts/27-lbry-adds-chief-growth-officer-josh-finer.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: LBRY Means Business With Addition of Josh Finer, MBA date: '2016-01-06 15:11:11' --- diff --git a/blog/posts/28-the-dmcas-chilling-effect-on-security-research-and-innovation.md b/blog/posts/28-the-dmcas-chilling-effect-on-security-research-and-innovation.md index f29b39cd..a82bc65d 100644 --- a/blog/posts/28-the-dmcas-chilling-effect-on-security-research-and-innovation.md +++ b/blog/posts/28-the-dmcas-chilling-effect-on-security-research-and-innovation.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: jack title: The DMCA's Chilling Effect on Security Research and Innovation date: '2016-01-14 16:31:51' --- diff --git a/blog/posts/29-lbry-app-sneak-peak-big-questions-answered-lbry-on-blocktalk-last-night.md b/blog/posts/29-lbry-app-sneak-peak-big-questions-answered-lbry-on-blocktalk-last-night.md index 1383d382..800c7fe3 100644 --- a/blog/posts/29-lbry-app-sneak-peak-big-questions-answered-lbry-on-blocktalk-last-night.md +++ b/blog/posts/29-lbry-app-sneak-peak-big-questions-answered-lbry-on-blocktalk-last-night.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: 'LBRY App Sneak Peak + Big Questions Answered - LBRY on #Blocktalk Last Night' date: '2016-01-15 19:17:12' --- diff --git a/blog/posts/30-try-lbry-on-os-x-el-capitan.md b/blog/posts/30-try-lbry-on-os-x-el-capitan.md index fee5d6c8..f1a5bf48 100644 --- a/blog/posts/30-try-lbry-on-os-x-el-capitan.md +++ b/blog/posts/30-try-lbry-on-os-x-el-capitan.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: Try LBRY's Graphical Interface On OS X El Capitan date: '2016-01-23 00:15:31' --- diff --git a/blog/posts/31-annefrank2.md b/blog/posts/31-annefrank2.md index 96bc3739..618332d3 100644 --- a/blog/posts/31-annefrank2.md +++ b/blog/posts/31-annefrank2.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: Wikimedia Forced to Remove Anne Frank's Diary date: '2016-02-12 19:21:53' --- diff --git a/blog/posts/32-if-lbry-succeeds-humanity-wins-lbry-ceo-on-lions-of-liberty-podcast.md b/blog/posts/32-if-lbry-succeeds-humanity-wins-lbry-ceo-on-lions-of-liberty-podcast.md index 7949f213..fdd9b897 100644 --- a/blog/posts/32-if-lbry-succeeds-humanity-wins-lbry-ceo-on-lions-of-liberty-podcast.md +++ b/blog/posts/32-if-lbry-succeeds-humanity-wins-lbry-ceo-on-lions-of-liberty-podcast.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: 'If LBRY Succeeds, Humanity Wins: LBRY CEO on Lions of Liberty Podcast' date: '2016-02-17 17:45:37' --- diff --git a/blog/posts/33-zarghamjoins.md b/blog/posts/33-zarghamjoins.md index c5186ef9..0970d089 100644 --- a/blog/posts/33-zarghamjoins.md +++ b/blog/posts/33-zarghamjoins.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: LBRY Exposes Itself to World; Adds Mad Scientist to Team date: '2016-03-02 18:12:13' --- diff --git a/blog/posts/35-why-doesnt-lbry-just-use-bitcoin.md b/blog/posts/35-why-doesnt-lbry-just-use-bitcoin.md index 52dbd263..d387f2fe 100644 --- a/blog/posts/35-why-doesnt-lbry-just-use-bitcoin.md +++ b/blog/posts/35-why-doesnt-lbry-just-use-bitcoin.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: Why Doesn’t LBRY Just Use Bitcoin? date: '2016-03-17 13:31:10' --- diff --git a/blog/posts/36-built-for-artists-by-autists-lbry-takes-autism-personally.md b/blog/posts/36-built-for-artists-by-autists-lbry-takes-autism-personally.md index 51ee0756..7cff3663 100644 --- a/blog/posts/36-built-for-artists-by-autists-lbry-takes-autism-personally.md +++ b/blog/posts/36-built-for-artists-by-autists-lbry-takes-autism-personally.md @@ -1,5 +1,5 @@ --- -author: jeremy +author: lbry title: 'Built for Artists by Autists: LBRY Takes Autism Personally' date: '2016-03-21 20:06:18' --- diff --git a/controller/action/BlogActions.class.php b/controller/action/BlogActions.class.php index 088bdcc6..10b9e3a6 100644 --- a/controller/action/BlogActions.class.php +++ b/controller/action/BlogActions.class.php @@ -15,6 +15,9 @@ class BlogActions extends Actions public static function executeHome() { $posts = Blog::getPosts(); + usort($posts, function(Post $a, Post $b) { + return strcasecmp($b->getDate()->format('Y-m-d'), $a->getDate()->format('Y-m-d')); + }); $page = isset($_GET['page']) ? (int)$_GET['page'] : 1; return ['blog/home', [ 'posts' => $posts, diff --git a/view/blog/home.php b/view/blog/home.php index 6de288e5..ff8246ef 100644 --- a/view/blog/home.php +++ b/view/blog/home.php @@ -1,15 +1,19 @@ false]) ?>
-
-

The Front Desk

- News and musings from the LBRY team. +
+
+
+

The Front Desk

+

News and musings from the LBRY team.

+
+
-
+
-

getTitle() ?>

-

getDate()->format('Y-m-d') ?>

+ getTitle() ?> + getDate()->format('M j') ?>
diff --git a/view/blog/post.php b/view/blog/post.php index fed2e4dd..ab1bd3e4 100644 --- a/view/blog/post.php +++ b/view/blog/post.php @@ -1,20 +1,74 @@ getTitle()) ?> -
+
+ +
+ << Return to LBRY Front Desk +
+
-

getTitle() ?>

-

getAuthor() ?>

-

getDate()->format('Y-m-d') ?>

- +
+ getDate()->format('M j') ?> +
+

getTitle()) ?>

getContentHtml() ?>
- + + + +
+
+ Author + getAuthor())): + case 'jeremy' ?> +

Jeremy Kauffman

+

+ Jeremy is the creator of TopScore (usetopscore.com), LBRY (lbry.io), and that joke where the first two items in your list are serious while the third one is a run-on sentence. +

+ + +

Mike Vine

+ + +

Jimmy Kiselak

+ + +

Jack Robison

+

+ Jack was one of the first people to discover LBRY and took to it so fast he may understand more about it than anyone. He has Asperger's Syndrome and is actively involved in the autism community. +

+ + +

Samuel Bryan

+

+ Much of our writing is a collaboration between LBRY team members, so we use SamueL BRYan to share credit. Sam has become a friend... an imaginary friend... even though we're adults... +

+ + +
+
+
diff --git a/view/layout/basic.php b/view/layout/basic.php index 96f44328..31ea2cb2 100644 --- a/view/layout/basic.php +++ b/view/layout/basic.php @@ -12,7 +12,7 @@ 'LBRY' ?> <?php echo $title ?> - + diff --git a/web/img/frontdesk.jpg b/web/img/frontdesk.jpg new file mode 100644 index 00000000..6fe4cbca Binary files /dev/null and b/web/img/frontdesk.jpg differ diff --git a/web/scss/_blog.scss b/web/scss/_blog.scss index e520a69e..fc15c89d 100644 --- a/web/scss/_blog.scss +++ b/web/scss/_blog.scss @@ -1,6 +1,71 @@ @import "global"; -.blog { + +.blog-post { + .date { + margin-top: $spacing-vertical * 2; + } + h1 { + font-size: 2em; + margin-top: 0 !important; + } p, li { font-weight: 400; } + img + p { + margin-top: $spacing-vertical; + } + + .prev-next { + margin-top: $spacing-vertical * 2; + margin-bottom: $spacing-vertical * 2; + + .prev-next-label { + font-weight: 700; + } + .next { + text-align: right; + } + } + + blockquote { + padding-left: 40px; + border-left: solid 8px #f2f2f2; + } + + .author { + background-color: #f2f2f2; + .content { + padding-top: $spacing-vertical * 2; + padding-bottom: $spacing-vertical * 2; + } + h2 { + font-weight: 400; + margin-top: 0; + text-transform: uppercase; + } + } +} + +.blog-header { + font-size: 2em; + h1 { + font-weight: 400; + &:after { + clear: right; + } + } +} + +.post-list { + font-family: $bodyFont; + margin-bottom: $spacing-vertical * 2; + div { + margin-bottom: $spacing-vertical; + } + a { + font-weight: 400; + } + span { + margin-left: 10px; + } } \ No newline at end of file