Skip to content

Commit

Permalink
fix: empty series badge
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmcodes committed Jan 9, 2022
1 parent e86780c commit 094c91a
Show file tree
Hide file tree
Showing 21 changed files with 36 additions and 40 deletions.
22 changes: 10 additions & 12 deletions src/_layouts/post.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@

<div class="flex flex-col space-y-4">
<dl class="space-y-4">
<% resource.taxonomies.series.terms.each do |term| %>
<div class="space-y-2">
<dt class="text-sm text-skin-muted">
Tags
</dt>
<dd class="flex space-x-2 text-sm text-skin">
<% resource.taxonomies.tag.terms.each do |term| %>
<%= render Badge.new(href: "/tags/#{term.label}/").with_content(term.label) %>
<% end if resource.taxonomies.tag %>
</dd>
</div>
<% end %>
<div class="space-y-2">
<dt class="text-sm text-skin-muted">
Tags
</dt>
<dd class="flex space-x-2 text-sm text-skin">
<% resource.taxonomies.tag.terms.each do |term| %>
<%= render Badge.new(href: "/tags/#{term.label}/").with_content(term.label) %>
<% end if resource.taxonomies.tag %>
</dd>
</div>
<% resource.taxonomies.series.terms.each do |term| %>
<div class="space-y-2">
<dt class="text-sm text-skin-muted">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: 15 Resources I Learned Something From This Weekend
description: I wanted to get a lot of writing done this weekend but unfortunately I had to take care of a cranky a...
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: 8 Tailwind CSS resources to help your next project takeoff
description: 'Let''s face it, no matter whether its our first or hundredth time, staring at a blank Tailwind CSS is...'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: "A11Y in Rails: Automated Linting with AccessLint\U0001F389"
description: 'Accessibility (A11Y) testing cannot be fully automated, and requires special attention in order to ge...'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: Automating Ruby Gem Releases with GitHub Actions
description: 'Whether you are a gem maintaining machine or new to the world of authoring gems, this tutorial is for...'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
series: ''
series: null
featured: false
title: 'Build and deploy a static site with Ruby, Bridgetown, TailwindCSS, and Netlify'
description: Heads up! This post is a bit outdated. Demo Repository Demo Website What is Bridgetown...
description: Heads up! This post is a bit outdated.
urls:
dev_to: 'https://dev.to/andrewmcodes/build-and-deploy-a-static-site-with-ruby-bridgetown-tailwindcss-and-netlify-3934'
tags:
Expand Down
4 changes: 2 additions & 2 deletions src/_posts/archive/ci-for-ruby-on-rails-circleci.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: ci-for-ror
featured: false
title: 'CI for Ruby on Rails: CircleCI'
description: 'CI for Ruby on Rails: GitHub Actions vs. CircleCI This is part of a three part series wher...'
Expand All @@ -12,7 +12,7 @@ tags:
- circleci
categories: tutorial
date: '2020-01-17T06:51:53Z'
lastmod: '2022-01-09T13:35:38.103Z'
lastmod: '2022-01-09T18:39:45.286Z'
---

_This is part of a three part series where I will walk you through setting up your CI suite with GitHub Actions, CircleCI, and then comparing which you may want to use if you are setting up continuous integration for your Rails app._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
series: ''
series: ci-for-ror
featured: false
title: 'CI for Ruby on Rails: GitHub Actions vs. CircleCI'
description: 'CI for Ruby on Rails: GitHub Actions vs. CircleCI This is part of a three part series wher...'
description: 'CI for Ruby on Rails: GitHub Actions vs. CircleCI.'
urls:
dev_to: 'https://dev.to/codefund/ci-for-ruby-on-rails-github-actions-vs-circleci-524p'
tags:
Expand All @@ -12,11 +12,9 @@ tags:
- github
categories: tutorial
date: '2020-01-17T06:57:38Z'
lastmod: '2022-01-09T13:40:38.388Z'
lastmod: '2022-01-09T18:40:11.097Z'
---

