motyl

Opinionated blog-aware static site generator written in Ruby
Log | Files | Refs | README | LICENSE

commit c629fa96342601725992c5c052a3c13995e06fa3
parent 2fbd25223e610869596b3b18a5da4fb667c84219
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 13 Mar 2018 15:49:01 +0100

Rename 'categoryURL' to 'category_url'

Diffstat:
Msrc/motyl.rb | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/motyl.rb b/src/motyl.rb @@ -105,14 +105,14 @@ data["page"] = {} Dir.mkdir("public/categories") unless Dir.exist?("public/categories") data["categories"].keys.each do |category| - categoryURL = data["site"]["categoryMap"][category] + "/" + category_url = data["site"]["categoryMap"][category] + "/" data["categories"][category].sort! { |a,b| b["date"] <=> a["date"] } data["page"]["title"] = category - data["page"]["url"] = "categories/" + categoryURL + data["page"]["url"] = "categories/" + category_url data["posts"] = data["categories"][category] - Dir.mkdir("public/categories/" + categoryURL) unless Dir.exist?("public/categories/" + categoryURL) - File.write("public/categories/" + categoryURL + "index.html", Mustache.render(templates["categories"], data)) - status("Rendering " + categoryURL) + Dir.mkdir("public/categories/" + category_url) unless Dir.exist?("public/categories/" + category_url) + File.write("public/categories/" + category_url + "index.html", Mustache.render(templates["categories"], data)) + status("Rendering " + category_url) end