diff --git a/README.md b/README.md
index 1bb6bed..9dc3a4e 100644
--- a/README.md
+++ b/README.md
@@ -34,16 +34,17 @@ You might need to fix the version when publish your website. For example:
```html
-
+
-
+
-
+
-
+
```
You can also install giscus in your `wwwroot` folder with npm or other Node.js package manager, and include it like above.
@@ -66,12 +67,13 @@ Then add this component to your `.razor` files where you want the comments to ap
InputPosition="InputPosition.Bottom"
Theme="light"
Lang="en"
- LazyLoading="true" />
+ Loading="Loading.Lazy" />
```
Or you can just add `@using GiscusBlazor` to `_Imports.razor`.
-Most values of the `string` parameters can be found from the [giscus official site](https://giscus.app/).
+For most of the `string`-typed parameters, you can use the values from the [giscus official site](https://giscus.app/)
+directly.
## Samples
@@ -79,7 +81,13 @@ You can get some sample apps from the [samples](samples) directory, in both Blaz
## Changelog
+### v2.3.0
+
+- Add host support.
+- Rearrange some parameters.
+
### v2.2.1
- Add support for lazy-loading (see [giscus official site](https://giscus.app/)).
-- Removed TFM for .NET 5.0, which is now [out of support](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core#lifecycle).
+- Removed TFM for .NET 5.0, which is
+ now [out of support](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core#lifecycle).
diff --git a/samples/BlazorServerDemo/Pages/Counter.razor b/samples/BlazorServerDemo/Pages/Counter.razor
index 62a6566..a24d11f 100644
--- a/samples/BlazorServerDemo/Pages/Counter.razor
+++ b/samples/BlazorServerDemo/Pages/Counter.razor
@@ -16,10 +16,10 @@
Mapping="Mapping.PathName"
ReactionsEnabled="true"
EmitMetadata="false"
- InputPosition="InputPosition.Bottom"
+ InputPosition="InputPosition.Top"
Theme="light"
Lang="en"
- LazyLoading="true" />
+ Loading="Loading.Lazy"/>
@code {
private int currentCount = 0;
@@ -28,4 +28,5 @@
{
currentCount++;
}
+
}
diff --git a/samples/BlazorServerDemo/Pages/FetchData.razor b/samples/BlazorServerDemo/Pages/FetchData.razor
index c2e44b1..8e325cd 100644
--- a/samples/BlazorServerDemo/Pages/FetchData.razor
+++ b/samples/BlazorServerDemo/Pages/FetchData.razor
@@ -48,7 +48,7 @@ else
CategoryId="DIC_kwDOG5OPrc4CBTDa"
Mapping="Mapping.Specific"
ReactionsEnabled="true"
- EmitMetadata="false"
+ EmitMetadata="true"
InputPosition="InputPosition.Bottom"
Theme="light"
Lang="en"/>
@@ -60,4 +60,5 @@ else
{
forecasts = await ForecastService.GetForecastAsync(DateTime.Now);
}
+
}
diff --git a/samples/BlazorWebAssemblyDemo/Pages/Counter.razor b/samples/BlazorWebAssemblyDemo/Pages/Counter.razor
index fd1bc60..a24d11f 100644
--- a/samples/BlazorWebAssemblyDemo/Pages/Counter.razor
+++ b/samples/BlazorWebAssemblyDemo/Pages/Counter.razor
@@ -16,10 +16,10 @@
Mapping="Mapping.PathName"
ReactionsEnabled="true"
EmitMetadata="false"
- InputPosition="InputPosition.Bottom"
+ InputPosition="InputPosition.Top"
Theme="light"
Lang="en"
- LazyLoading="true" />
+ Loading="Loading.Lazy"/>
@code {
private int currentCount = 0;
@@ -29,4 +29,4 @@
currentCount++;
}
-}
\ No newline at end of file
+}
diff --git a/samples/BlazorWebAssemblyDemo/Pages/FetchData.razor b/samples/BlazorWebAssemblyDemo/Pages/FetchData.razor
index 5775912..1289cf3 100644
--- a/samples/BlazorWebAssemblyDemo/Pages/FetchData.razor
+++ b/samples/BlazorWebAssemblyDemo/Pages/FetchData.razor
@@ -1,6 +1,6 @@
@page "/fetchdata"
-@inject HttpClient Http
@using GiscusBlazor
+@inject HttpClient Http
Loading...
++ Loading... +
} else {Date | -Temp. (C) | -Temp. (F) | -Summary | -
---|---|---|---|
Date | +Temp. (C) | +Temp. (F) | +Summary | +
@forecast.Date.ToShortDateString() | -@forecast.TemperatureC | -@forecast.TemperatureF | -@forecast.Summary | -
@forecast.Date.ToShortDateString() | +@forecast.TemperatureC | +@forecast.TemperatureF | +@forecast.Summary | +