From 8ec2a2bf97fb8b898d895d956550475f49079631 Mon Sep 17 00:00:00 2001 From: iBug Date: Fri, 28 Jun 2024 05:14:06 +0800 Subject: [PATCH] Add a status page Copied from https://github.com/iBug/iBug-source/blob/3c594e246d5a0ac053fcf350f12a9a4d2a3d587c/_home/status.html --- pages/_pages/status.html | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 pages/_pages/status.html diff --git a/pages/_pages/status.html b/pages/_pages/status.html new file mode 100644 index 0000000000..756cce1bb8 --- /dev/null +++ b/pages/_pages/status.html @@ -0,0 +1,60 @@ +--- +title: Status +permalink: /status/ +author_profile: false +comments: false +share: false +noindex: true +--- + +
+
Build time
+
+ +
Current time
+
Loading...
+ +
Source Git revision
+
+ + {{ site.git.last_commit.short_sha }} + {{ site.git.last_commit.author_name | xml_escape }}: + {{ site.git.last_commit.subject | xml_escape }} + +
+ +
+ Continuous Integration + + + GitHub Actions +
+ {% if site.env.TRAVIS_BUILD_ID %} +
This site is deployed from Travis CI build {{ site.env.TRAVIS_BUILD_NUMBER }}{% if site.env.TRAVIS_EVENT_TYPE == "cron" %} ⏰{% endif %}
+ {% elsif site.env.CIRCLE_BUILD_NUM %} +
This site is deployed from CircleCI build {{ site.env.CIRCLE_BUILD_NUM }}{% if site.env.CRON %} ⏰{% endif %}
+ {% elsif site.env.GITHUB_ACTION %} +
This site is deployed from GitHub Actions build {{ site.env.GITHUB_RUN_NUMBER }}
+ {% elsif site.env.NETLIFY %} +
This site is deployed from Netlify
+ {% else %} +
This site is not deployed from Continuous Integration.
+ {% endif %} +
+ + + +