Commit 58b6bccd authored by Pierre Neidhardt's avatar Pierre Neidhardt

publish.el: Add license header

parent 143bc9a3
;; Inspiration: https://gitlab.com/pages/org-mode.
;;; publish.el --- Build and Org blog -*- lexical-binding: t -*-
;; Copyright (C) 2018 Pierre Neidhardt <[email protected]>
;; Author: Pierre Neidhardt <[email protected]>
;; Maintainer: Pierre Neidhardt <[email protected]>
;; URL: https://gitlab.com/Ambrevar/ambrevar.gitlab.io
;; Version: 0.0.1
;; Package-Requires: ((emacs "26.1"))
;; Keywords: hypermedia, blog, feed, rss
;; This file is not part of GNU Emacs.
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;;
;; The entry point is `ambrevar/publish': run it to prodice the website.
;;
;; Inspirations include https://gitlab.com/pages/org-mode and various websites
;; listed in source/blog-architecture/index.org.
;;; Code:
;; TODO: Load this file as .dir-locals for .org files so that we can org-publish from there?
(require 'ox-publish)
......@@ -195,3 +227,6 @@ See `org-publish-sitemap-default-entry'."
(delete "index.html"
(mapcar (lambda (f) (replace-regexp-in-string ".*/public/" "" f))
(directory-files-recursively "public" "index.html")))))
(provide 'publish)
;;; publish.el ends here
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment