-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override settings and footer files from CleanBlog
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<footer> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12 text-center"> | ||
@if (Document.ContainsKey("Canonical")) | ||
{ | ||
<p class="text-center small text-muted">Originally published at <a href='@Document.GetString("Canonical")'>@Document.GetString("Canonical")</a>.</p> | ||
<br /> | ||
} | ||
@Html.Partial("_copyright") | ||
<ul class="list-inline text-center small"> | ||
@{ | ||
IDocument rssFeed = Outputs["**/*.rss"].FirstOrDefault(); | ||
IDocument atomFeed = Outputs["**/*.atom"].FirstOrDefault(); | ||
} | ||
@if (rssFeed != null) { | ||
<li class="list-inline-item"> | ||
<a href="@Context.GetLink(rssFeed)"><i class="fa fa-rss"></i> RSS Feed</a> | ||
</li> | ||
} | ||
@if (atomFeed != null) { | ||
<li class="list-inline-item"> | ||
<a href="@Context.GetLink(atomFeed)"><i class="fa fa-rss"></i> Atom Feed</a> | ||
</li> | ||
} | ||
</ul> | ||
<br /> | ||
<div class="font-weight-bold small">Generated with <a href="https://statiq.dev">Statiq</a> using the <a href="https://github.com/statiqdev/CleanBlog">CleanBlog theme</a>.</div> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
MinimumStatiqWebVersion-CleanBlog: "1.0.0-beta.36" | ||
|
||
# Hosting settings | ||
Host: jcoo092.github.io # Host name - This example is for GitHub pages | ||
# Host: localhost:5080 | ||
LinksUseHttps: true # Whether to generate HTTPS links in archives etc. - usually true, of course | ||
|
||
SiteTitle: James Cooper, PhD | ||
SiteDescription: A small site acting as a blog host and online CV | ||
PageTitle: | | ||
=> | ||
{ | ||
string siteTitle = Context.GetString("SiteTitle"); | ||
string title = GetString("Title"); | ||
return string.IsNullOrWhiteSpace(siteTitle) ? title : (string.IsNullOrWhiteSpace(title) ? siteTitle : $"{siteTitle} - {title}"); | ||
} | ||
Copyright: => $"Copyright © James Cooper {DateTime.Now.Year}. To the maximum extent possible, permission is explicitly denied for using the content of this site to train machine learning models." | ||
PostSources: posts/**/* | ||
IsPost: => Context.Outputs.FilterSources(Context.GetString("PostSources")).ContainsById(Document) | ||
PageSources: pages/**/* | ||
IsPage: => Context.Outputs.FilterSources(Context.GetString("PageSources")).ContainsById(Document) | ||
Layout: /_layout.cshtml | ||
# Blog settings | ||
DateTimeInputCulture: "dd-MM-yyyy" # This determines the expected format for Published dates in posts - Empty string means invariant culture (yyyy-MM-dd format) | ||
DateTimeDisplayCulture: en-NZ # This determines the format for displayed dates, e.g. in post headers and archive pages | ||
GenerateSearchIndex: true # Setting this to false disables both the search box in navigation bar and the search page |