Skip to content

Commit

Permalink
Merge pull request #65 from felipelincoln/bugfix/nil-fullname
Browse files Browse the repository at this point in the history
Add default value to blog fullname
  • Loading branch information
felipelincoln authored Jun 5, 2021
2 parents e23a37e + 5634675 commit e478ed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/lib/web/live/article_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule Web.ArticleLive do
article = Manage.load_article!(username, id)

meta = %{@meta | title: "#{article.title} – Branchpage"}
name = article.blog.fullname
name = article.blog.fullname || "Go to your blog"
username = article.blog.username

socket =
Expand Down
2 changes: 1 addition & 1 deletion apps/web/lib/web/live/home_live.html.leex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h1 class="font-black text-white text-4xl">Start your open source blog</h1>

<form class="my-8 mb-16" phx-change="go-preview">
<input name="url" class="input p-4 rounded-xl" type="text" placeholder="Paste your github article's url">
<input name="url" class="input p-4 rounded-xl" type="text" placeholder="Paste your github article's url" spellcheck="false" autocomplete="off">
</form>

<div class="flex justify-between mb-4 text-white text-lg">
Expand Down

0 comments on commit e478ed9

Please sign in to comment.