Feat/add simple icons support#235
Open
deimosfr wants to merge 2 commits into
Open
Conversation
Fix static images with classical markdown notation were not rendered
👷 Deploy request for hugo-lotusdocs pending review.Visit the deploys page to approve it
|
Contributor
|
If this pull request (PR) is merged, the Hugo front matter documentation will require updates to reflect the new icon handling features. Adding Icons to Posts or Index filesNote If the To include Simple Icons in your Hugo project, add the following fields to the front matter of your content files (such as Example for a Post with Simple Icons---
title: "Post with Simple Icons"
description: "Incorporate Simple Icons into your post.md"
url: ""
aliases: ""
icon: "git"
icontype: "simple"
---Example for an Index Page with Simple Icons---
title: "Index with Simple Icons"
description: "Incorporate Simple Icons into your _index.md file"
url: ""
icon: "git"
icontype: "simple"
weight: 100
---If you prefer Google Icons, you can easily switch by modifying the front matter like this: Example for a Post with Google IconsTo use Google Icons, adjust the front matter as shown below: ---
title: "Post with Google Icons"
description: "Incorporate Google Icons into your post.md"
url: ""
aliases: ""
icon: "Commit"
---Example for an Index Page with Google Icons---
title: "Index with Google Icons"
description: "Incorporate Google Icons into your _index.md file"
url: ""
icon: "Commit"
weight: 100
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Adding simple icons to lotusdocs
Below you'll find a checklist. For each item on the list, check one option and delete the other.
Note 1: if you want to see a result with material and simple icons, you can look at: https://wiki.deimos.fr
Note 2: some parts could be factorized but as I don't know in which direction this project wants to evolves, I kept it simple
Dark mode