Skip to content

Commit

Permalink
Merged PR 79: feat: Added blogarama site verification as meta tag.
Browse files Browse the repository at this point in the history
feat: Added blogarama site verification as meta tag.
  • Loading branch information
saigkill committed Sep 30, 2024
2 parents 1465784 + e168c7c commit d1cc2af
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 25 deletions.
53 changes: 28 additions & 25 deletions src/Moonglade.Configuration/AdvancedSettingsPartial.cs
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;

namespace Moonglade.Configuration;

public partial class AdvancedSettings : IBlogSettings
{
[Display(Name = "Enable Syndication")]
public bool EnableSyndication { get; set; } = true;
[Display(Name = "Enable Syndication")]
public bool EnableSyndication { get; set; } = true;

[Display(Name = "Your Netvibes Url")]
public string NetvibesUrl { get; set; }
[Display(Name = "Your Netvibes Url")]
public string NetvibesUrl { get; set; }

[Display(Name = "Your Blogarama Url")]
public string BlogaramaUrl { get; set; }
[Display(Name = "Your Blogarama Url")]
public string BlogaramaUrl { get; set; }

[Display(Name = "Enable Bloggerei")]
public bool BloggereiEnabled { get; set; }
[Display(Name = "BlogaramaID")]
public string BlogaramaID { get; set; }

[Display(Name = "Enable Bloggingfusion")]
public bool BloggingfusionEnabled { get; set; }
[Display(Name = "Enable Bloggerei")]
public bool BloggereiEnabled { get; set; }

[Display(Name = "Enable Bloggeramt")]
public bool BloggeramtEnabled { get; set; }
[Display(Name = "Enable Bloggingfusion")]
public bool BloggingfusionEnabled { get; set; }

[Display(Name = "Enable Topblogs")]
public bool TopblogsEnabled { get; set; }
[Display(Name = "Enable Bloggeramt")]
public bool BloggeramtEnabled { get; set; }

[Display(Name = "Topblogs TrackerID")]
public string TopblogsTrackerID { get; set; }
[Display(Name = "Enable Topblogs")]
public bool TopblogsEnabled { get; set; }

[Display(Name = "Ontoplist Url")]
public string OntoplistUrl { get; set; }
[Display(Name = "Topblogs TrackerID")]
public string TopblogsTrackerID { get; set; }

[Display(Name = "Ontoplist ID")]
public string OntoplistID { get; set; }
[Display(Name = "Ontoplist Url")]
public string OntoplistUrl { get; set; }

[Display(Name = "Your Add to Yahoo Url. e.g. https://yourdomain/rss")]
public string YahooUrl { get; set; }
[Display(Name = "Ontoplist ID")]
public string OntoplistID { get; set; }

[Display(Name = "Bloglovin Url")]
public string BloglovinUrl { get; set; }
[Display(Name = "Your Add to Yahoo Url. e.g. https://yourdomain/rss")]
public string YahooUrl { get; set; }

[Display(Name = "Bloglovin Url")]
public string BloglovinUrl { get; set; }
}
11 changes: 11 additions & 0 deletions src/Moonglade.Web/Pages/Settings/Advanced.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,17 @@
<input asp-for="@settings.BlogaramaUrl" class="form-control" />
</div>
</div>
<div class="row g-3 align-items-center settings-entry mt-1 mb-4">
<div class="col-auto">
<i class="bi bi-book settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@settings.BlogaramaID"></label>
</div>
<div class="col-md-5 text-end">
<input asp-for="@settings.BlogaramaID" class="form-control" />
</div>
</div>
<div class="row g-3 align-items-center settings-entry mt-1 mb-4">
<div class="col-auto">
<i class="bi bi-book settings-entry-icon"></i>
Expand Down
4 changes: 4 additions & 0 deletions src/Moonglade.Web/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
{
<meta name='wot-verification' content='@BlogConfig.GeneralSettings.WorldOfTrustVerificationCode' />
}
@if (BlogConfig.AdvancedSettings.BlogaramaID != null)
{
<meta name="blogarama-site-verification" content="@BlogConfig.AdvancedSettings.BlogaramaID" />
}

@await RenderSectionAsync("meta", false)
@if (IsSectionDefined("opengraph"))
Expand Down

0 comments on commit d1cc2af

Please sign in to comment.