diff --git a/src/archive.org b/src/archive.org index 5b8039b..037df31 100644 --- a/src/archive.org +++ b/src/archive.org @@ -1,6 +1,7 @@ #+TITLE: Blog Posts - +#+AUTHOR: Yann Esposito +#+EMAIL: yann.esposito@gmail.com #+begin_archive -@@html:
  • @@ @@html:@@ Jul 05, 2019 @@html:@@ [[file:posts/2019-07-04-org-publish.org][org-publish]] @@html:@@ @@html:
  • @@ +@@html:
  • @@ @@html:@@ 2019-07-05: @@html:@@ [[file:posts/2019-07-04-org-publish.org][org-publish]] @@html:@@ @@html:
  • @@ #+end_archive diff --git a/src/assets/css/minimalist.css b/src/assets/css/minimalist.css index ea74a87..331d9d3 100644 --- a/src/assets/css/minimalist.css +++ b/src/assets/css/minimalist.css @@ -46,7 +46,7 @@ hr { } hr:after { content: "----------------------------------------------------------------------------------------------------"; - font-family: monospace; + font-family: "courrier new", monospace; position: absolute; opacity: 0.3; top: 0; @@ -123,3 +123,10 @@ img { max-width: 100%; margin: 20px auto; } footer { font-size: 0.8em; opacity: 0.5; } footer:hover { opacity: 1; } +navigation { font-weight: bold; + font-family: "courrier new", monospace; + } +navigation a { display: inline-block; + padding: .5ex 1ex; + margin-right: 1em; + } diff --git a/src/index.org b/src/index.org index 2216efc..3655f24 100644 --- a/src/index.org +++ b/src/index.org @@ -17,29 +17,32 @@ (defun org-blog-prepare (project-plist) "With help from `https://github.com/howardabrams/dot-files'. - Touch `index.org' to rebuilt it. - Argument `PROJECT-PLIST' contains information about the current project." + Touch `index.org' to rebuilt it. + Argument `PROJECT-PLIST' contains information about the current project." (let* ((base-directory (plist-get project-plist :base-directory)) (buffer (find-file-noselect (expand-file-name "index.org" base-directory) t))) (with-current-buffer buffer (set-buffer-modified-p t) - (save-buffer 0)) - (kill-buffer buffer))) + (save-buffer 0)))) (defvar org-blog-head - " - - - ") + (concat + "" + "" + "" + "")) (defun org-blog-preamble (_plist) "Pre-amble for whole blog." - "Programing Heresy") + "Her.esy.fun") (defun menu () "Blog menu" - "Home - - Posts") + (concat + "" + "Home" + "Posts" + "")) (defun get-from-info (info k) (let ((i (car (plist-get info k)))) @@ -49,35 +52,39 @@ (defun org-blog-postamble (info) "Post-amble for whole blog." (concat "")) + "" + "
    " + (menu))) (defun org-blog-sitemap-format-entry (entry _style project) "Return string for each ENTRY in PROJECT." (when (s-starts-with-p "posts/" entry) - (format "@@html:@@ %s @@html:@@ [[file:%s][%s]] @@html:@@" - (format-time-string "%h %d, %Y" + (format "@@html:@@ %s: @@html:@@ [[file:%s][%s]] @@html:@@" + (format-time-string "%Y-%m-%d" (org-publish-find-date entry project)) entry (org-publish-find-title entry project)))) (defun org-blog-sitemap-function (title list) "Return sitemap using TITLE and LIST returned by `org-blog-sitemap-format-entry'." - (concat "#+TITLE: " title "\n\n" + (concat "#+TITLE: " title "\n" + "#+AUTHOR: Yann Esposito\n" + "#+EMAIL: yann.esposito@gmail.com\n" "\n#+begin_archive\n" (mapconcat (lambda (li) (format "@@html:
  • @@ %s @@html:
  • @@" (car li))) diff --git a/src/posts/2019-07-04-org-publish.org b/src/posts/2019-07-04-org-publish.org index 60d20b5..ad6199c 100644 --- a/src/posts/2019-07-04-org-publish.org +++ b/src/posts/2019-07-04-org-publish.org @@ -1,6 +1,7 @@ #+TITLE: Static blog with org-mode #+AUTHOR: Yann Esposito #+EMAIL: yann.esposito@gmail.com +#+DATE: 2019-07-04 #+KEYWORDS: programming, blog, org-mode This is the first article using my new blog system. @@ -43,4 +44,8 @@ First imagine a Markdown but more TODO list oriented. But along with this, emacs has a lot of helper functions to work with those org-mode files. +One real game changer is ~org-capture~. +You can add a task quite easily while doing other work in emacs. + + [fn:vim] I wrote this article to help people use vim: [[http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/][learn vim progressively]]