Changes required for new version of Statiq

This commit is contained in:
Dave Glick 2020-08-31 09:11:00 -04:00
Родитель 8978065c49
Коммит 6452eba710
6 изменённых файлов: 17 добавлений и 10 удалений

Просмотреть файл

@ -10,7 +10,7 @@
<ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.11.23" />
<PackageReference Include="Statiq.Web" Version="1.0.0-beta.3" />
<PackageReference Include="Statiq.Web" Version="1.0.0-beta.5" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />
</ItemGroup>

Просмотреть файл

@ -25,6 +25,7 @@ namespace DotnetFoundationWeb
return await Bootstrapper.Factory
.CreateWeb(args)
.AddSetting(WebKeys.InputFiles, new [] { "**/{!_,}*", "_redirects" })
.AddSetting(Keys.Host, "dotnetfoundation.org")
.AddSetting(Keys.LinksUseHttps, true)
.AddSetting(WebKeys.MirrorResources, true)

Просмотреть файл

@ -8,7 +8,14 @@ permalink: about/election/candidates
<div class="page-section_row row">
<div class="col-12">
@if (Inputs.FilterSources("about/election/campaign-2020/*").Count() == 0)
@{
IDocument[] candidates = Outputs
.FromPipeline(nameof(Statiq.Web.Pipelines.Content))
.FilterSources("about/election/campaign-2020/*.md")
.OrderBy(x => x.GetTitle())
.ToArray();
}
@if (candidates.Length == 0)
{
<h3>We're just getting started!</h3>
@ -27,12 +34,7 @@ else
<p>Check out the <a href="about/election/campaign">details</a> on how the process works.</p>
<section class="card-container">
@Html.Partial(
"../../_partials/_candidate-card.cshtml",
Outputs
.FromPipeline(nameof(Statiq.Web.Pipelines.Content))
.FilterSources("about/election/campaign-2020/*.md")
.OrderBy(x => x.GetTitle()))
@Html.Partial("../../_partials/_candidate-card.cshtml", candidates)
</section>
}

Просмотреть файл

@ -4,4 +4,4 @@ Chairperson: Sara Chipps
Image: /assets/members/sara-chipps.png
Meets: This group meets monthly on the 3rd Tuesday of the Month at 3p ET.
Repository: https://github.com/dotnet-foundation/wg-outreach
Order: 3
Order: 4

Просмотреть файл

@ -1,4 +1,6 @@
{
ContentType: Asset
---
{
"ShouldOutput": true,
"name": "App",
"icons": [

Просмотреть файл

@ -1,3 +1,5 @@
ContentType: Asset
---
{
"ShouldOutput": true,
"routes": [