Wyamio / Wyam

A modular static content and static site generator.
MIT License
141 stars 29 forks source link

More pipeline samples for Integrating Wyam Into An ASP.NET Site? #5

Open codeease1 opened 4 years ago

codeease1 commented 4 years ago

I am learning “Integrating Wyam Into An ASP.NET MVS Site” from this page. There are "Posts" and "Index" pipelines there and they are working well. However, I don't know how to add the following pipelines:

1: Generate a Tags (with links) page; 2: Generate an Archive (with links) page; 3: Generate tags with links for individual post;

The above three are actually in the current blog recipe. but I don't know how to have them if integrating Wyam into ASP.NET site?

Thanks!

codeease1 commented 4 years ago

I am trying to use the code from this page:

` @{
var DocumentsByTag = Documents .ContainsKey("Published") .ToLookup("Tags"); }

// ...

@{ foreach (var tagDocuments in DocumentsByTag.OrderBy(x => x.Key)) { // ... } } `

But seems the 'DocumentsByTag' only contains the 1st tag from each post? (I am using Wyam 2.2.9). How to get all tags (without using Blog or Doc recipe) .html files?

daveaglick commented 4 years ago

FYI - the original Wyam project is being moved to statiqdev to continue work there as Statiq Web (the successor to Wyam and the Wyam blog recipe). Since this issue relates specifically to Wyam, I've transfered it to a new replacement project for legacy Wyam issues.

(This is an automated message)