File tree Expand file tree Collapse file tree 4 files changed +68
-0
lines changed
Expand file tree Collapse file tree 4 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ const { execSync } = require ( 'child_process' ) ;
2+
3+ module . exports = ( ) => {
4+ const now = new Date ( ) ;
5+
6+ // Format the date: "Jan 26, 2026, 07:51 AM"
7+ const timestamp = now . toLocaleString ( 'en-US' , {
8+ dateStyle : 'medium' ,
9+ timeStyle : 'short' ,
10+ } ) ;
11+
12+ let gitHash = 'development' ;
13+ try {
14+ // Get the short git hash (first 7 characters)
15+ gitHash = execSync ( 'git rev-parse --short HEAD' ) . toString ( ) . trim ( ) ;
16+ } catch ( e ) {
17+ console . warn ( "Could not fetch git hash, defaulting to 'development'" ) ;
18+ }
19+
20+ return {
21+ timestamp,
22+ hash : gitHash ,
23+ repoUrl : "https://github.com/NextCommunity/NextCommunity.github.io"
24+ } ;
25+ } ;
Original file line number Diff line number Diff line change 115115 </div >
116116 </main >
117117
118+ {% include " footer.njk" %}
119+
118120 <script src =" /assets/js/script.js" ></script >
119121 <script >
120122 // Specific helper for the bio page email copy
Original file line number Diff line number Diff line change 1+ <footer class =" mt-20 border-t border-[var(--border-color)] bg-[var(--bg-footer)] py-12" >
2+ <div class =" max-w-7xl mx-auto px-4 flex flex-col md:flex-row justify-between items-center gap-8" >
3+
4+ <div class =" text-center md:text-left" >
5+ <p class =" text-[var(--text-main)] font-bold text-sm uppercase tracking-widest" >Developer Directory</p >
6+ <p class =" text-[var(--text-muted)] text-xs mt-1 mb-4" >© 2026 Powered by the open-source community</p >
7+
8+ <div class =" flex items-center justify-center md:justify-start gap-3" >
9+ <a href =" https://www.11ty.dev/" target =" _blank" rel =" noopener"
10+ class =" text-[10px] font-bold px-2 py-1 rounded bg-[var(--bg-card)] border border-[var(--border-color)] text-[var(--text-muted)] hover:text-accent hover:border-accent transition-all flex items-center gap-1" >
11+ <span >🎈</span > 11ty
12+ </a >
13+ <a href =" https://tailwindcss.com/" target =" _blank" rel =" noopener"
14+ class =" text-[10px] font-bold px-2 py-1 rounded bg-[var(--bg-card)] border border-[var(--border-color)] text-[var(--text-muted)] hover:text-accent hover:border-accent transition-all flex items-center gap-1" >
15+ <span class =" text-sky-400" >🌊</span > Tailwind
16+ </a >
17+ </div >
18+ </div >
19+
20+ <div class =" flex flex-col items-center md:items-end gap-2" >
21+ <div class =" flex items-center gap-3" >
22+ <span class =" w-2 h-2 rounded-full bg-green-500 animate-pulse" ></span >
23+ <span class =" text-[var(--text-muted)] text-[10px] font-black uppercase tracking-widest" >
24+ Last Build: {{ build .timestamp }}
25+ </span >
26+ </div >
27+
28+ <a href =" {{ build.repoUrl }}/commit/{{ build.hash }}"
29+ target =" _blank"
30+ rel =" noopener"
31+ class =" group flex items-center gap-2 bg-[var(--bg-card)] border border-[var(--border-color)] px-3 py-1.5 rounded-lg hover:border-accent transition-colors" >
32+ <span class =" text-[var(--text-muted)] text-[10px] font-mono" >Build Hash:</span >
33+ <span class =" text-accent font-mono text-[10px] font-bold underline decoration-dotted" >{{ build .hash }} </span >
34+ <span class =" text-[var(--text-muted)] group-hover:text-accent transition-transform group-hover:translate-x-0.5" >↗</span >
35+ </a >
36+ </div >
37+
38+ </div >
39+ </footer >
Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ layout: false
9393 </div >
9494 </main >
9595
96+ {% include " footer.njk" %}
97+
9698 <script src =" /assets/js/script.js" ></script >
9799</body >
98100</html >
You can’t perform that action at this time.
0 commit comments