From 250433e63b8b785c68ad3df175b262996d9d1599 Mon Sep 17 00:00:00 2001 From: Leo Shen Date: Sat, 6 May 2023 02:37:28 -0400 Subject: [PATCH] template: add live reload on status information --- assets/partials/color.sass | 2 + assets/partials/main.sass | 3 ++ content/project_table.md | 6 +++ deploy.sh | 1 + layouts/index.html | 67 ++++++++--------------------- layouts/page/project_table.html | 1 + layouts/partials/project_table.html | 51 ++++++++++++++++++++++ 7 files changed, 82 insertions(+), 49 deletions(-) create mode 100644 content/project_table.md create mode 100644 layouts/page/project_table.html create mode 100644 layouts/partials/project_table.html diff --git a/assets/partials/color.sass b/assets/partials/color.sass index 6a265fe..8ec930e 100644 --- a/assets/partials/color.sass +++ b/assets/partials/color.sass @@ -26,6 +26,8 @@ main .table-header th, td border-color: $blueLight + #refresh-indicator + color: $blue .syncing-badge color: white background-color: $blue diff --git a/assets/partials/main.sass b/assets/partials/main.sass index 4bbb85c..81ec6b9 100644 --- a/assets/partials/main.sass +++ b/assets/partials/main.sass @@ -182,6 +182,9 @@ main border-top: 0 border-bottom: 2px solid border-collapse: collapse + // #refresh-indicator + #refresh-indicator + transition: all .2s .summary font-weight: 500 .project-size diff --git a/content/project_table.md b/content/project_table.md new file mode 100644 index 0000000..ad3c699 --- /dev/null +++ b/content/project_table.md @@ -0,0 +1,6 @@ ++++ +# This is only a placeholder file to force Hugo to render projects_table.html +# Don't remove me +type = "page" +layout = "project_table" ++++ diff --git a/deploy.sh b/deploy.sh index 0d38d11..e41ef67 100755 --- a/deploy.sh +++ b/deploy.sh @@ -14,5 +14,6 @@ hugo > /dev/null # Copy to mirror root cp public/index.html /mirror/root/index-new.html +cp public/project_table/index.html /mirror/root/include/project_table.html cp public/include/* /mirror/root/include/ cp -r public/news /mirror/root/ diff --git a/layouts/index.html b/layouts/index.html index 30fec74..09461b9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -10,7 +10,9 @@