Browse Source

use musl, update license, update dark.css

tags/v0.7.1
soupi 6 months ago
parent
commit
da6f38d8d7
7 changed files with 53 additions and 3 deletions
  1. +4
    -1
      .gitignore
  2. +1
    -1
      LICENSE
  3. +26
    -0
      Makefile
  4. +2
    -1
      hablog.cabal
  5. +13
    -0
      package.zsh
  6. +4
    -0
      stack.yaml
  7. +3
    -0
      static/css/dark.css

+ 4
- 1
.gitignore View File

@@ -1,5 +1,8 @@

hablog
hablog.tar.gz
dist-newstyle
.stack-work
haddock-up

# Created by https://www.gitignore.io



+ 1
- 1
LICENSE View File

@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Gil Mizrahi
Copyright (c) 2020 Gil Mizrahi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal


+ 26
- 0
Makefile View File

@@ -0,0 +1,26 @@

.PHONY: setup
setup:
stack setup


.PHONY: build
build:
stack build

.PHONY: ghci
ghci:
stack ghci

.PHONY: dev
dev:
stack build --fast --file-watch

.PHONY: run
run:
stack build && stack exec -- hablog http --port 8000

.PHONY: clean
clean:
stack clean && rm -r .stack-work


+ 2
- 1
hablog.cabal View File

@@ -26,6 +26,7 @@ library
base >=4.7 && <5
,scotty
,scotty-tls >= 0.4
,warp-tls == 3.2.12
,blaze-html
,blaze-markup
,text
@@ -91,6 +92,6 @@ Executable hablog
if impl(ghc >= 6.12.0)
other-extensions:
FlexibleInstances
ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields
ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields -static -optl-static -optl-pthread -fPIC
else
ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields

+ 13
- 0
package.zsh View File

@@ -0,0 +1,13 @@
#!/bin/zsh

rm -f .stack-work/install/**/bin/hablog;
rm -r hablog;
stack clean;
stack build;
mkdir -p hablog;
cp -r static hablog;
cp -r _pages hablog;
cp -r _posts hablog;
BIN=`echo .stack-work/install/**/hablog`
cp $BIN hablog;
tar czvf hablog.tar.gz hablog;

+ 4
- 0
stack.yaml View File

@@ -1,5 +1,9 @@
resolver: lts-16.15

docker:
enable: true
image: utdemir/ghc-musl:v16-ghc884

packages:
- '.'



+ 3
- 0
static/css/dark.css View File

@@ -333,3 +333,6 @@ nav li {
.pages {
text-align: center;
}
.main-content { display: flex; flex-wrap: wrap; }
.PostsList { min-width: 480px; margin-right: 1rem; margin-left: 1rem; flex: auto; }
.logo { color: #eef; }

Loading…
Cancel
Save