Shukry Zablah

2021-03-02

2021-03-02

Tagged as coleslaw , lisp , google-analytics

In this post I comment on how I added Google Analytics tracking to this website. In my earlier posts I mentioned how I'm using Common Lisp tooling, specifically, the Coleslaw blogware. Coleslaw actually already had a Google Analytics plugin, but unfortunately it used legacy code (the javascript not the lisp) and I did not see any reason to include this in my personal site. This is why I added what I wanted to Coleslaw.

Continue reading

2021-02-25

2021-02-25

Tagged as lisp , coleslaw , pygments , ci/cd

Last post I shared how I was able to set up a Coleslaw-generated static site, deployed on Gitlab Pages. You can check out the progress of this website in my repository.

I had ran into problems using the pygments plugin for syntax highlighting in code blocks. In this short post I will walk through the few steps needed to resolve this.

;; Syntax highlighting works fine!
(define (eval exp env)
  (cond ((self-evaluating? exp) exp)
        ((variable? exp) (lookup-variable-value exp env))
        ((quoted? exp) (text-of-quotation exp))
        ((assignment? exp) (eval-assignment exp env))
        ((definition? exp) (eval-definition exp env))
        ((if? exp) (eval-if exp env))
        ((lambda? exp)
         (make-procedure (lambda-parameters exp)
                         (lambda-body exp)
                         env))
        ((begin? exp) 
         (eval-sequence (begin-actions exp) env))
        ((cond? exp) (eval (cond->if exp) env))
        ((application? exp)
         (apply (eval (operator exp) env)
                (list-of-values (operands exp) env)))
        (else
         (error "Unknown expression type - EVAL" exp))))

Continue reading

2021-02-21

2021-02-21

Tagged as lisp , coleslaw , roswell , docker , ci/cd

I used to use the Hugo static site generator for my personal site. I wanted to try to use Coleslaw instead. I am currently using Common Lisp for fun, so it makes sense to use Common Lisp tooling if possible. In this post I walk through how I set up my computer, my personal site, automatic deployment with Gitlab CI, and a custom theme.

Continue reading