IMPORTANT NOTICE: Devheroes public code hosting will shut down at 1st of March 2023. Due to some difficulties, we have to shut down the instance. Since codeberg.org is pretty mature and welcoming, We highly recommend you to move your code there. Please be advised that on 1st of March, your data will be removed. Thanks for your time with us, and may the source be with you.

Browse Source

Fix the templates to match FG42's build system

master
Sameer Rahmani 7 months ago
parent
commit
b512d0ca2e
  1. 38
      build.el
  2. 6
      orgs/templates/blog.html
  3. 2
      orgs/templates/categories.org
  4. 2
      orgs/templates/index.org
  5. 4
      orgs/templates/links_template.org
  6. 2
      orgs/templates/tags.org

38
build.el

@ -1,8 +1,24 @@ @@ -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: @@ -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: @@ -63,4 +89,4 @@ PARAMS:
;; Local Variables:
;; mode: emacs-lisp
;; End:
;;; build.el ends here
;;; build.el ends here

6
orgs/templates/blog.html

@ -11,9 +11,9 @@ @@ -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>

2
orgs/templates/categories.org

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

2
orgs/templates/index.org

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

4
orgs/templates/links_template.org

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

2
orgs/templates/tags.org

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

Loading…
Cancel
Save