Skip to content

Commit

Permalink
Add option to set custom site title
Browse files Browse the repository at this point in the history
  • Loading branch information
iszulcdeepsense committed Dec 22, 2022
1 parent 68515d9 commit e67df88
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ It's a language wrapper converting your code compatible with HUGO standards to a
by uploading the zipped plugin file.

## Usage
You can deploy sample Go job by running:
You can deploy sample HUGO job by running:
```bash
racetrack deploy sample-hugo-page <RACETRACK_URL>
racetrack deploy sample
```

See the [example](./sample).
File renamed without changes.
3 changes: 3 additions & 0 deletions sample/fatman.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ lang: hugo:latest
git:
remote: https://github.com/TheRacetrack/plugin-hugo-job-type
directory: sample-hugo-site

wrapper_properties:
site_title: 'Hub of the Internet'
4 changes: 4 additions & 0 deletions src/fatman-2.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM {{ base_image }}

{% if manifest.wrapper_properties and manifest.wrapper_properties['site_title'] %}
RUN sed -i '/title =/s/= .*/= "{{ manifest.wrapper_properties['site_title'] }}"/' /src/hugo_site/config.toml
{% endif %}

COPY . /src/hugo_site/
RUN chmod -R a+rw /src/hugo_site/
2 changes: 1 addition & 1 deletion src/hugo_site/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
baseURL = '/'
languageCode = 'en-us'
title = 'My New Hugo Site'
title = 'Hugo Site'
theme = "ananke"
relativeURLs = true

0 comments on commit e67df88

Please sign in to comment.