Skip to content

Commit

Permalink
Fix twitter card withers
Browse files Browse the repository at this point in the history
  • Loading branch information
sake92 committed May 29, 2024
1 parent fea3d37 commit e1b21ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DEV.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

$VERSION="v0.28.0"
$VERSION="v0.29.1"
git tag -a $VERSION -m "Release $VERSION"
git push origin $VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -130,42 +130,42 @@ final class MetaSettings private (
def withTwitterCard(twitterCard: Option[String]): MetaSettings =
copy(twitterCard = twitterCard)

def withTwitterCard(twitterCard: String): MetaSettings = withArticleAuthor(
def withTwitterCard(twitterCard: String): MetaSettings = withTwitterCard(
Option(twitterCard)
)

def withTwitterSite(twitterSite: Option[String]): MetaSettings =
copy(twitterSite = twitterSite)

def withTwitterSite(twitterSite: String): MetaSettings = withArticleAuthor(
def withTwitterSite(twitterSite: String): MetaSettings = withTwitterSite(
Option(twitterSite)
)

def withTwitterTitle(twitterTitle: Option[String]): MetaSettings =
copy(twitterTitle = twitterTitle)

def withTwitterTitle(twitterTitle: String): MetaSettings = withArticleAuthor(
def withTwitterTitle(twitterTitle: String): MetaSettings = withTwitterTitle(
Option(twitterTitle)
)

def withTwitterDescription(twitterDescription: Option[String]): MetaSettings =
copy(twitterDescription = twitterDescription)

def withTwitterDescription(twitterDescription: String): MetaSettings = withArticleAuthor(
def withTwitterDescription(twitterDescription: String): MetaSettings = withTwitterDescription(
Option(twitterDescription)
)

def withTwitterImage(twitterImage: Option[String]): MetaSettings =
copy(twitterImage = twitterImage)

def withTwitterImage(twitterImage: String): MetaSettings = withArticleAuthor(
def withTwitterImage(twitterImage: String): MetaSettings = withTwitterImage(
Option(twitterImage)
)

def withTwitterImageAlt(twitterImageAlt: Option[String]): MetaSettings =
copy(twitterImageAlt = twitterImageAlt)

def withTwitterImageAlt(twitterImageAlt: String): MetaSettings = withArticleAuthor(
def withTwitterImageAlt(twitterImageAlt: String): MetaSettings = withTwitterImageAlt(
Option(twitterImageAlt)
)

Expand Down

0 comments on commit e1b21ca

Please sign in to comment.