a few fixes

This commit is contained in:
Yann Esposito (Yogsototh) 2021-04-27 15:21:06 +02:00
parent b0760a35cb
commit 4ddc050e2c
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
16 changed files with 29 additions and 23 deletions

View File

@ -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)

View File

@ -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 Executable file
View File

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

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

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

View File

@ -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">