Browse Source

a few fixes

makefile
parent
commit
4ddc050e2c
Signed by: yogsototh GPG Key ID: 7B19A4C650D59646
  1. 19
      Makefile
  2. 4
      engine/mk-index.sh
  3. 3
      engine/search-bad-keywords.sh
  4. 2
      src/css/y.css
  5. 2
      src/drafts/XXXX-Haskell-Projects/index.org
  6. 2
      src/drafts/XXXX-abstractions-haskell-vs-clojure/index.org
  7. 2
      src/drafts/XXXX-how-i-use-nix/index.org
  8. 2
      src/drafts/XXXX-professional-lessons-and-opinions.draft/index.org
  9. 2
      src/posts/0001-new-blog/index.org
  10. 2
      src/posts/0003-project-el/index.org
  11. 2
      src/posts/0004-how-i-internet/index.org
  12. 2
      src/posts/0005-rss-gen/index.org
  13. 2
      src/posts/0006-modern-irc/index.org
  14. 2
      src/posts/0013-how-to-choose-your-tools/index.org
  15. 2
      src/slides.org
  16. 2
      templates/post.html

19
Makefile

@ -45,10 +45,11 @@ $(DST_DIR)/%.html: $(SRC_DIR)/%.org $(TEMPLATE)
# HTML INDEX
HTML_INDEX := $(DST_DIR)/index.html
MKINDEX := engine/mk-index.sh
$(HTML_INDEX): $(SRC_PANDOC_FILES)
$(HTML_INDEX): $(SRC_PANDOC_FILES) $(MKINDEX)
mkdir -p $(DST_DIR)
engine/mk-index.sh
$(MKINDEX)
ALL += $(HTML_INDEX)
@ -60,10 +61,9 @@ DST_GMI_FILES ?= $(subst $(EXT),.gmi, \
$(SRC_GMI_FILES)))
ALL += $(DST_GMI_FILES)
GMI := engine/org2gemini.sh
$(DST_DIR)/%.gmi: $(SRC_DIR)/%.org
$(DST_DIR)/%.gmi: $(SRC_DIR)/%.org $(GMI)
mkdir -p $(dir $@)
$(GMI) "$<" "$@"
@ -71,14 +71,19 @@ $(DST_DIR)/%.gmi: $(SRC_DIR)/%.org
# OPTIM PHASE
OPTIM_DIR ?= _optim
$(OPTIM_DIR)/index.html: $(HTML_INDEX) $(SRC_RAW_FILES)
OPTIM := engine/pre-deploy.sh
$(OPTIM_DIR)/index.html: $(HTML_INDEX) $(SRC_RAW_FILES) $(OPTIM)
mkdir -p $(OPTIM_DIR)
engine/pre-deploy.sh
$(OPTIM)
optim: $(OPTIM_DIR)/index.html
# DEPLOY
deploy: $(OPTIM_DIR)/index.html
engine/sync.sh
engine/sync.sh # deploy to her.esy.fun
engine/ye-com-fastpublish.hs # deploy to yannesposito.com (via github pages)
allatend: $(ALL)

4
engine/mk-index.sh

@ -7,7 +7,7 @@ postsdir="$webdir/posts"
indexfile="$webdir/index.html"
# maximal number of articles to put in the RSS file
maxarticles=10
maxarticles=100
# RSS Metas
rsstitle="her.esy.fun"
@ -69,7 +69,7 @@ for fic in $postsdir/**/*.html; do
absoluteurl="${websiteurl}/${blogfile}"
{ printf "\\n<li>"
printf "\\n<a href=\"%s\">%s</a>" "${blogfile}" "$title"
printf "\\n<span class=\"pubDate\">%s</span>%s" "$rssdate"
printf "\\n<span class=\"pubDate\">%s</span>%s" "$d"
printf "<span class=\"tags\">%s</span>" "$categories"
printf "\\n</li>\\n\\n"
} >> "$tmpdir/${d}-$(basename $fic).index"

3
engine/search-bad-keywords.sh

@ -0,0 +1,3 @@
#!/usr/bin/env bash
rg -w '#\+keywords:.*,' -t org

2
src/css/y.css

