Skip to content

Commit

Permalink
feat: 4bitcss image previews ( Fixes #83 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Oct 19, 2024
1 parent 13b3c41 commit 53ea12a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Build/4bitcss.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,14 @@ foreach ($jsonFile in $jsonFiles) {

# Create a preview file. All we need to change is the stylesheet.
$previewFilePath = Join-Path $ColorSchemePath "$colorSchemeFileName.md"
$colorSchemePreviewName = $colorSchemeName -replace '\s','_' -replace '\+','_plus' -replace '_$'
$imagePreviewUrl = "https://cdn.jsdelivr.net/gh/mbadolato/iTerm2-Color-Schemes@latest/screenshots/$colorSchemePreviewName.png"
@"
---
stylesheet: /$colorSchemeFileName/$colorSchemeFileName.css
colorSchemeName: $colorSchemeName
colorSchemeFileName: $colorSchemeFileName
image: /$colorSchemeFileName/$colorSchemeFileName.png
image: $imagePreviewUrl
description: $colorSchemeName color scheme
permalink: /$colorSchemeFileName/
---
Expand Down

0 comments on commit 53ea12a

Please sign in to comment.