Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homepage Blogpost #228

Merged
merged 1 commit into from May 3, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -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 */
@@ -766,15 +780,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.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.