An Experience Report
Created: 2022-10-29 Sat 12:05
An experience report
Adolfo Villafiorita mailto:adolfo@shair.tech
Shair.Tech https://shair.tech
DataScientia Education http://datascientia.education/cl-2020
Jekyll is a static website generator written in Ruby
<ul> {% for post in site.posts %} <li> <a href="{{ post.url }}">{{ post.title }}</a> </li> {% endfor %} </ul>
jekyll-org
gemOrg Mode is (also) a static website generator!
Babel can generate all the “dynamic” content, for instance, by executing a Ruby script which reads the meta content of all pages
#+BEGIN_SRC ruby :exports results :results output html require 'org-ruby' require 'date' # metadata.rb imitates Jekyll and it creates a list of the files belonging to the site load "../_scripts/metadata.rb" posts = Metadata.collect "*" puts "<li>" posts.each do |post| puts "<a href=\"#{post[:relative_url]}\">#{post.title}</a>" end puts "</li>" #+END_SRC
#+INCLUDE:
can be used to inject HTML in all pages (e.g.,
navigation)website.el
defining two emacs-lisp functions:
website-server-start
and website-deploy
Thanks! Questions?
Adolfo Villafiorita
mailto:adolfo@shair.tech
https://ict4g.net/adolfo