From c198f7e1b06c78cb95c7db9f30459e6b5bce3f9d Mon Sep 17 00:00:00 2001 From: Fl_GUI Date: Sun, 26 Jan 2025 17:45:41 +0100 Subject: [PATCH] extend project details --- compose.yaml | 11 +++-------- examples/templates/yampl/main.html | 5 +++-- examples/toml/yampl.toml | 6 ++++-- static/style.css | 5 +++-- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/compose.yaml b/compose.yaml index 2b584ec..2fb2a45 100644 --- a/compose.yaml +++ b/compose.yaml @@ -9,13 +9,8 @@ services: ports: - "8080:8080" volumes: - - static:/app/static - - templates:/app/templates - - toml:/app/toml + - ./static:/app/static + - ./examples/templates/yampl:/app/templates + - ./examples/toml/:/app/toml command: /app/toml/yampl.toml - -volumes: - static: - templates: - toml: diff --git a/examples/templates/yampl/main.html b/examples/templates/yampl/main.html index d9559c5..83bc129 100644 --- a/examples/templates/yampl/main.html +++ b/examples/templates/yampl/main.html @@ -7,8 +7,9 @@
{{ with .Project }} -

{{ .projectname }}

-

{{ .projectdescription }}

+

{{ .name }}

+

{{ .description }}

+ git {{ end }}

backlog


diff --git a/examples/toml/yampl.toml b/examples/toml/yampl.toml index bb4bd89..da27d24 100644 --- a/examples/toml/yampl.toml +++ b/examples/toml/yampl.toml @@ -1,9 +1,11 @@ [project] -projectname = "yampl" -projectdescription = ''' +name = "yampl" +description = ''' A toml-to-html site generator for project management. You are looking at it right now! +The name was originally chosen as a combination of yaml and templates, but I switched to toml files. ''' +source="https://git.openfl.eu/?p=yampl.git" [[items]] name = "hello world" diff --git a/static/style.css b/static/style.css index 936cbf1..220232d 100644 --- a/static/style.css +++ b/static/style.css @@ -1,10 +1,11 @@ body { - background-color: white; display: flex; justify-content: center; font-family: monospace; background-color: blanchedalmond; + font-size: xxx-large; } + .column { max-width: 50%; } @@ -38,4 +39,4 @@ h2.centered { .grayscale { filter: grayscale(100%); -} \ No newline at end of file +} -- 2.47.1