diff --git a/build.el b/build.el index e93a493..b9991b1 100755 --- a/build.el +++ b/build.el @@ -1,8 +1,24 @@ :;exec `echo $EMACS_PATH` --no-site-file --no-site-lisp --batch -L ./ -l "$0" -f main "$(cd "$(dirname "$0")/." >/dev/null 2>&1 ; pwd -P)" "$@" - -;;; build.el --- The build script of my personal website +;;; Build.el --- The build script of my personal website -*- lexical-binding: t; -*- +;; +;; Copyright (c) 2020-2022 Sameer Rahmani & Contributors +;; ;;; Version: 0.1.0 ;;; Package-Version 0.1.0 +;; +;; 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 thnis program. If not, see . +;; ;;; Commentary: ;;; Code: @@ -34,17 +50,27 @@ PARAMS: (defproject lxsameer.com project-root (nth 2 command-line-args-left) docs-root "/orgs" - prod-base-url "lxsameer.com" + prod-base-url "https://lxsameer.com" docs-pages-dir "/essays" docs-actions '(copy-necessary-files) - docs-ignore-category-check '("thoughts.org") - ) + docs-ignore-category-check '("thoughts.org")) (defun copy-necessary-files (build-dir base-url) + "Copy the top level pages to the BUILD-DIR with BASE-URL" + (copy-file (expand-file-name "orgs/coh.org" fg42/build-project-root) + (expand-file-name "site/coh.org" build-dir)) + + (copy-file (expand-file-name "orgs/faq.org" fg42/build-project-root) + (expand-file-name "site/faq.org" build-dir)) + + (copy-file (expand-file-name "orgs/gpg.org" fg42/build-project-root) + (expand-file-name "site/gpg.org" build-dir)) + (copy-file (expand-file-name "thoughts.org" fg42/build-project-root) (expand-file-name "thoughts.org" build-dir))) + (command-> command args ((string= command "docs") (do-command @@ -63,4 +89,4 @@ PARAMS: ;; Local Variables: ;; mode: emacs-lisp ;; End: -;;; build.el ends here + ;;; build.el ends here diff --git a/orgs/templates/blog.html b/orgs/templates/blog.html index 804d817..a63b231 100644 --- a/orgs/templates/blog.html +++ b/orgs/templates/blog.html @@ -11,9 +11,9 @@ {{{head}}} - - - + + + diff --git a/orgs/templates/categories.org b/orgs/templates/categories.org index 2b879e4..10a5fef 100644 --- a/orgs/templates/categories.org +++ b/orgs/templates/categories.org @@ -4,4 +4,4 @@ #+PAGE: true #+TITLE: Categories -<<>> +<<<:links>>> diff --git a/orgs/templates/index.org b/orgs/templates/index.org index bb512f5..d935064 100644 --- a/orgs/templates/index.org +++ b/orgs/templates/index.org @@ -27,4 +27,4 @@ in the [[./faq.org][FAQs]] page. * Recent updates: -<<>> +<<<:links>>> diff --git a/orgs/templates/links_template.org b/orgs/templates/links_template.org index 0715acd..0cbfd12 100644 --- a/orgs/templates/links_template.org +++ b/orgs/templates/links_template.org @@ -1,7 +1,7 @@ #+SETUPFILE: ../../config.org #+OPTIONS: toc:nil -#+TITLE: <<>> +#+TITLE: <<<:title>>> #+PAGE: true -<<<links>>> +<<<:links>>> diff --git a/orgs/templates/tags.org b/orgs/templates/tags.org index 1362940..ca28a44 100644 --- a/orgs/templates/tags.org +++ b/orgs/templates/tags.org @@ -5,4 +5,4 @@ #+TITLE: Tags -<<<links>>> +<<<:links>>>