Skip to content

Commit

Permalink
Merge pull request #1 from daveaglick/master
Browse files Browse the repository at this point in the history
Getting it working
  • Loading branch information
HowardvanRooijen authored Mar 27, 2019
2 parents 05f896a + 127ad7a commit 9ebb505
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -330,5 +330,5 @@ ASALocalRun/
.mfractor/

# Ignore the Wyam files
output/*
Wyam/output/*
config.wyam.*
32 changes: 16 additions & 16 deletions Wyam/config.wyam
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#n Wyam.Razor

#a "..\Solutions\Endjin.AzureWeekly.Wyam\bin\Debug\netstandard2.0\Endjin.AzureWeekly.WyamModules.dll"

#theme AzureWeekly

// Customize your settings and add new ones here
Settings[Keys.Host] = "AzureWeekly.info";

string newscollectionFilePath = @"..\Artefacts\NewsletterCollections\168.json";

Pipelines.Add(
"Newsletter",
NewsTopicModule(newscollectionFilePath),
Razor(),
WriteFiles());
#n Wyam.Razor
#a "..\Solutions\Endjin.AzureWeekly.Wyam\bin\Debug\netstandard2.0\Endjin.AzureWeekly.WyamModules.dll"
#theme AzureWeekly
// Customize your settings and add new ones here
Settings[Keys.Host] = "AzureWeekly.info";
string newscollectionFilePath = @"..\Artefacts\NewsletterCollections\168.json";
Pipelines.Add(
"Newsletter",
NewsTopicModule(newscollectionFilePath),
Razor().WithLayout("/_Index.cshtml"),
WriteFiles((doc, ctx) => doc.Get<DateTime>("NewsletterFrom").ToString("yyyyMMdd") + ".html"));
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@using Endjin.AzureWeekly.WyamModules;

@Html.Raw(Model.Get<Newsletter>("NewsletterContent").IssueNumber + ": " + Model.Get("NewsletterTo") + " - " + Model.Get("NewsletterFrom"))
@using Endjin.AzureWeekly.WyamModules;

@Html.Raw(Model.Get<Newsletter>("NewsletterContent").IssueNumber + ": " + Model.Get("NewsletterTo") + " - " + Model.Get("NewsletterFrom"))

@RenderBody()

0 comments on commit 9ebb505

Please sign in to comment.