diff --git a/Makefile b/Makefile
index d79f731..5dbc928 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,18 @@
clean:
rm -rf build
- rm -rf ./orgs/index.org ./orgs/categories/index.org ./orgs/tags/index.org
+ rm -rf ./orgs/index.org ./orgs/categories/ ./orgs/tags/
+ mkdir -p ./orgs/categories/ ./orgs/tags/
rm -rf `find . -iname "*~"`
dev-build:
./build.el
-
build:
LXHOME_PROD=t ./build.el
+deploy: clean build
+ rsync -vlcr --delete-after ./build/ lxsameer@core.lxsameer.com:/home/lxsameer/lxsameer.com/home/
+
+
serve: build
npx http-server -p 3003 ./build
diff --git a/build.el b/build.el
index 4aa0986..50a79b1 100755
--- a/build.el
+++ b/build.el
@@ -140,11 +140,6 @@ Not pages."
(get-all-categories))
-(defun extra-headers ()
- "Retun a list of extra header html tags."
- (concat
- ""))
-
(defun category-org-list ()
"Return a list of links to the categories in org format."
@@ -240,11 +235,11 @@ Not pages."
(defun main ()
"The entry point to the build script."
- ;; Setup the emacs theme so htmlize can actually setup
- ;; the code highlighter
- (load-theme 'dracula t)
- (enable-theme 'dracula)
-
+ ;; UTF-8 as default encoding
+ (prefer-coding-system 'utf-8)
+ (set-default-coding-systems 'utf-8)
+ (set-terminal-coding-system 'utf-8)
+ (set-keyboard-coding-system 'utf-8)
(setq project-root (car command-line-args-left))
@@ -319,7 +314,6 @@ Not pages."
:with-toc nil
:base-url ,base-url
:html-link-home "/"
- :html-head-extra ,(extra-headers)
:html-template ,(from-root "/templates/blog.html")
:html-page-preamble-template ,(from-root "/templates/page-preamble.html")
:html-post-preabmle-template ,(from-root "/templates/post-preamble.html")
@@ -347,7 +341,6 @@ Not pages."
:html-link-home "/"
:html-head-include-default-style nil
:html-head-include-scripts nil
- :html-head-extra ,(extra-headers)
:makeindex nil)
("pdfs"
diff --git a/lisp/ox-template.el b/lisp/ox-template.el
index 41a9dec..27c4eeb 100644
--- a/lisp/ox-template.el
+++ b/lisp/ox-template.el
@@ -120,6 +120,9 @@ call `org-html-render-tag-template' otherwise will call ORIG-FN."
("head" (plist-get info :html-head-extra))
("base-url" (plist-get info :base-url))
("preamble" (org-html--build-pre/postamble 'preamble info))
+ ("title" (get-file-global-props (plist-get info :input-file) "TITLE"))
+ ("description" (or (get-file-global-props (plist-get info :input-file) "DESC")
+ ""))
("postamble" (org-html--build-pre/postamble 'postamble info)))))
(mustache-render (use-html template-name) ctx)))
@@ -133,6 +136,7 @@ call `org-html-render-tag-template' otherwise will call ORIG-FN."
(defun custom-drawer-format (name content)
+ "Return the drawer format for the given drawer NAME and CONTENT."
(format "
%s
%s"
(downcase name)
(capitalize name)
diff --git a/orgs/coh.org b/orgs/coh.org
index cb8ccf1..324e659 100644
--- a/orgs/coh.org
+++ b/orgs/coh.org
@@ -4,6 +4,7 @@
#+DATE: 2021-02-11
#+TITLE: Code of Honor
#+PAGE: true
+#+DESC: A man is nothing without his honor
I always try to live by my code of honor. A man is nothing without his honor. “A sin is to betray your beliefs”.
diff --git a/orgs/essays/choosing-the-target-platform.org b/orgs/essays/choosing-the-target-platform.org
index 18815d3..5b33230 100644
--- a/orgs/essays/choosing-the-target-platform.org
+++ b/orgs/essays/choosing-the-target-platform.org
@@ -3,6 +3,7 @@
#+CATEGORY: Engineering
#+DATE: 2019-12-07
#+TITLE: Choosing the target platform
+#+DESC: What platform is suitable for Serene ?
After wrapping my head around the [[file:rational-and-a-name.org][rational]] of [[file:my-new-programming-language.org][My new programming language]], I have
a big decision to make. Choose a platform.
diff --git a/orgs/essays/rational-and-a-name.org b/orgs/essays/rational-and-a-name.org
index d00e6fd..2ccee2b 100644
--- a/orgs/essays/rational-and-a-name.org
+++ b/orgs/essays/rational-and-a-name.org
@@ -3,6 +3,7 @@
#+CATEGORY: Engineering
#+DATE: 2019-12-01
#+TITLE: Rational and a name
+#+DESC: The rational behind Serene
*This post is a draft and I'll finish it gradually*
diff --git a/orgs/essays/serene-simple-version.org b/orgs/essays/serene-simple-version.org
index 2921537..a137f3c 100644
--- a/orgs/essays/serene-simple-version.org
+++ b/orgs/essays/serene-simple-version.org
@@ -3,6 +3,7 @@
#+CATEGORY: Engineering
#+DATE: 2020-01-03
#+TITLE: Serene (simple versoin)
+#+DESC: Overview of the simple version of Serene
As you might already know I'm working on [[file:my-new-programming-language.org][my own programming language]]
for a while now. I'm still on early stages and working on [[file:choosing-the-target-platform.org][choosing the right platform]]
diff --git a/orgs/index.org b/orgs/index.org
index 8797ba9..ec2b269 100644
--- a/orgs/index.org
+++ b/orgs/index.org
@@ -4,6 +4,7 @@
#+DATE: 2021-02-11
#+TITLE: The little nest of mine
#+PAGE: true
+#+DESC: All about lxsameer's experience in science and engineering
Welcome to my little piece of the world. I'm a software engineer by day and an armature scientist by night
who lives by his [[./coh.org][Code of Honor]]. I write about my thoughts and researches. The views expressed here are my
@@ -16,8 +17,8 @@ with me via email (check my [[./gpg.org][GPG]] info page). If you have a questio
in the [[./faq.org][FAQs]] page.
* Recent updates:
- - [[http://localhost:3003/essays/serene-simple-version.html][Serene (simple versoin)]]
- - [[http://localhost:3003/essays/choosing-the-target-platform.html][Choosing the target platform]]
- - [[http://localhost:3003/essays/rational-and-a-name.html][Rational and a name]]
- - [[http://localhost:3003/essays/my-new-programming-language.html][My new programming language]]
- - [[http://localhost:3003/essays/transaction-variants.html][Transaction Variants]]
+ - [[https://lxsameer.com/essays/serene-simple-version.html][Serene (simple versoin)]]
+ - [[https://lxsameer.com/essays/choosing-the-target-platform.html][Choosing the target platform]]
+ - [[https://lxsameer.com/essays/rational-and-a-name.html][Rational and a name]]
+ - [[https://lxsameer.com/essays/my-new-programming-language.html][My new programming language]]
+ - [[https://lxsameer.com/essays/transaction-variants.html][Transaction Variants]]
diff --git a/orgs/sitemap.inc b/orgs/sitemap.inc
index 7544366..fc0894a 100644
--- a/orgs/sitemap.inc
+++ b/orgs/sitemap.inc
@@ -1,6 +1,5 @@
#+TITLE: lxsameer's nest
-- [[file:thoughts.org][Inner world]]
- [[file:essays/serene-simple-version.org][Serene (simple versoin)]]
- [[file:essays/choosing-the-target-platform.org][Choosing the target platform]]
- [[file:essays/rational-and-a-name.org][Rational and a name]]
@@ -13,11 +12,6 @@
- [[file:faq.org][FAQ]]
- [[file:gpg.org][Code of Honor]]
- [[file:coh.org][Code of Honor]]
-- [[file:categories/nil.org][<<
>>]]
-- [[file:categories/SLA.org][SLA]]
-- [[file:tags/ASDK.org][ASDK]]
-- [[file:tags/BD.org][BD]]
-- [[file:tags/ABD.org][ABD]]
- [[file:tags/index.org][index]]
- [[file:categories/index.org][index]]
- [[file:index.org][blah]]
\ No newline at end of file
diff --git a/templates/blog.html b/templates/blog.html
index d980079..ba4bc6b 100644
--- a/templates/blog.html
+++ b/templates/blog.html
@@ -1,6 +1,15 @@
+
+
+ {{title}}
+
+
+
+
+
+
{{{head}}}
diff --git a/templates/index.org b/templates/index.org
index 3910ea1..e1318ef 100644
--- a/templates/index.org
+++ b/templates/index.org
@@ -4,6 +4,7 @@
#+DATE: 2021-02-11
#+TITLE: The little nest of mine
#+PAGE: true
+#+DESC: All about lxsameer's experience in science and engineering
Welcome to my little piece of the world. I'm a software engineer by day and an armature scientist by night
who lives by his [[./coh.org][Code of Honor]]. I write about my thoughts and researches. The views expressed here are my