Skip to content

Commit

Permalink
Merge branch 'master' into feature/html_to_markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoRepo authored Nov 26, 2024
2 parents 876e06e + da6049f commit 63985eb
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/Comments/Disqus.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ In `appsettings.json` change following
| Property | Type | Description |
| --------- | ------ | ------------------------------------------------------------------------------------------- |
| Disqus | node | Enables the comment section via disqus. If left empty the comment secion will not be shown. |
| Shortname | string | |
| Shortname | string | The shortname provided by the disqus homepage |
8 changes: 4 additions & 4 deletions docs/Comments/Giscus.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ In `appsettings.json` change following
| Property | Type | Description |
| ------------ | ------ | ------------------------------------------------------------------------------------------- |
| Giscus | node | Enables the comment section via giscus. If left empty the comment secion will not be shown. |
| Repository | string | path of you github repository, example `linkdotnet/Blog` |
| RepositoryId | string | |
| Category | string | |
| CategoryId | string | |
| Repository | string | Path of you github repository, example `linkdotnet/Blog` |
| RepositoryId | string | The id provided by giscus (`data-repository-id`) |
| Category | string | The "Category" under which the comments are histed (like "Q&A", "General", "Ideas", ...) |
| CategoryId | string | The id provided by giscus (`data-category-id`) |
16 changes: 8 additions & 8 deletions docs/Donations/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ Enables the usage of [Patreon](https://www.patreon.com). Only pass the user name
### Configuration
```json
"SupportMe": {
"KofiToken": "ABC123",
"GithubSponsorName": "your-tag-here",
"PatreonName": "your-tag-here",
"ShowUnderBlogPost": true,
"ShowUnderIntroduction": true,
"ShowInFooter": true,
"ShowSupportMePage": true,
"SupportMePageDescription": "Buy my book here: [My Blazor Book](https://google.com) or please contribute to my open-source project here: [My Awesome Repo](https://github.com) . This can be **markdown**."
"KofiToken": "ABC123",
"GithubSponsorName": "your-tag-here",
"PatreonName": "your-tag-here",
"ShowUnderBlogPost": true,
"ShowUnderIntroduction": true,
"ShowInFooter": true,
"ShowSupportMePage": true,
"SupportMePageDescription": "Buy my book here: [My Blazor Book](https://google.com) or please contribute to my open-source project here: [My Awesome Repo](https://github.com) . This can be **markdown**."
}
```

Expand Down
17 changes: 16 additions & 1 deletion docs/Features/AdvancedFeatures.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
## Advanced Features

- [Advanced Features](#advanced-features)
- [Shortcodes](#shortcodes)
- [Creating a shortcode](#creating-a-shortcode)
- [Using a shortcode](#using-a-shortcode)
- [Limitations](#limitations)
- [Critical CSS Generator](#critical-css-generator)
- [How it works](#how-it-works)
- [Options](#options)
- [Output Modes](#output-modes)
- [Console Mode](#console-mode)
- [File Mode](#file-mode)
- [Layout Mode](#layout-mode)
- [Examples](#examples)
- [Notes](#notes)

This page lists some of the more advanced or less-used features of the blog software.

## Shortcodes
Expand Down Expand Up @@ -62,7 +77,7 @@ The output of the "critical.css" should be copied into the head of the [`_Layout

## Output Modes

### #Console Mode
### Console Mode
Outputs the critical CSS directly to the console:

```sh
Expand Down
3 changes: 3 additions & 0 deletions docs/SEO/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ This blog also offers an RSS feed ([RSS 2.0 specification](https://validator.w3.

This blog offers to generate a [sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap) that lists all blog posts, the archive and pages of the blog. A sitemap can be generated in the Admin tab of the navigation bar under "Sitemap". This allows, especially new sites that don't have many inbound links, to be indexed easier by search engines.

## JSON LD
This blog supports a JSON-LD for structured data. The current support is limited / rudimentary. Information like `Headline` (the title of the blog post), `Author`, `PublishDated` and `PreviewImage` are present.

## Critical CSS
The blog offers an integrated tool, that generates critical CSS for the blog. Read more about it in the ["*Advanced Features*"](../Features/AdvancedFeatures.md) section.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@using System.Security.Cryptography
<div class="m-auto text-center">
<h1 class="fs-1">404 - o((⊙﹏⊙))o</h1>
<br />
Expand Down Expand Up @@ -84,7 +85,7 @@
}

remainingGuesses = maxGuesses;
targetNumber = Random.Shared.Next(1, maxNumber + 1);
targetNumber = RandomNumberGenerator.GetInt32(1, maxNumber + 1);
}

private void CheckGuess()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ public void ShouldShowErrorPageWhenBlogPostNotFound()

var cut = ctx.Render<ShowBlogPostPage>();

cut.FindAll(".blogpost-content").ShouldBeEmpty();
cut.FindAll("#no-blog-post-error").ShouldHaveSingleItem();
cut.HasComponent<ObjectNotFound>().ShouldBeTrue();
}

[Fact]
Expand Down

0 comments on commit 63985eb

Please sign in to comment.