@ -3,7 +3,7 @@ html {
font-size: 16px;
line-height: calc(1ex/0.37); }
#TOC {text-align: left;}
html,body { margin: 0; padding: 0; border: 0; }
html,body { margin: 0; padding: 0 0 3em 0; border: 0; }
.main { min-height: calc(100vh - 1em); }
h1,h2,h3,h4,h5,h6 {
line-height: calc(1ex/0.42);

2
src/drafts/XXXX-Haskell-Projects/index.org

@ -3,7 +3,7 @@
#+date: [2020-02-10 Mon]
#+author: Yann Esposito
#+EMAIL: yann@esposito.host
#+keywords: Haskell, programming, functional, tutorial
#+keywords: Haskell programming functional tutorial
#+DESCRIPTION: How to write Haskell application.
#+OPTIONS: auto-id:t toc:t
#+STARTUP: overview

2
src/drafts/XXXX-abstractions-haskell-vs-clojure/index.org

@ -4,7 +4,7 @@
#+created: [2020-01-18 Sat]
#+author: Yann Esposito
#+EMAIL: yann@esposito.host
#+keywords: Haskell, Clojure, programming, fp
#+keywords: Haskell Clojure functional-programming
#+DESCRIPTION: Simulate some abstractions in Clojure vs Haskell
#+OPTIONS: auto-id:t toc:t
#+STARTUP: overview

2
src/drafts/XXXX-how-i-use-nix/index.org

@ -2,7 +2,7 @@
#+Author: Yann Esposito
#+Email: yann@esposito.host
#+Date: [2020-06-14 Sun]
#+KEYWORDS: nix, programming
#+KEYWORDS: nix programming
#+DESCRIPTION: In this article I explain how I use nix. As a brew replacement, as home environment manager, to have reproductible dev environment.
#+LANGUAGE: en
#+LANG: en

2
src/drafts/XXXX-professional-lessons-and-opinions.draft/index.org

@ -2,7 +2,7 @@
#+AUTHOR: Yann Esposito
#+EMAIL: yann@esposito.host
#+DATE: [2019-07-04]
#+KEYWORDS: programming, blog, org-mode
#+KEYWORDS: programming blog org-mode
#+DESCRIPTION: Different divagations about my experiences in the professional world of Software Developer
#+begin_comment

2
src/posts/0001-new-blog/index.org

@ -3,7 +3,7 @@
#+AUTHOR: Yann Esposito
#+EMAIL: yann@esposito.host
#+DATE: [2019-08-17 Sat 16:00]
#+KEYWORDS: programming, blog, org-mode, web, css
#+KEYWORDS: programming blog org-mode web css
#+DESCRIPTION: Meta article about how I generate this blog.
#+OPTIONS: auto-id:t

2
src/posts/0003-project-el/index.org

@ -3,7 +3,7 @@
#+AUTHOR: Yann Esposito
#+EMAIL: yann@esposito.host
#+DATE: [2019-08-18 Sun]
#+KEYWORDS: programming, blog, org-mode
#+KEYWORDS: programming blog org-mode
#+DESCRIPTION: A script I use to load safely an eLISP file when entering a new project directory.
#+OPTIONS: auto-id:t

2
src/posts/0004-how-i-internet/index.org

@ -3,7 +3,7 @@
#+AUTHOR: Yann Esposito
#+EMAIL: yann@esposito.host
#+DATE: [2019-09-23 Mon]
#+KEYWORDS: blog, self-hosting, web, zen, minimalism
#+KEYWORDS: blog self-hosting web zen minimalism
#+DESCRIPTION: How I protect myself against attention grabbers and many social media anti-patterns.
#+OPTIONS: auto-id:t

2
src/posts/0005-rss-gen/index.org

@ -3,7 +3,7 @@
#+AUTHOR: Yann Esposito
#+EMAIL: yann@esposito.host
#+DATE: [2019-09-30 Mon]
#+KEYWORDS: programming, web
#+KEYWORDS: programming web
#+DESCRIPTION: How I generate RSS feed via command line
#+OPTIONS: auto-id:t

2
src/posts/0006-modern-irc/index.org

@ -3,7 +3,7 @@
#+AUTHOR: Yann Esposito
#+EMAIL: yann@esposito.host
#+DATE: [2019-10-19 Sat]
#+KEYWORDS: self-hosting, chat, irc
#+KEYWORDS: self-hosting chat irc
#+DESCRIPTION: Why and how to have modern and respectful chat system with IRC.
#+OPTIONS: auto-id:t toc:t

2
src/posts/0013-how-to-choose-your-tools/index.org

@ -5,7 +5,7 @@
#+Author: Yann Esposito
#+Email: yann@esposito.host
#+Date: [2020-05-09 Sat]
#+KEYWORDS: emacs, softwares
#+KEYWORDS: emacs softwares
#+DESCRIPTION: Modern tools tend to disapears. An app on the web will change, and could break for the worst. Quite often investing in long living tools which are harder start with will be worth the investment.
#+LANGUAGE: en
#+LANG: en

2
src/slides.org

@ -1,5 +1,5 @@
#+TITLE: Slides
#+KEYWORDS: programming, presentations, slides
#+KEYWORDS: programming presentations slides
#+AUTHOR: Yann Esposito
#+EMAIL: yann@esposito.host
#+LANGUAGE: en

2
templates/post.html

@ -41,8 +41,6 @@
</div>
<div id="content">
$body$
<br/>
<a href="$geminiurl$"><code>=> This article is also available on gemini</code></a>
</div>
<div id="postamble" class="status">
<div class="content">

Loading…
Cancel
Save