From 919fb3abc550cf4daa24efc6f5c18c2960c83afb Mon Sep 17 00:00:00 2001
From: Chris Coley <chris@codingallnight.com>
Date: Sun, 23 Apr 2023 19:07:30 -0700
Subject: [PATCH] Add another page to test global replacements with sed
---
.gitlab-ci.yml | 2 +-
src/another-page.html | 27 +++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletion(-)
create mode 100644 src/another-page.html
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2506801..e667cc7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,7 +42,7 @@ setup:
-e "s|%%BRANCH%%|${CI_COMMIT_BRANCH}|g"
-e "s|%%PROJECT_URL%%|${CI_PROJECT_URL}|g"
-e "s|%%PROJECT_NAMESPACE%%|${CI_PROJECT_NAMESPACE}|g"
- src/index.html
+ src/*.html
- mv src public
artifacts:
paths:
diff --git a/src/another-page.html b/src/another-page.html
new file mode 100644
index 0000000..5b0337a
--- /dev/null
+++ b/src/another-page.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="generator" content="GitLab Pages">
+ <title>Another Page - Plain HTML site using GitLab Pages</title>
+ <link rel="stylesheet" href="style.css">
+ </head>
+ <body>
+ <div class="navbar">
+ <a href="https://pages.gitlab.io/plain-html/">Plain HTML Example</a>
+ <a href="https://gitlab.com/pages/plain-html/">Repository</a>
+ <a href="https://gitlab.com/pages/">Other Examples</a>
+ </div>
+
+ <h1>Hello World!</h1>
+
+ <p>
+ This is a another page for testing global replacements.
+ </p>
+ <p>
+ It was built on the <strong>%%BRANCH%%</strong> branch of the
+ <a href="%%PROJECT_URL%%"><strong>%%PROJECT_NAMESPACE%%</strong></a> project.
+ </p>
+ </body>
+</html>
+
--
GitLab