-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will make it easier for visitors who are interested in the source code of the project to find the GitHub repository.
- Loading branch information
Showing
7 changed files
with
81 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- | ||
Display either of two images depending on the visitor's browser theme. | ||
Parameters: | ||
- `dark-theme-image`: The path of the image to display with dark theme. | ||
- `light-theme-image`: The path of the image to display with light theme. | ||
- `style`: Style for the image. | ||
--> | ||
|
||
<picture> | ||
<!-- See: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme --> | ||
<source | ||
media="(prefers-color-scheme: dark)" | ||
srcset="{{ .Scratch.Get "dark-theme-image" }}" | ||
/> | ||
<img | ||
alt="" | ||
src="{{ .Scratch.Get "light-theme-image" }}" | ||
style="{{ (.Scratch.Get "style") | safeCSS }}" | ||
/> | ||
</picture> |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Display the GitHub | ||
Display the GitHub logo. | ||
Parameters: | ||
- `style`: Style for the image. | ||
--> | ||
|
||
{{ .Scratch.Set "dark-theme-image" "/github-mark-white.svg" }} | ||
{{ .Scratch.Set "light-theme-image" "/github-mark.svg" }} | ||
|
||
{{- partial "dark-light-img.html" . }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# **inoplatforms** Site Static Assets | ||
|
||
See: https://gohugo.io/content-management/static-files/ | ||
|
||
## `github-mark.svg`, `github-mark-white.svg` | ||
|
||
Source: https://github.com/logos | ||
|
||
## `logo.svg` | ||
|
||
The file in this folder is the source. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.