Skip to content
Permalink
Browse files

Homepage Blogpost (#228)

  • Loading branch information...
dirkkelly authored and craiglonsdale committed May 3, 2019
1 parent 4d5d131 commit 2ea5fe19264ced70da7e67782ab8ffbb8e30d41d
@@ -0,0 +1,17 @@
---
title: Homepage from r/BreadTube Upvotes
date: 2019-04-25T18:00:00+08:00
img: "/img/blog/homepage-screenshot.png"
---

Now that we've added so much content to BreadTube based on the fantastic
suggestions from the community, it's time to start showing off more dynamic
content on the homepage.

By reviewing the
<a href="https://www.reddit.com/r/breadtube/top/?t=month"><strong>r/BreadTube</strong></a>
community content we were able to identify
the top rated videos for the last month and show them on the homepage.

This content is easily updated and something we want to automate by having bots monitor
Reddit in order to update these periodically.
@@ -1,16 +1,16 @@
---
title: BreadTube.tv now has search, what channels are we missing?
title: Searching and Suggesting Channels!
date: 2019-03-16T20:00:00-05:00
img: "/img/blog/search-screenshot.jpg"
img: "/img/blog/search-screenshot.png"
---

We've added a channel search feature to https://breadtube.tv!

Search is based on full or partial results from

- Name https://breadtube.tv/#search:con
- Description https://breadtube.tv/#search:anarchist
- Tags https://breadtube.tv/#search:news
- Name https://breadtube.tv/channels/#search:contra
- Description https://breadtube.tv/channels/#search:anarchist
- Tags https://breadtube.tv/channels/#search:news

Going forward there are a few things that it would be good to work on.

@@ -3,10 +3,10 @@
<h1 class="heading">{{ .Title }}</h1>

{{ range .Pages.ByPublishDate.Reverse }}
<p>
<h2 class="page-title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ dateFormat "Jan 1, 2006" .PublishDate }}
</p>
<small>{{ dateFormat "Jan 2, 2006" .PublishDate }}</small>
</h2>
{{ end }}
</div>
{{ end }}
@@ -1,6 +1,9 @@
{{ define "main" }}
<div class="content">
<h1 class="heading">{{ .Title }}</h1>
<h1 class="heading">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h1>
<small>{{ dateFormat "Jan 2, 2006" .PublishDate }}</small>

{{ if .Params.img }}
<img src="{{ .Params.img }}" alt="{{ .Title }}" />
@@ -193,6 +193,20 @@ ul {
max-width: 45rem;
}

.content h2,
.text-content h2 {
font-size: 1.3rem;
font-weight: bold;
margin-top: 0.5rem;
margin-bottom: 0.2rem;
}

.content p,
.text-content p {
max-width: 35rem;
margin-bottom: 0.5rem;
}

button, select, input, textarea { font-family: inherit; }

/* Container */
@@ -775,15 +789,3 @@ button, select, input, textarea { font-family: inherit; }
.d-none {
display: none;
}

.text-content h2 {
font-size: 1.3rem;
font-weight: bold;
margin-top: 0.5rem;
margin-bottom: 0.2rem;
}

.text-content p {
max-width: 35rem;
margin-bottom: 0.5rem;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 2ea5fe1

Please sign in to comment.
You can’t perform that action at this time.