Skip to content

Commit d468cd0

Browse files
Closes #11
1 parent 3e74c9a commit d468cd0

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ See the [editor guide](docs/editor-guide.md) for more information.
2222

2323
Start by installing NuGet package (use [Optimizely NuGet](https://nuget.optimizely.com/)):
2424

25-
dotnet add package Geta.Optimizely.Tags
25+
```
26+
dotnet add package Geta.Optimizely.Tags
27+
```
2628

2729
Geta Tags library uses [tag-it](https://github.com/aehlke/tag-it) jQuery UI plugin for selecting tags.
2830
To add Tags as a new property to your page types, you need to use the UIHint attribute like in this example:
@@ -52,7 +54,16 @@ Then, call `UseGetaTags` in the `Configure` method:
5254
app.UseGetaTags();
5355
```
5456

55-
Use ITagEngine to query for data:
57+
Also, you have to add Razor pages routing support.
58+
59+
```csharp
60+
app.UseEndpoints(endpoints =>
61+
{
62+
endpoints.MapRazorPages();
63+
});
64+
```
65+
66+
Use `ITagEngine` to query for data:
5667

5768
```csharp
5869
IEnumerable<ContentData> GetContentByTag(string tagName);

0 commit comments

Comments
 (0)