Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Add new variable pages that add one or more css files #42

Open
javierartero opened this issue Oct 3, 2018 · 0 comments
Open

Add new variable pages that add one or more css files #42

javierartero opened this issue Oct 3, 2018 · 0 comments
Assignees
Labels

Comments

@javierartero
Copy link
Member

javierartero commented Oct 3, 2018

---
title: Welcome to marsman
body: home
active: home
css: home
---

refactor and improve the following code

    <% if (class_active = current_page.metadata[:page][:css].to_s) %>
      <% class_active.split(',').map(&:lstrip).each do |item| %>
        <%= stylesheet_pack_tag item %>
      <% end %>
    <% end %>
@javierartero javierartero self-assigned this Oct 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant