diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2bec245a..b28a7b41 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -51,6 +51,7 @@ jobs: env: SITE_ROOT: "/fl-darkstat/" FLDARKSTAT_FREELANCER_FOLDER: ${{ github.workspace }}/fl-data + FLDARKSTAT_HEADING: "Dev server for darkstat | Github" - uses: actions/upload-pages-artifact@v1 with: diff --git a/.vscode/settings.json b/.vscode/settings.json index e65165a9..52985d18 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,5 +12,6 @@ "FLDARKSTAT_FREELANCER_FOLDER": "/home/naa/windows10shared/Discovery/DiscoveryFreelancer", "DARKSTAT_LOG_LEVEL": "DEBUG", "UTILS_LOG_LEVEL": "DEBUG", + "FLDARKSTAT_HEADING": "Dev server for darkstat | Github", } } \ No newline at end of file diff --git a/darkstat/builder/builder.go b/darkstat/builder/builder.go index d1d12419..1a3a9d21 100644 --- a/darkstat/builder/builder.go +++ b/darkstat/builder/builder.go @@ -97,6 +97,7 @@ func (b *Builder) BuildAll() *Filesystem { SiteRoot: siteRoot, StaticRoot: siteRoot + staticPrefix, OppositeThemeRoot: siteRoot + "dark/", + Heading: os.Getenv("FLDARKSTAT_HEADING"), }, filesystem) // Implement dark theme later diff --git a/darkstat/common/types/types.go b/darkstat/common/types/types.go index e7b0a73e..66e3cc4f 100644 --- a/darkstat/common/types/types.go +++ b/darkstat/common/types/types.go @@ -26,6 +26,7 @@ type GlobalParams struct { StaticRoot string OppositeThemeRoot string Pagepath string + Heading string } func GetCtx(ctx context.Context) GlobalParams { diff --git a/darkstat/front/shared.templ b/darkstat/front/shared.templ index da52294e..cfc513e2 100644 --- a/darkstat/front/shared.templ +++ b/darkstat/front/shared.templ @@ -77,19 +77,49 @@ templ TabContent() { } +templ Heading() { + +