2 | @foreach (var group in Groups)
3 | {
4 | var anchorName = group.GetAnchorName(this.ParentGroupAnchor);
5 |
6 |
7 |
8 |
12 |
13 | @if (!string.IsNullOrEmpty(group.ParagraphsHtml))
14 | {
15 |
16 | @((MarkupString)group.ParagraphsHtml)
17 |
18 | }
19 |
20 |
21 | @foreach (var resource in group.Resources.Where(res => res != null))
22 | {
23 |
24 |
29 |
30 | @if (resource.GitHubStarsUrl != "")
31 | {
32 |

33 | }
34 | @if (resource.LastCommitUrl != "")
35 | {
36 |

37 | }
38 |
39 |
40 | @((MarkupString)resource.DescriptionHtml)
41 |
42 |
43 | }
44 |
45 |
46 | @if (group.SubGroups.Any())
47 | {
48 |
49 |
50 |
51 | }
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/AwesomeBlazorBrowser/Components/Contents.razor.cs:
--------------------------------------------------------------------------------
1 | using AwesomeBlazor.Models;
2 | using Microsoft.AspNetCore.Components;
3 |
4 | namespace AwesomeBlazorBrowser.Components;
5 |
6 | public partial class Contents
7 | {
8 | [Inject] public HelperScriptService HelperScript { get; init; } = null!;
9 |
10 | [Parameter]
11 | public string ParentGroupAnchor { get; set; } = "";
12 |
13 | [Parameter]
14 | public IEnumerable