diff --git a/blogex/lib/blogex/components.ex b/blogex/lib/blogex/components.ex index 2de29ce..5751c7a 100644 --- a/blogex/lib/blogex/components.ex +++ b/blogex/lib/blogex/components.ex @@ -23,9 +23,11 @@ defmodule Blogex.Components do * `:posts` - list of `%Blogex.Post{}` structs (required) * `:base_path` - base URL path for post links (required) + * `:current_tag` - currently selected tag for highlighting (optional) """ attr :posts, :list, required: true attr :base_path, :string, required: true + attr :current_tag, :string, default: nil def post_index(assigns) do ~H""" @@ -35,7 +37,7 @@ defmodule Blogex.Components do
{post.description}