MarsBased / marsman

Frontend framework for starting new projects
MIT License
55 stars 6 forks source link

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

Open javierartero opened 5 years ago

javierartero commented 5 years ago
---
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 %>