Design updates, adding 2027 posts

This commit is contained in:
Bashy 2026-10-05 23:12:01 +03:00
parent 2d50bec4cb
commit e51d53994a
30 changed files with 521 additions and 81 deletions

View file

@ -64,6 +64,11 @@ index_generator:
per_page: 10
order_by: -date
# Archive shows blog posts only (events are filtered out in the theme),
# so keep it on one page to avoid short or empty pages.
archive_generator:
per_page: 0
# Category & Tag
default_category: uncategorized
category_map:
@ -91,6 +96,7 @@ pagination_dir: page
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
- rss2.xml # feed template (see feed.template), not a page
ignore:
# Extensions
@ -107,6 +113,7 @@ feed:
enable: true
type: rss2
path: rss2.xml
template: ./source/rss2.xml
limit: 15
hub:
content:

27
package-lock.json generated
View file

@ -20,6 +20,8 @@
"hexo-renderer-stylus": "^3.0.1",
"hexo-server": "^3.0.0",
"hexo-theme-landscape": "^1.0.0",
"lucide-static": "^1.52.0",
"simple-icons": "^16.34.0",
"strip-ansi": "^6.0.1"
}
},
@ -2049,6 +2051,12 @@
"integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
"license": "ISC"
},
"node_modules/lucide-static": {
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-1.52.0.tgz",
"integrity": "sha512-0zZYihAze4ZmUCcyNa9OkWYqn/Y5f9AdTh02AZIxMtP5ravcTTfoSIAnUPBH6ZvKxt+ZW28JB0ldzLRyD82fcw==",
"license": "ISC"
},
"node_modules/marked": {
"version": "15.0.12",
"resolved": "https://registry.npmjs.org/marked/-/marked-15.0.12.tgz",
@ -2685,6 +2693,25 @@
"node": ">=8"
}
},
"node_modules/simple-icons": {
"version": "16.34.0",
"resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-16.34.0.tgz",
"integrity": "sha512-UTxKn0PVspk84B2hHF3Dqiqht1yDjJmDc/t4cO7PyCQxCMk6OjEu95pnpGjhLaGeQ4qBrGASbefTIe/+czrX7g==",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/simple-icons"
},
{
"type": "github",
"url": "https://github.com/sponsors/simple-icons"
}
],
"license": "CC0-1.0",
"engines": {
"node": ">=0.12.18"
}
},
"node_modules/source-map": {
"version": "0.7.6",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",

View file

@ -24,6 +24,8 @@
"hexo-renderer-stylus": "^3.0.1",
"hexo-server": "^3.0.0",
"hexo-theme-landscape": "^1.0.0",
"lucide-static": "^1.52.0",
"simple-icons": "^16.34.0",
"strip-ansi": "^6.0.1"
}
}

View file

