Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style/usability enhancement changes #21

Merged
merged 4 commits into from
Feb 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addFilter("from", (array, from) => {
return array.slice(from, array.length);
});
// Check if a date has occured
eleventyConfig.addFilter("occured", (date) => {
// Check if a date has occurred
eleventyConfig.addFilter("occurred", (date) => {
let dateToCheck = new Date(date);
let today = new Date();
return dateToCheck < today;
Expand Down
2 changes: 1 addition & 1 deletion src/_data/meta.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
url: "/",
url: "https://not.jsoxford.com/",
siteName: "MaybeNotJSOxford",
siteDescription: "A monthly catchup about tech (maybe JS), that's online (not in Oxford)",
authorName: "JS Oxford",
Expand Down
10 changes: 10 additions & 0 deletions src/_generate/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,14 @@ eleventyExcludeFromCollections: true
<content type="html">{{ page.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
</entry>
{%- endfor %}
{%- for page in collections.events %}
{% set absolutePostUrl %}{{ page.url | url | absoluteUrl(meta.url) }}{% endset %}
<entry>
<title>{{ page.data.description }}</title>
<link href="{{ absolutePostUrl }}"/>
<updated>{{ page.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ page.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
</entry>
{%- endfor %}
</feed>
8 changes: 7 additions & 1 deletion src/_includes/layouts/event.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ layout: base

{% from 'macros/eventinfo.njk' import eventInfo %}

{{ eventInfo({date:date,speakers:speakers,stream:stream,description:description}, layoutContent) }}
{{ eventInfo({
date:date,
speakers:speakers,
stream:stream,
description:description,
happened:happened
}, layoutContent) }}
8 changes: 6 additions & 2 deletions src/_includes/macros/eventinfo.njk
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@
<h2>{{ event.description }}</h2>
</header>
{% if event.stream %}
{% if event.date | occured %}
{% if event.happened == true %}
<p>It was ✨ Broadcast Live ✨ on the ✨ Information Superhighway ✨</p>
{% else %}
{% if event.date | occurred %}
<p>Currently live 📣</p>
{% endif %}
{% endif %}

{% yt event.stream %}
{% else %}
<h3>[We'll post the video here when we go live]</h3>
{% endif %}
<p>🤟 This month, {% if event.date | occured %}we had{% else %}we've got{% endif %}</p>
<p>🤟 This month, {% if event.happened %}we had{% else %}we've got{% endif %}</p>
{% if event.speakers %}
<ul>
{% for speaker in event.speakers %}
Expand Down
7 changes: 3 additions & 4 deletions src/_includes/partials/footer.njk
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<footer class="maybenot-foot">
<h1><strong>Not</strong>JSOxford</h1>
<h1><a href="{{ "/" | url }}"><strong>Not</strong>JSOxford</a></h1>
<div>
<p>
Not just JS, and not really in Oxford either.
A chat on the second Wednesday of the month.
</p>
<p>
Join us: <a href="https://www.youtube.com/channel/UCjXR8G5M-iwkHVF26AFFsCQ">YouTube</a> | <a href="https://slack.digitaloxford.com/">Slack</a> (we're in <a href="https://digitaloxford.slack.com/archives/C0UURPG9H">#jsoxford</a>)<br>
<a href="/coc">Code of Conduct</a>
<a href="{{ "/coc" | url }}">Code of Conduct</a>
</p>
<a class="sponsor" href="https://www.netlify.com">
<a class="sponsor" href="https://www.netlify.com">
<img src="https://www.netlify.com/img/global/badges/netlify-dark.svg" alt="Deploys by Netlify" />
</a>

</div>
</footer>
1 change: 1 addition & 0 deletions src/events/2021-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ speakers:
twitter: javorszky
what: Elixir
stream: https://www.youtube-nocookie.com/embed/ps_UUldWqHY
happened: true
---

#### Vibe
Expand Down
1 change: 1 addition & 0 deletions src/events/2021-02.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ speakers:
twitter: spikeheap
what: Coaching
stream: https://www.youtube-nocookie.com/embed/m8iMGFjVgGg
happened: true
---

Marcus [tweeted about what he's thinking of covering](https://twitter.com/Marcus_Noble_/status/1356600550230548481), so feel free to reach out to him and ask him any specific questions! Or drop into the [#jsoxford slack](https://digitaloxford.slack.com/archives/C0UURPG9H/p1612466756040900) to find out more.
Expand Down
1 change: 1 addition & 0 deletions src/events/2021-03.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ speakers:
twitter: mikerhyssmith
what: Backstage and onboarding new developers
stream:
happened:
---

More info to follow!
8 changes: 8 additions & 0 deletions src/sass/_maybenot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ footer {
margin-right: 1em;
font-size: 6vmin;

a {
text-decoration: none;

&:hover {
text-decoration: underline;
}
}

strong {
font-weight: 800;
display: block;
Expand Down