Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Your initial code looks correct, bar an incorrect bracket placement. We can rewrite it as:

@(
    Outputs.FromPipeline(
        nameof(Content)
    )
    .Flatten()
    .FilterSources($"posts/*")
)
.Count()

Moving that penultimate closing bracket to after the count call should resolve the issue, like so:

@(Outputs.FromPipeline(nameof(Content)).Flatten().FilterSources($"posts/*").Count())

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexHedley
Comment options

Answer selected by AlexHedley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants