Skip to content

Commit

Permalink
Override settings and footer files from CleanBlog
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoo092 committed Jul 10, 2023
1 parent f70d66b commit 04613bb
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
32 changes: 32 additions & 0 deletions input/_footer.cshtml
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>
26 changes: 26 additions & 0 deletions settings.yml
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

0 comments on commit 04613bb

Please sign in to comment.