Site Configuration

This is the code that generates my site. The full source for my website is available on GitHub.

Style

body {
  color: #444;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin: auto;
  max-width: 650px;
  padding: 20px;
}

a {
  border-bottom: 1px solid;
  color: #44f;
  text-decoration: none;
}

a:hover {
  background: #eee;
}

pre.src {
  overflow: auto;
}

.menu {
  align-items: baseline;
  display: flex;
  flex-direction: column;
}

.menu-heading {
  border: none;
  color: #444;
  font-size: 1.5em;
  text-transform: uppercase;
}

.menu-link {
  border: none;
  color: #444;
  margin-right: 1em;
}

.title {
  text-align: unset;
}

.date {
  font-size: 70%;
}

Header

<style type='text/css'>
  <<style>>
</style>

Navbar

<div class='header'>
  <div class='menu'>
    <a class='menu-heading'
       href='index.html'>References and Recursion</a>
    <div class='menu-links'>
      <a class='menu-link' href='about.html'>About Me</a>
      <a class='menu-link' href='demos.html'>Demos</a>
    </div>
  </div>
</div>

Publishing configuration

(setq org-publish-project-alist
      '(("blog"
         :auto-sitemap t
         :base-directory "~/blog/"
         :publishing-directory "~/chilliams.github.io/"
         :publishing-function org-html-publish-to-html
         :recursive t
         :section-numbers nil
         :sitemap-filename "index.org"
         :sitemap-sort-files anti-chronologically
         :sitemap-title "Notes"
         :with-toc nil
         :html-head "
<<header>>
"
         :html-preamble-format (("en" "
<<navbar>>
"))
         :html-postamble "<p class=\"date\">%d</p>"
         :html-validation-link "")))

Publish

(require 'ox-publish)
(org-publish-remove-all-timestamps)
(org-publish "blog" t)
(org-publish "blog" t)

2018-09-22 Sat 10:00