Skip to content

Commit 4bbbfca

Browse files
author
Luis Orta
committed
Adding logo, logo build, and moving code to index.html.ps1
1 parent c467df5 commit 4bbbfca

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

.github/workflows/static.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
fetch-depth: 0
3434
- name: Setup Pages
3535
uses: actions/configure-pages@main
36+
- name: Build SVG
37+
shell: pwsh
38+
run: ./CodersUnit.PSSVG.ps1
3639
- name: Build Pages
3740
shell: pwsh
3841
run: ./CodersUnite/build.ps1

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.html
22
archive.zip
3-
lastBuild.json
3+
lastBuild.json
4+
*.svg

Build/CodersUnite.PSSVG.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#requires -Module PSSVG
22

3-
$AssetsPath = $PSScriptRoot | Split-Path | Join-Path -ChildPath "Assets"
3+
$AssetsPath = $PSScriptRoot | Split-Path | Join-Path -ChildPath "CodersUnite\Assets"
44

55
if (-not (Test-Path $AssetsPath)) {
66
New-Item -ItemType Directory -Path $AssetsPath | Out-Null

CodersUnite/index.html.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
Set-Location $PSScriptRoot
22
$title = "Coders Unite!"
3+
@"
4+
<svg>
5+
$((Get-Content -Path .\Assets\CodersUnite.svg -Raw) -replace '<\?.+>')
6+
</svg>
7+
<a href="https://github.com/CodersUnite-org/CodersUnite">
8+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="foreground-stroke"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
9+
</a>
10+
"@
311
(ConvertFrom-Markdown -Path .\Content\About.md).html

CodersUnite/layout.ps1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pre, code {
2323
$OpenGraph
2424
$ImportMap
2525
<style>
26-
$style
26+
$style
2727
</style>
2828
$(
2929
@(
@@ -35,9 +35,6 @@ $style
3535
)
3636
</head>
3737
<body>
38-
<a href="https://github.com/CodersUnite-org/CodersUnite">
39-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="foreground-stroke"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
40-
</a>
4138
$($argsAndinput -join [Environment]::NewLine)
4239
<script>hljs.highlightAll();</script>
4340
</body>

0 commit comments

Comments
 (0)