~arcade/nebula

367b3e2b18a7283c6f3c2d3a6c6b47a58acbfd7c — Arcade Wise 5 months ago 9ec2299
CNAME
4 files changed, 11 insertions(+), 3 deletions(-)

M bin/helix
A docs/CNAME
M site/config.yml
M software/helix/src/helix.cr
M bin/helix => bin/helix +0 -0
A docs/CNAME => docs/CNAME +1 -0
@@ 0,0 1,1 @@
raleighwi.se
\ No newline at end of file

M site/config.yml => site/config.yml +2 -1
@@ 1,4 1,5 @@
url: "localhost:8000"
stylesheet: "stylesheet.css"
# black gray white
recolor: "#002b36 #839496 #fdf6e3"
\ No newline at end of file
recolor: "#002b36 #839496 #fdf6e3"
CNAME: "raleighwi.se"
\ No newline at end of file

M software/helix/src/helix.cr => software/helix/src/helix.cr +8 -2
@@ 63,6 63,7 @@ module Helix
    data.as_h.each do |item|
      configfiledata[item[0].as_s] = item[1].as_s
    end

  else
    STDERR.puts "No config.yml detected in the current directory!"
    exit 1


@@ 145,6 146,11 @@ module Helix
      FileUtils.mkdir_p "out/static"
    end

    if configfiledata.has_key? "CNAME"
      File.write("out/CNAME", configfiledata["CNAME"])
      puts "Wrote CNAME."
    end

    # css minification
    css_files = Dir.glob "theme/static/*.css"
    css_files.each do |filename|


@@ 173,8 179,8 @@ module Helix
    end

    # Static files that need no processing
    staticFiles = Dir.glob ["static/*.txt", "theme/static/*.txt", "content/static/nomod/*"]
    staticFiles.each do |filename|
    static_files = Dir.glob ["static/*.txt", "theme/static/*.txt", "content/static/nomod/*"]
    static_files.each do |filename|
      spawn do # ayyyyee
        FileUtils.cp filename, "out/static/"
      end