summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cgit.css40
-rw-r--r--cgitrc.example1
-rw-r--r--images/signature.pngbin0 -> 9765 bytes
-rw-r--r--site-desc.html15
4 files changed, 56 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index 8f1085c..9114f17 100644
--- a/cgit.css
+++ b/cgit.css
@@ -352,6 +352,46 @@ div.content {
}
/* =============================================================
+ SITE DESCRIPTION (index page, root-readme)
+ ============================================================= */
+
+div.site-desc {
+ max-width: 680px;
+ margin: 2rem auto 2.5rem;
+ padding: 0 1rem;
+ color: var(--text);
+ font-family: 'IBM Plex Sans', sans-serif;
+ font-size: 0.95rem;
+ line-height: 1.7;
+}
+
+div.site-desc h2 {
+ font-family: 'Oxanium', sans-serif;
+ font-size: 1.4rem;
+ color: var(--accent);
+ margin-bottom: 0.75rem;
+}
+
+div.site-desc a {
+ color: var(--accent2);
+ text-decoration: none;
+}
+
+div.site-desc a:hover {
+ text-decoration: underline;
+ opacity: 1;
+}
+
+div.site-desc .welcome-close {
+ color: var(--text-dim);
+ font-style: italic;
+}
+
+div.site-desc .signature-wrap {
+ margin-top: 1rem;
+}
+
+/* =============================================================
REPO LIST PAGE
============================================================= */
diff --git a/cgitrc.example b/cgitrc.example
index fba2002..1a4ae80 100644
--- a/cgitrc.example
+++ b/cgitrc.example
@@ -13,6 +13,7 @@ logo=/cgit-theme/images/lampD.png
logo-link=https://danix.xyz
head-include=/var/www/cgit-theme-danix/head.html
footer=/usr/share/cgit/cgit-theme-danix/footer.html
+root-readme=/var/www/cgit-theme-danix/site-desc.html
source-filter=/usr/share/cgit/cgit-theme-danix/syntax-highlight.py
# ---- Site settings ----
diff --git a/images/signature.png b/images/signature.png
new file mode 100644
index 0000000..47f5fed
--- /dev/null
+++ b/images/signature.png
Binary files differ
diff --git a/site-desc.html b/site-desc.html
new file mode 100644
index 0000000..b833182
--- /dev/null
+++ b/site-desc.html
@@ -0,0 +1,15 @@
+<div class="site-desc">
+ <h2>My work</h2>
+ <p>
+ Welcome to my git repository. Here's what I've been working on in the past,
+ today, and what I'll be (probably) working on in the future.
+ </p>
+ <p>
+ Feel free to have a look at the code I've written and don't hesitate to
+ <a href="https://danix.xyz/is/here/">drop me a few lines</a> if you want to.
+ </p>
+ <p class="welcome-close">I wish you a great day!</p>
+ <p class="signature-wrap">
+ <img height="100" width="200" src="/cgit-theme/images/signature.png" alt="danix's signature" />
+ </p>
+</div>