Skip to content

Commit

Permalink
Merge pull request #735 from oddbird/no-workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
mirisuzanne authored Nov 4, 2024
2 parents 3f5aa54 + d9eb200 commit e9a59bb
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 28 deletions.
10 changes: 0 additions & 10 deletions content/_includes/page/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@
</div>
{%- endif %}

{%- set show_workshop = feature_workshop or (tags and (('CSS' in tags) or ('_talk' in tags))) or oss -%}
{%- set fw = collections._talk | findPage('data.feature', 'workshop') -%}
{%- set is_workshop = page.url == fw.url -%}
{%- if fw and show_workshop and not is_workshop -%}
<section data-typeset>
{% import "page/workshop.macros.njk" as workshop %}
{{ workshop.feature(fw) }}
</section>
{%- endif -%}

{% include 'page/mentions.njk' %}

{% if oss or sponsors %}
Expand Down
6 changes: 0 additions & 6 deletions content/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ tools:
{{ embed.logos(work, collections.all) }}
{{ layout.section_link('View work samples', '/work/') }}

{% set fw = collections._talk | findPage('data.feature', 'workshop') %}
{% if fw %}
{% import "page/workshop.macros.njk" as workshop %}
{{ workshop.feature(fw) }}
{% endif %}

{{ post.homepage_posts(
collections,
class='preview'
Expand Down
2 changes: 1 addition & 1 deletion content/oddnews.njk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ summary: |
- **JavaScript** - Guide to Sass's new Node.js package importer
- **App Development** - Web apps vs. PWAs vs. Native apps
- **UX Design** - Strategies for designing more intuitive websites
- **Workshop** - Register for [Cascading Layouts CSS Workshop](/workshops/cascading-layouts/)
- **Workshop** - Details about upcoming workshops
- **Bird of the Month** - Introduction to the oddest of birds
{%- endset -%}

Expand Down
1 change: 0 additions & 1 deletion content/services/index.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
feature_workshop: true
title: Services
banner: OddBird's Services
services:
Expand Down
6 changes: 0 additions & 6 deletions content/talks.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ summary: |
{% import 'talks.macros.njk' as talks %}
{% import 'post.macros.njk' as post %}

{% set fw = collections._talk | findPage('data.feature', 'workshop') %}
{% if fw %}
{% import "page/workshop.macros.njk" as workshop %}
{{ workshop.feature(fw) }}
{% endif %}

{{ quotes.find(
collections.all,
slugs=['spot-on', 'popular-tutorial']
Expand Down
1 change: 0 additions & 1 deletion content/tools/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Tools
banner: Open Source Tools
sub: We build tools that millions of developers rely on
cta: workshop
action:
text: Related posts »
url: /tags/oddtools/
Expand Down
3 changes: 0 additions & 3 deletions content/workshops/cascading-styles-deep.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ title: Cascading Style Systems
sub: A workshop on resilient & maintainable CSS
author: miriam
date: 2024-10-14
action:
text: Register for the October workshop »
url: 'https://smashingconf.com/online-workshops/workshops/modern-css-miriam-suzanne'
image:
src: talks/mia-smashing-de.jpg
position: top
Expand Down

0 comments on commit e9a59bb

Please sign in to comment.