fix hashtags

This commit is contained in:
Cadey Ratio 2020-07-13 10:14:02 -04:00
parent 31ff80c62f
commit 3d77bf9776
1 changed files with 2 additions and 6 deletions

View File

@ -100,14 +100,10 @@ function share_on_mastodon() @{
localStorage['mastodon_instance'] = instance; localStorage['mastodon_instance'] = instance;
// Hashtags // Hashtags
var hashtags = "#blogpost"; var hashtags = "#art";
@if post.front_matter.series.is_some() {
hashtags += "#@post.front_matter.series.as_ref().unwrap()";
}
@if post.front_matter.tags.is_some() { @if post.front_matter.tags.is_some() {
hashtags += "@for tag in post.front_matter.tags.as_ref().unwrap() { #@tag }"; hashtags += "@for tag in post.front_matter.tags.as_ref().unwrap() { #@tag}";
} }
// Tagging users, such as offical accounts or the author of the post // Tagging users, such as offical accounts or the author of the post