Fix the templates to match FG42's build system

This commit is contained in:
Sameer Rahmani 2022-07-04 16:35:54 +01:00
förälder cd6909176b
incheckning b512d0ca2e
6 ändrade filer med 40 tillägg och 14 borttagningar

Visa fil

@ -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 <http://www.gnu.org/licenses/>.
;;
;;; 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

Visa fil

@ -11,9 +11,9 @@
<meta property="og:description" content="{{description}}" />
{{{head}}}
<link rel="stylesheet" href="{{base-url}}/assets/styles/dark.css?1">
<link rel="stylesheet" href="{{base-url}}/assets/styles/main.css?1">
<link rel="stylesheet" href="{{base-url}}/assets/styles/arta.css?1">
<link rel="stylesheet" href="{{base-url}}/assets/styles/dark.css?{{version}}">
<link rel="stylesheet" href="{{base-url}}/assets/styles/main.css?{{version}}">
<link rel="stylesheet" href="{{base-url}}/assets/styles/arta.css?{{version}}">
</head>
<body>

Visa fil

@ -4,4 +4,4 @@
#+PAGE: true
#+TITLE: Categories
<<<links>>>
<<<:links>>>

Visa fil

@ -27,4 +27,4 @@ in the [[./faq.org][FAQs]] page.
* Recent updates:
<<<links>>>
<<<:links>>>

Visa fil

@ -1,7 +1,7 @@
#+SETUPFILE: ../../config.org
#+OPTIONS: toc:nil
#+TITLE: <<<title>>>
#+TITLE: <<<:title>>>
#+PAGE: true
<<<links>>>
<<<:links>>>

Visa fil

@ -5,4 +5,4 @@
#+TITLE: Tags
<<<links>>>
<<<:links>>>