@ -23,12 +23,25 @@ hexo.extend.filter.register('before_generate', function () {
});
hexo.locals.set('nextEvent', futureEvents[0] || false);
hexo.locals.set('lastEvent', pastEvents[pastEvents.length - 1] || false);
// Most recent past event that actually has a video (skips TBD / missing).
const pastWithVideo = pastEvents.filter(function (p) {
return p.event && p.event.video && p.event.video !== 'TBD';
});
hexo.locals.set('lastEvent', pastWithVideo[pastWithVideo.length - 1] || false);
// Far-future events (all future except the nearest one) are excluded from
// site.posts so they don't appear in archives or RSS.
const hiddenIds = new Set(futureEvents.slice(1).map(function (p) { return p._id; }));
// Every event (including hidden far-future ones) for the /events/ timeline.
// `hasPage` is false for hidden events, since no page is generated for them.
hexo.locals.set('allEvents', eventPosts.map(function (p) {
let state = 'upcoming';
if (p.date.valueOf() < today.getTime()) state = 'past';
else if (p === futureEvents[0]) state = 'next';
return { post: p, state: state, hasPage: !hiddenIds.has(p._id) };
}));
if (hiddenIds.size > 0) {
const filtered = hexo.locals.get('posts').filter(function (p) {
return !hiddenIds.has(p._id);

52
scripts/icon.js Normal file
View file

@ -0,0 +1,52 @@
'use strict';
// Inline SVG icons at build time.
// Templates: <%- icon('si:gitlab') %> / <%- icon('lucide:map-pin') %>
// Markdown: {% icon lucide:download %}
// si: Simple Icons (brand logos) https://simpleicons.org
// lucide: Lucide (general icons) https://lucide.dev
// custom: themes/openalt/icons/*.svg (logos missing from the above, e.g. LinkedIn)
const fs = require('fs');
const path = require('path');
const sets = {
si: path.join(hexo.base_dir, 'node_modules/simple-icons/icons'),
lucide: path.join(hexo.base_dir, 'node_modules/lucide-static/icons'),
custom: path.join(hexo.theme_dir, 'icons')
};
const cache = new Map();
function icon(name) {
if (!name) return '';
if (cache.has(name)) return cache.get(name);
const [set, id] = name.split(':');
const dir = sets[set];
const file = dir && id && path.join(dir, id + '.svg');
if (!file || !fs.existsSync(file)) {
hexo.log.warn('icon: unknown icon "%s"', name);
cache.set(name, '');
return '';
}
const svg = fs.readFileSync(file, 'utf8')
.replace(/<!--[\s\S]*?-->/g, '')
.replace(/<title>[\s\S]*?<\/title>/, '')
.replace(/\s+/g, ' ')
.trim()
// Drop the root's own sizing/class/role; CSS sizes icons via .icon
.replace(/<svg([^>]*)>/, function (m, attrs) {
attrs = attrs.replace(/\s(width|height|class|role)="[^"]*"/g, '');
const fill = set === 'lucide' ? '' : ' fill="currentColor"';
return '<svg' + attrs + fill + ' class="icon icon-' + set + '" aria-hidden="true">';
});
cache.set(name, svg);
return svg;
}
hexo.extend.helper.register('icon', icon);
hexo.extend.tag.register('icon', function (args) { return icon(args[0]); });

View file

@ -5,22 +5,22 @@
bio: "Hi, I'm Bashy. I am Slovakian, currently living in Romanian countryside. Because of my interest in Free and Open Technologies, I've decided to bring OpenAlt into Romania."
contact:
- url: https://bashynx.com
icon: fa-solid fa-link
icon: lucide:link
enable: true
- url: https://mastodon.social/@Bashynx
icon: fab fa-mastodon
icon: si:mastodon
enable: true
- url: https://www.linkedin.com/in/viskibarbora/
icon: fab fa-linkedin
icon: custom:linkedin
enable: true
- url: https://github.com/bashynx/
icon: fab fa-github
icon: si:github
enable: true
- url: https://gitlab.com/bashynx/
icon: fab fa-gitlab
icon: si:gitlab
enable: true
- url: mailto:bashynx@openalt.org
icon: fas fa-envelope
icon: lucide:mail
enable: true
- name: "Kovács 'Gyuri' György"
role: Co-Founder
@ -29,9 +29,9 @@
bio: "Hi, I'm Gyuri. I am from Cluj, I have been involved with a number of groups such as Functional Programming in Cluj, Research in Cluj, Philosophy in Cluj and TEAL. I am a fan of Free and Open Source Software, and so I've joined Bashy to help her get OpenAlt going in Romania."
contact:
- url: http://gyuri.world
icon: fa-solid fa-link
icon: lucide:link
enable: true
- url: mailto:georgesmth202@gmail.com
icon: fas fa-envelope
icon: lucide:mail
enable: true

View file

@ -4,19 +4,19 @@
name: OpenAlt CZ
contact:
- url: https://openalt.cz
icon: fa-solid fa-link
icon: lucide:link
enable: true
- url: https://openalt.org
icon: fa-solid fa-link
icon: lucide:link
enable: true
- url: https://mastodon.social/@openalt
icon: fab fa-mastodon
icon: si:mastodon
enable: true
- url: https://www.linkedin.com/company/openalt-z.s./
icon: fab fa-linkedin
icon: custom:linkedin
enable: true
- url: https://gitlab.com/OpenAlt/
icon: fab fa-gitlab
icon: si:gitlab
enable: true
logo: /images/site/partners/openalt-cz.png
bio: "OpenAlt z.s. is an association whose goal is to support and promote open source in all its paradigmatic forms (hardware, software, data, science, education, governance, etc.). At its core is the organization of the OpenAlt conference, which presents openness as a response to technical and societal challenges."
@ -24,7 +24,7 @@
name: Hackman.Club
contact:
- url: https://hackman.club
icon: fa-solid fa-link
icon: lucide:link
enable: true
logo: /images/site/partners/HackmanClub.png
bio:
@ -34,28 +34,25 @@
name: ETHCluj
contact:
- url: https://www.ethcluj.org/
icon: fa-solid fa-link
icon: lucide:link
enable: true
- url: https://luma.com/ETHCluj
icon: fa-solid fa-calendar
icon: lucide:calendar-check
enable: true
- url: https://t.me/ethcluj
icon: fab fa-telegram
icon: si:telegram
enable: true
- url: https://www.linkedin.com/company/ethereumcluj
icon: fab fa-linkedin
icon: custom:linkedin
enable: true
- url: https://www.instagram.com/ethcluj/
icon: fab fa-instagram
icon: si:instagram
enable: true
- url: https://x.com/ETHCluj
icon: fab fa-x-twitter
enable: true
- url: https://luma.com/ETHCluj
icon: fa-solid fa-calendar
icon: si:x
enable: true
- url: https://ethcluj.substack.com/
icon: fa-solid fa-newspaper
icon: si:substack
enable: true
logo: /images/site/partners/ETHCluj.svg
bio: "ETHCluj is a technical Ethereum community and conference based in Cluj-Napoca, Romania - one of Eastern Europe’s strongest engineering hubs. Focused on education, protocol literacy, and builder collaboration, it brings together developers and ecosystem contributors for meaningful, in-depth discussions around blockchain technology and Ethereum ethical philosophy."
@ -65,7 +62,7 @@
name: REAM
contact:
- url: https://bashynx.com
icon: fa-solid fa-link
icon: lucide:link
enable: false
logo: /images/site/partners/REAM.png
bio: ""

View file

@ -1,7 +1,7 @@
---
title: "OpenAlt Romania #5"
author: "OpenAlt Romania"
date: 2026-09-10 18:00:00
date: 2026-09-17 18:00:00
description: Fifth OpenAlt Romania meetup.
categories:
- "Events"
@ -10,6 +10,7 @@ tags:
- "IRL Events"
- "Events"
event:
status: cancelled
date: "17th September 2026"
time: "6 PM"
place:

View file

@ -0,0 +1,24 @@
---
title: "OpenAlt Romania #7"
author: "OpenAlt Romania"
date: 2027-01-14 18:00:00
description: Seventh OpenAlt Romania meetup.
categories:
- "Events"
tags:
- "OpenAlt Romania"
- "IRL Events"
- "Events"
event:
date: "14th January 2027"
time: "6 PM"
place:
name: "Centrul pentru Tineret"
link: "https://www.openstreetmap.org/?mlat=46.770295&mlon=23.590912#map=19/46.770295/23.590912"
osm: '<iframe width="425" height="350" src="https://www.openstreetmap.org/export/embed.html?bbox=23.58924508094788%2C46.76946689665355%2C23.59257906675339%2C46.77112397154615&amp;layer=mapnik&amp;marker=46.77029544047259%2C23.59091207385063"></iframe>'
luma: false
program: "TBD"
video: "TBD"
attendees: "TBD"
---

View file

@ -0,0 +1,24 @@
---
title: "OpenAlt Romania #8"
author: "OpenAlt Romania"
date: 2027-03-11 18:00:00
description: Eighth OpenAlt Romania meetup.
categories:
- "Events"
tags:
- "OpenAlt Romania"
- "IRL Events"
- "Events"
event:
date: "11th March 2027"
time: "6 PM"
place:
name: "Centrul pentru Tineret"
link: "https://www.openstreetmap.org/?mlat=46.770295&mlon=23.590912#map=19/46.770295/23.590912"
osm: '<iframe width="425" height="350" src="https://www.openstreetmap.org/export/embed.html?bbox=23.58924508094788%2C46.76946689665355%2C23.59257906675339%2C46.77112397154615&amp;layer=mapnik&amp;marker=46.77029544047259%2C23.59091207385063"></iframe>'
luma: false
program: "TBD"
video: "TBD"
attendees: "TBD"
---

View file

@ -0,0 +1,24 @@
---
title: "OpenAlt Romania #9"
author: "OpenAlt Romania"
date: 2027-05-13 18:00:00
description: Ninth OpenAlt Romania meetup.
categories:
- "Events"
tags:
- "OpenAlt Romania"
- "IRL Events"
- "Events"
event:
date: "13th May 2027"
time: "6 PM"
place:
name: "Centrul pentru Tineret"
link: "https://www.openstreetmap.org/?mlat=46.770295&mlon=23.590912#map=19/46.770295/23.590912"
osm: '<iframe width="425" height="350" src="https://www.openstreetmap.org/export/embed.html?bbox=23.58924508094788%2C46.76946689665355%2C23.59257906675339%2C46.77112397154615&amp;layer=mapnik&amp;marker=46.77029544047259%2C23.59091207385063"></iframe>'
luma: false
program: "TBD"
video: "TBD"
attendees: "TBD"
---

View file

@ -0,0 +1,24 @@
---
title: "OpenAlt Romania #10"
author: "OpenAlt Romania"
date: 2027-07-08 18:00:00
description: Tenth OpenAlt Romania meetup.
categories:
- "Events"
tags:
- "OpenAlt Romania"
- "IRL Events"
- "Events"
event:
date: "8th July 2027"
time: "6 PM"
place:
name: "Centrul pentru Tineret"
link: "https://www.openstreetmap.org/?mlat=46.770295&mlon=23.590912#map=19/46.770295/23.590912"
osm: '<iframe width="425" height="350" src="https://www.openstreetmap.org/export/embed.html?bbox=23.58924508094788%2C46.76946689665355%2C23.59257906675339%2C46.77112397154615&amp;layer=mapnik&amp;marker=46.77029544047259%2C23.59091207385063"></iframe>'
luma: false
program: "TBD"
video: "TBD"
attendees: "TBD"
---

View file

@ -0,0 +1,24 @@
---
title: "OpenAlt Romania #11"
author: "OpenAlt Romania"
date: 2027-09-09 18:00:00
description: Eleventh OpenAlt Romania meetup.
categories:
- "Events"
tags:
- "OpenAlt Romania"
- "IRL Events"
- "Events"
event:
date: "9th September 2027"
time: "6 PM"
place:
name: "Centrul pentru Tineret"
link: "https://www.openstreetmap.org/?mlat=46.770295&mlon=23.590912#map=19/46.770295/23.590912"
osm: '<iframe width="425" height="350" src="https://www.openstreetmap.org/export/embed.html?bbox=23.58924508094788%2C46.76946689665355%2C23.59257906675339%2C46.77112397154615&amp;layer=mapnik&amp;marker=46.77029544047259%2C23.59091207385063"></iframe>'
luma: false
program: "TBD"
video: "TBD"
attendees: "TBD"
---

View file

@ -0,0 +1,24 @@
---
title: "OpenAlt Romania #12"
author: "OpenAlt Romania"
date: 2027-11-11 18:00:00
description: Twelfth OpenAlt Romania meetup.
categories:
- "Events"
tags:
- "OpenAlt Romania"
- "IRL Events"
- "Events"
event:
date: "11th November 2027"
time: "6 PM"
place:
name: "Centrul pentru Tineret"
link: "https://www.openstreetmap.org/?mlat=46.770295&mlon=23.590912#map=19/46.770295/23.590912"
osm: '<iframe width="425" height="350" src="https://www.openstreetmap.org/export/embed.html?bbox=23.58924508094788%2C46.76946689665355%2C23.59257906675339%2C46.77112397154615&amp;layer=mapnik&amp;marker=46.77029544047259%2C23.59091207385063"></iframe>'
luma: false
program: "TBD"
video: "TBD"
attendees: "TBD"
---

4
source/events/index.md Normal file
View file

@ -0,0 +1,4 @@
---
title: "Events"
layout: events
---

View file

@ -16,33 +16,33 @@ Logos should always be downloaded from this page to ensure high quality. Downloa
<div class="brand-line-wrapper">
<span class="brand-img-dark">
<img src="/images/assets/OpenAltRomania.svg" alt="Main Logo on light background">
<a href="/images/assets/OpenAltRomania.svg" download><i class="fa-solid fa-download" aria-hidden="true"></i> Download SVG </a>
<a href="/images/assets/OpenAltRomania.svg" download>{% icon lucide:download %} Download SVG </a>
</span>
<span class="brand-img-light">
<img src="/images/assets/OpenAltRomania.svg" alt="Main Logo on dark background">
<a href="/images/assets/OpenAltRomania.svg" download><i class="fa-solid fa-download" aria-hidden="true"></i> Download SVG </a>
<a href="/images/assets/OpenAltRomania.svg" download>{% icon lucide:download %} Download SVG </a>
</span>
</div>
<h3>Tall Logo (for dark and light backgrounds)</h3>
<div class="brand-line-wrapper">
<span class="brand-img-dark">
<img src="/images/assets/OpenAlt_RO_Black_Tall.svg" alt="Tall Logo on light background">
<a href="/images/assets/OpenAlt_RO_Black_Tall.svg" download><i class="fa-solid fa-download" aria-hidden="true"></i> Download SVG </a>
<a href="/images/assets/OpenAlt_RO_Black_Tall.svg" download>{% icon lucide:download %} Download SVG </a>
</span>
<span class="brand-img-light">
<img src="/images/assets/OpenAlt_RO_White_Tall.svg" alt="Tall Logo on dark background">
<a href="/images/assets/OpenAlt_RO_White_Tall.svg" download><i class="fa-solid fa-download" aria-hidden="true"></i> Download SVG </a>
<a href="/images/assets/OpenAlt_RO_White_Tall.svg" download>{% icon lucide:download %} Download SVG </a>
</span>
</div>
<h3>Wide Logo (for dark and light backgrounds)</h3>
<div class="brand-line-wrapper">
<span class="brand-img-dark">
<img src="/images/assets/OpenAlt_RO_Black_Wide.svg" alt="Wide logo on light background">
<a href="/images/assets/OpenAlt_RO_Black_Wide.svg" download><i class="fa-solid fa-download" aria-hidden="true"></i> Download SVG </a>
<a href="/images/assets/OpenAlt_RO_Black_Wide.svg" download>{% icon lucide:download %} Download SVG </a>
</span>
<span class="brand-img-light">
<img src="/images/assets/OpenAlt_RO_White_Wide.svg" alt="Wide logo on dark background">
<a href="/images/assets/OpenAlt_RO_White_Wide.svg" download><i class="fa-solid fa-download" aria-hidden="true"></i> Download SVG </a>
<a href="/images/assets/OpenAlt_RO_White_Wide.svg" download>{% icon lucide:download %} Download SVG </a>
</span>
</div>
</div>

View file

@ -19,7 +19,7 @@
<generator>http://hexo.io/</generator>
{% for post in posts.toArray() %}
<item>
<title>{{ post.title }}</title>
<title>{% if post.event and post.event.status == 'cancelled' %}[Cancelled] {% endif %}{{ post.title }}</title>
<link>{{ post.permalink | uriencode }}</link>
<guid>{{ post.permalink | uriencode }}</guid>
<pubDate>{{ post.date.toDate().toUTCString() }}</pubDate>
@ -30,7 +30,7 @@
{% elif post.excerpt %}
<description>{{ post.excerpt }}</description>
{% endif %}
{% if post.photos %}
{% if post.photos and post.photos.length %}
<enclosure url="{{ url + post.photos[0] | uriencode }}" type="image/jpeg"/>
{% endif %}
{% if config.feed.content and post.content %}

View file

@ -5,7 +5,6 @@ copy_year: 2025
# Site configuration
banner: images/assets/OpenAlt_RO_White_Wide.svg
favicon: images/assets/OpenAltRomania.svg
fontawesome: https://kit.fontawesome.com/bae8420862.js # Use your own kit here
primary_color: '#ce1126 !important'
#Footer
@ -15,31 +14,31 @@ copyright: true # Display copyright
# Enable or disable social links (add more / remove as needed)
social:
- url: http://discord.openalt.ro
icon: fab fa-discord
icon: si:discord
enable: true
- url: https://mastodon.social/@OpenAltRO
relme: true
icon: fab fa-mastodon
icon: si:mastodon
enable: true
- url: https://vhsky.cz/c/openaltro/videos
icon: fa-solid fa-circle-play
icon: si:peertube
enable: true
- url: https://www.linkedin.com/company/openaltro/
relme: true
icon: fab fa-linkedin
icon: custom:linkedin
enable: true
- url: https://matrix.to/#/#OpenAltRO:matrix.org
icon: fab fa-hashtag
icon: si:matrix
enable: true
- url: https://gitlab.com/OpenAlt/OpenAltRO
icon: fab fa-gitlab
icon: si:gitlab
enable: true
# Topbar menu configuration (add more / remove as needed)
topbar_menu:
- enable: true
name: Blog
url: /archives/
name: Events
url: /events/
- enable: true
name: About Us
url: /p/AboutUs/

View file

@ -0,0 +1 @@
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>LinkedIn</title><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>

After

Width:  |  Height:  |  Size: 610 B

View file

@ -5,14 +5,18 @@
<% } %>
<div>
<h1 class="event">
<% var cancelled = page.event.status === "cancelled"; %>
<% if (cancelled) { %>
<h1 class="event-cancelled">Cancelled</h1>
<% } %>
<h1 class="event<%= cancelled ? ' cancelled' : '' %>">
<%- page.event.date %> at <%- page.event.time %>
</h1>
<div class="event-actions">
<% if (page.event.luma && page.event.luma !== false) { %>
<a href="<%- page.event.luma %>" target="_blank" class="btn-event btn-luma"><i class="fa-solid fa-calendar-check"></i> RSVP on Luma</a>
<% if (!cancelled && page.event.luma && page.event.luma !== false) { %>
<a href="<%- page.event.luma %>" target="_blank" class="btn-event btn-luma"><%- icon('lucide:calendar-check') %> RSVP on Luma</a>
<% } %>
<a href="http://speakers.openalt.ro/" target="_blank" class="btn-event btn-speaker"><i class="fa-solid fa-microphone"></i> Call for Presentations</a>
<a href="http://speakers.openalt.ro/" target="_blank" class="btn-event btn-speaker"><%- icon('lucide:mic') %> Call for Presentations</a>
</div>
</div>
@ -31,14 +35,14 @@
<div>
<% if(page.event.place != "TBD") { %>
<h3>
<a href='<%- page.event.place.link %>'><i class="fa fa-map-marker-alt"></i> <%- page.event.place.name %></a>
<a href='<%- page.event.place.link %>'><%- icon('lucide:map-pin') %> <%- page.event.place.name %></a>
</h3>
<% if(page.event.place.osm && page.event.place.osm != "TBD" && page.event.place.osm != "") { %>
<span class="osm"><%- page.event.place.osm %></span>
<% } %>
<% } else { %>
<h3>
<i class="fa fa-map-marker-alt"></i> TBD
<%- icon('lucide:map-pin') %> TBD
</h3>
<% } %>
</div>

View file

@ -1,5 +1,5 @@
<div>
<% page.posts.forEach(function(post) { %>
<% item.forEach(function(post) { %>
<%- include('post_preview',
{ post: post,
source: "feed"

View file

@ -4,18 +4,18 @@
<img class="event-banner-logo" src="/images/assets/OpenAltRomania.svg" alt="">
<div class="event-banner-inner">
<div class="event-banner-kicker">Next Meetup</div>
<h1 class="event-banner-title"><%= e.title %></h1>
<h1 class="event-banner-title"><% if (e.event.status === 'cancelled') { %>[Cancelled] <% } %><%= e.title %></h1>
<p class="event-banner-meta">
<strong><%= e.event.date %></strong> &nbsp;·&nbsp; <strong><%= e.event.time %></strong>
<% if (e.event.place && e.event.place !== 'TBD') { %>
&nbsp;·&nbsp; <span class="event-banner-loc"><i class="fa fa-map-marker-alt"></i><a href="<%- e.event.place.link %>"><%= e.event.place.name %></a></span>
&nbsp;·&nbsp; <span class="event-banner-loc"><%- icon('lucide:map-pin') %><a href="<%- e.event.place.link %>"><%= e.event.place.name %></a></span>
<% } %>
</p>
<div class="event-actions" style="margin-bottom: 2.5em;">
<% if (e.event.luma && e.event.luma !== false) { %>
<a href="<%- e.event.luma %>" target="_blank" class="btn-event btn-luma"><i class="fa-solid fa-calendar-check"></i> RSVP on Luma</a>
<% if (e.event.status !== 'cancelled' && e.event.luma && e.event.luma !== false) { %>
<a href="<%- e.event.luma %>" target="_blank" class="btn-event btn-luma"><%- icon('lucide:calendar-check') %> RSVP on Luma</a>
<% } %>
<a href="http://speakers.openalt.ro/" target="_blank" class="btn-event btn-speaker"><i class="fa-solid fa-microphone"></i> Call for Presentations</a>
<a href="http://speakers.openalt.ro/" target="_blank" class="btn-event btn-speaker"><%- icon('lucide:mic') %> Call for Presentations</a>
</div>
<div class="event-banner-agenda">
<% if (e.event.program && e.event.program !== 'TBD') { %>
@ -35,7 +35,7 @@
<% if (site.lastEvent) { var l = site.lastEvent; %>
<div style="padding-top: 2em;">
<a href="<%- url_for(l.path) %>"><h1>Video of our last event: <%= l.title %></h1></a>
<a href="<%- url_for(l.path) %>"><h1>Video of our last event: <% if (l.event.status === 'cancelled') { %>[Cancelled] <% } %><%= l.title %></h1></a>
<% if (l.event.video && l.event.video !== 'TBD') { %>
<div class="vhsky-video"><%- l.event.video %></div>
<% } %>

View file

@ -1,5 +1,5 @@
<section id="minifeed">
<h1>Blog posts</h1>
<a href="<%- url_for('/archives/') %>"><h1>Blog posts</h1></a>
<div class="minifeed">
<% counter = 3 %>
<% page.posts.forEach(function(post) { %>

View file

@ -15,11 +15,7 @@ site.data.members.forEach(function(member) { %>
<% member.contact.forEach(function(social) { %>
<span class="social-icon">
<a href="<%= social.url %>" target="_blank">
<% if (theme.fontawesome) { %>
<i class="<%= social.icon %>"></i>
<% } else { %>
<img src='<%= url_for(theme.avatar) %>'></img>
<% } %>
<%- icon(social.icon) %>
</a>
</span>
<% }); %>

View file

@ -24,11 +24,7 @@
<% partner.contact.forEach(function(social) { %>
<span class="social-icon">
<a href="<%= social.url %>" target="_blank">
<% if (theme.fontawesome) { %>
<i class="<%= social.icon %>"></i>
<% } else { %>
<img src='<%= url_for(theme.avatar) %>'></img>
<% } %>
<%- icon(social.icon) %>
</a>
</span>
<% }); %>

View file

@ -3,8 +3,9 @@
post.tags.data.forEach(function(tag) {
if ( (tag.name == "Events") && (!isEvent) ) {
isEvent = true
}
}
});
titlePrefix = (isEvent && post.event && post.event.status === "cancelled") ? "[Cancelled] " : ""
%>
<!-- This is the template for the post. It is used to display the posts in the feeds. -->
@ -17,7 +18,7 @@
<%- include('event', { page: post }) %>
</div>
<% } else if(event == 1) { %>
<a href='<%= url_for(post.path) %>'><h1>Video of our last event: <%= post.title || "Untitled" %></h1></a>
<a href='<%= url_for(post.path) %>'><h1>Video of our last event: <%= titlePrefix %><%= post.title || "Untitled" %></h1></a>
<% if(post.event.video != "TBD") { %>
<div class="vhsky-video">
@ -34,7 +35,7 @@
<div class="post-without-video">
<% } %>>
<div class="post-blerp">
<a href='<%= url_for(post.path) %>'><h2><%= post.title || "Untitled" %></h2>
<a href='<%= url_for(post.path) %>'><h2><%= titlePrefix %><%= post.title || "Untitled" %></h2>
<div class="date smoll">
<%- include('date', { date: post.date.toISOString() }) %></a>
</div>

View file

@ -1,5 +1,7 @@
<%- include("_partial/feed",
{ item: page.posts.sort('-date'),
{ item: page.posts.filter(function(p) {
return !(p.tags && p.tags.data.some(function(t) { return t.name === "Events"; }));
}).sort('-date'),
source: "archive"
}
)%>

View file

@ -0,0 +1,55 @@
<div class="timeline-page">
<h1 class="article"><%= page.title || "Events" %></h1>
<% if (page.content) { %>
<div class="post-content"><%- page.content %></div>
<% } %>
<% var events = site.allEvents || []; %>
<% if (!events.length) { %>
<p>No events yet.</p>
<% } else { %>
<ol class="timeline">
<% events.forEach(function(item) {
var p = item.post;
var ev = p.event || {};
var cancelled = ev.status === "cancelled";
var hasVideo = ev.video && ev.video !== "TBD";
var labels = { past: "Past", next: "Next meetup", upcoming: "Upcoming" };
%>
<li class="timeline-item <%= item.state %><%= cancelled ? ' cancelled' : '' %>"<% if (item.state === 'next') { %> id="next-event"<% } %>>
<div class="timeline-card">
<div class="timeline-kicker"><%= cancelled ? "Cancelled" : labels[item.state] %></div>
<h2 class="timeline-title">
<% var title = (cancelled ? "[Cancelled] " : "") + (p.title || "Untitled"); %>
<% if (item.hasPage) { %><a href="<%- url_for(p.path) %>"><%= title %></a><% } else { %><%= title %><% } %>
</h2>
<p class="timeline-meta">
<strong><%= ev.date %></strong><% if (ev.time) { %> &nbsp;·&nbsp; <strong><%= ev.time %></strong><% } %>
<% if (ev.place && ev.place !== "TBD") { %>
<br><span class="timeline-loc"><%- icon('lucide:map-pin') %> <%= ev.place.name %></span>
<% } %>
</p>
<div class="event-actions">
<% if (!cancelled && item.state !== "past" && ev.luma) { %>
<a href="<%- ev.luma %>" target="_blank" class="btn-event btn-luma"><%- icon('lucide:calendar-check') %> RSVP on Luma</a>
<% } %>
<% if (item.hasPage && hasVideo) { %>
<a href="<%- url_for(p.path) %>" class="btn-event btn-speaker"><%- icon('lucide:play') %> Watch video</a>
<% } else if (item.hasPage) { %>
<a href="<%- url_for(p.path) %>" class="btn-event btn-speaker">Details</a>
<% } %>
</div>
</div>
</li>
<% }); %>
</ol>
<script>
(function () {
var target = document.getElementById("next-event") ||
document.querySelector(".timeline-item:last-child");
if (target) target.scrollIntoView({ block: "center" });
})();
</script>
<% } %>
</div>

View file

@ -18,8 +18,6 @@
<link rel="icon" href="<%= url_for(theme.favicon) %>">
<script src="<%= url_for(theme.fontawesome) %>" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap">
<title><%= config.title %></title>
@ -62,11 +60,7 @@
<% } else { %>
<a href="<%= social.url %>" target="_blank">
<% } %>
<% if (theme.fontawesome) { %>
<i class="<%= social.icon %>"></i>
<% } else { %>
<img src='<%= url_for(theme.avatar) %>'></img>
<% } %>
<%- icon(social.icon) %>
</a>
</span>
<% } %>

View file

@ -346,6 +346,14 @@ section {
color: #fcd116;
}
h1.event-cancelled {
text-transform: uppercase;
}
h1.event.cancelled {
text-decoration: line-through;
}
/* Feed Preview */
.minifeed {
@ -709,7 +717,7 @@ section {
}
.event-banner-meta strong { color: #dcdcdf; }
.event-banner-loc { color: #8b949e; white-space: nowrap; }
.event-banner-loc i { color: #fcd116; margin-right: 0.3em; }
.event-banner-loc .icon { color: #fcd116; margin-right: 0.3em; }
.event-banner-loc a { color: #8b949e; }
.event-banner-agenda {
display: inline-flex;
@ -776,4 +784,141 @@ section {
justify-content: center;
margin: 0 auto;
}
}
}
/* Events timeline page */
.timeline-page {
max-width: 1000px;
margin: 0 auto;
padding: 2em 1em 4em;
text-align: center;
}
.timeline {
position: relative;
list-style: none;
margin: 2em 0 0;
padding: 0;
}
/* Center line */
.timeline::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 2px;
background: #21262d;
transform: translateX(-50%);
}
.timeline-item {
position: relative;
width: 50%;
padding: 1em 2.5em;
box-sizing: border-box;
text-align: left;
}
.timeline-item:nth-child(odd) {
left: 0;
text-align: right;
}
.timeline-item:nth-child(even) {
left: 50%;
}
/* Dot on the center line */
.timeline-item::after {
content: "";
position: absolute;
top: 2em;
width: 14px;
height: 14px;
border-radius: 50%;
background: #0D1117;
border: 2px solid #555d68;
box-sizing: border-box;
}
.timeline-item:nth-child(odd)::after { right: -7px; }
.timeline-item:nth-child(even)::after { left: -7px; }
.timeline-item.past::after { background: #555d68; }
.timeline-item.next::after {
background: #fcd116;
border-color: #fcd116;
box-shadow: 0 0 0 5px rgba(252, 209, 22, 0.2);
}
.timeline-card {
background: #161b22;
border: 1px solid #21262d;
border-radius: 6px;
padding: 1.25em 1.5em;
}
.timeline-item.next .timeline-card { border-color: #fcd116; }
.timeline-item.past .timeline-card { opacity: 0.75; }
.timeline-kicker {
font-size: 0.8em;
letter-spacing: 0.25em;
text-transform: uppercase;
color: #8b949e;
}
.timeline-item.next .timeline-kicker { color: #fcd116; }
.timeline-item.cancelled .timeline-kicker { color: #CE1126; }
.timeline-title {
margin: 0.3em 0;
}
.timeline-title a { color: #dcdcdf; }
.timeline-item.cancelled .timeline-title { text-decoration: line-through; }
.timeline-meta {
color: #8b949e;
margin: 0.5em 0 1em;
}
.timeline-meta strong { color: #dcdcdf; }
.timeline-loc .icon { color: #fcd116; }
.timeline-item:nth-child(odd) .event-actions { justify-content: flex-end; }
.timeline-item:nth-child(even) .event-actions { justify-content: flex-start; }
/* Single column on narrow screens */
@media (max-width: 700px) {
.timeline::before { left: 7px; }
.timeline-item,
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
width: 100%;
left: 0;
text-align: left;
padding: 0.75em 0 0.75em 2em;
}
.timeline-item:nth-child(odd)::after,
.timeline-item:nth-child(even)::after { left: 0; right: auto; }
.timeline-item:nth-child(odd) .event-actions { justify-content: flex-start; }
}
/* Inline SVG icons (Lucide + Simple Icons, see scripts/icon.js) */
.icon {
width: 1em;
height: 1em;
vertical-align: -0.125em;
flex-shrink: 0;
}
/* Social links: slightly larger brand logos */
.social-icon .icon {
width: 1.15em;
height: 1.15em;
}