# CI for Ruby on Rails: GitHub Actions vs. CircleCI

_This is part of a three part series where I will walk you through setting up your CI suite with GitHub Actions, CircleCI, and then comparing which you may want to use if you are setting up continuous integration for your Rails app._

## Part 3: Comparison
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: Creating a blog with Bridgetown and Netlify CMS
description: This is a quick tutorial to showcase how you can quickly integrate Netlify CMS into your Bridgetown s...
Expand Down
4 changes: 2 additions & 2 deletions src/_posts/archive/gem-install-mysql2.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: gem install mysql2
description: I've come across this error several times throughout my development career so I figured it was finall...
Expand All @@ -12,7 +12,7 @@ tags:
- gem
categories: tutorial
date: '2020-12-11T12:20:02Z'
lastmod: '2022-01-09T13:35:44.555Z'
lastmod: '2022-01-09T18:41:43.738Z'
---

I've come across this error several times throughout my development career so I figured it was finally time to write it down.
Expand Down
2 changes: 1 addition & 1 deletion src/_posts/archive/how-i-use-vscode.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: How I Use VSCode
description: I’m about to overhaul my settings and plugins in VSCode so this is my “before” shot. I recently upd...
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: How to inline SVG files in your Bridgetown site
description: This is a short tutorial to showcase how you can quickly integrate bridgetown-inline-svg into your Br...
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: How to set up Ruby on Rails 6 and TailwindCSS 1.1.4
description: 'Tutorial For the purpose of this tutorial, we will assume you have Ruby and the Rails gem...'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: Instantly speed up your Rails application by self-hosting your fonts
description: Instantly speed up your Rails application by self-hosting your fonts A font can make or br...
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: true
title: 'Rails 6 Band-Aid for Webpacker::Manifest::MissingEntryError'
description: 'At CodeFund, we try to keep our dependencies, including Rails, as up to date as possible. We upgraded...'
Expand Down
2 changes: 1 addition & 1 deletion src/_posts/archive/rails-coverage-tools-codefactor.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: 'Rails Coverage Tools: CodeFactor'
description: 'CodeFactor According to their documentation: CodeFactor instantly performs Code Review w...'
Expand Down
2 changes: 1 addition & 1 deletion src/_posts/archive/rails-coverage-tools-coverband.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: 'Rails Coverage Tools: Coverband'
description: 'Coverband According to their documentation, Coverband is: A gem to measure production co...'
Expand Down
2 changes: 1 addition & 1 deletion src/_posts/archive/redesigning-my-website.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: 'Redesigning my website '
description: My personal website - andrewm.codes has gone through many iterations over the years. Some may view my...
Expand Down
2 changes: 1 addition & 1 deletion src/_posts/archive/stopping-a-runaway-rails-server.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: Stopping a runaway Rails server
description: 'Many of us have been there. You hit ctrl-c on you Ruby on Rails server, but nothing happens. No matte...'
Expand Down
4 changes: 2 additions & 2 deletions src/_posts/archive/unhide-macos-desktop-icons.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: How to Unhide Desktop Icons on macOS
description: 'If your desktop icons dissapear, you may need to toggle the desktop on via the command line.'
Expand All @@ -9,7 +9,7 @@ tags:
- alfred
category: til
date: '2021-06-05T11:22:38-07:00'
lastmod: '2022-01-09T13:45:03.917Z'
lastmod: '2022-01-09T18:39:05.301Z'
---

One day I realized all of the desktop icons on my 2019 MacBook Pro were missing, but still visible in Finder. I thought maybe it was a bug in Big Sur 11.4 but I eventually found the solution.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
series: ''
series: null
featured: false
title: Use Tailwind CSS 1.1 in your Rails App
description: How to install Tailwind CSS 1.1 in a Ruby on Rails app.
Expand Down

0 comments on commit 094c91a

Please sign in to comment.