diff --git a/sass/_variables.scss b/sass/_variables.scss
index 4e604c5..ffcc7cc 100644
--- a/sass/_variables.scss
+++ b/sass/_variables.scss
@@ -4,6 +4,7 @@
--text-color: #1a1a1a;
--text-muted: #6b7280;
--accent-color: #10b981; // Emerald
+ --accent-hover: #059669; // Emerald darker
--surface-color: #ffffff;
--border-color: rgba(0, 0, 0, 0.05);
--shadow-color: rgba(0, 0, 0, 0.05);
diff --git a/static/js/404.js b/static/js/404.js
index bc49082..58ac0c9 100644
--- a/static/js/404.js
+++ b/static/js/404.js
@@ -4,7 +4,10 @@
var body = document.getElementById('term-body');
if (!body) return;
- var path = window.location.pathname;
+ var path = window.location.pathname;
+ var promptUser = body.dataset.prompt || 'user@pwnbox';
+ var hostname = body.dataset.hostname || 'pwnbox';
+ var whoami = body.dataset.whoami || 'l0st_r3ader';
var links = [
{ href: body.dataset.linkHome, label: '~/home' },
@@ -16,7 +19,7 @@
{ type: 'cmd', text: 'cd ' + path },
{ type: 'out-error', text: 'bash: cd: ' + path + ': No such file or directory' },
{ type: 'cmd', text: 'whoami' },
- { type: 'out', text: 'l0st_r3ader' },
+ { type: 'out', text: whoami },
{ type: 'cmd', text: 'ls ~/recovery/' },
{ type: 'ls' }
];
@@ -27,7 +30,7 @@
function ps1() {
var s = document.createElement('span');
s.className = 'term-ps1';
- s.textContent = 'user@blackout:~$ ';
+ s.textContent = promptUser + '@' + hostname + ':~$ ';
return s;
}
diff --git a/templates/404.html b/templates/404.html
index 1e2cf37..de23cac 100644
--- a/templates/404.html
+++ b/templates/404.html
@@ -13,13 +13,16 @@
- bash — pwnbox
+ bash — {{ config.extra.terminal_hostname | default(value="pwnbox") }}
+ data-link-tags="{{ get_url(path="/tags") }}"
+ data-prompt="{{ config.extra.terminal_prompt_user | default(value="user@pwnbox") }}"
+ data-hostname="{{ config.extra.terminal_hostname | default(value="pwnbox") }}"
+ data-whoami="{{ config.extra.terminal_whoami | default(value="l0st_r3ader") }}">
diff --git a/templates/base.html b/templates/base.html
index 4c34e28..5a33b8f 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -25,7 +25,7 @@
-
+
@@ -180,16 +180,16 @@
});
-
+
{% block head %}{% endblock head %}
@@ -261,7 +261,7 @@
{% endblock content %}
diff --git a/templates/partials/head.html b/templates/partials/head.html
index 79c3384..9c00993 100644
--- a/templates/partials/head.html
+++ b/templates/partials/head.html
@@ -17,7 +17,7 @@
-
+
{% block twitter_extra %}{% endblock twitter_extra %}
diff --git a/templates/partials/related-posts.html b/templates/partials/related-posts.html
index 45ba912..8bf7d7d 100644
--- a/templates/partials/related-posts.html
+++ b/templates/partials/related-posts.html
@@ -21,12 +21,13 @@
{% endif %}
{% endfor %}
- {# If we found any related pages, pick top 3 and display them #}
+ {# If we found any related pages, pick top N and display them #}
+ {% set related_limit = config.extra.related_posts_limit | default(value=3) %}
{% if related_pages | length > 0 %}
-
Related Posts
+
{{ config.extra.related_posts_title | default(value="Related Posts") }}
- {% for related_page in related_pages | slice(end=3) %}
+ {% for related_page in related_pages | slice(end=related_limit) %}
{# We can use a simplified card or the existing post-card.html #}
{% set page = related_page %}
{% include "partials/post-card.html" %}
diff --git a/zola.toml b/zola.toml
index 3e33d28..89ed670 100644
--- a/zola.toml
+++ b/zola.toml
@@ -60,3 +60,22 @@ url = "@/archive/_index.md"
enable_search = true
enable_theme_toggle = true
show_rss_link = true
+
+# Social meta
+twitter_handle = "@andwati_"
+
+# Homepage
+homepage_post_limit = 3
+view_all_posts_label = "View all posts"
+
+# Related posts
+related_posts_limit = 3
+related_posts_title = "Related Posts"
+
+# Search
+search_placeholder = "Search posts..."
+
+# 404 terminal identity
+terminal_hostname = "pwnbox"
+terminal_prompt_user = "user@blackout"
+terminal_whoami = "l0st_r3ader"