feat: update config, rss

This commit is contained in:
Pavel Korytov 2021-08-31 16:49:11 +05:00
parent 67f3177c8f
commit 78150f2c3e
9 changed files with 80 additions and 87 deletions

View file

@ -897,7 +897,7 @@ The script below allows me to:
```bash
hostname=$(hostname)
# Settings varying on the hostname
export WLAN_INTERFACE=$(nmcli -f DEVICE con show | grep -Ev "(.*docker.*|DEVICE|br.*|tun.*|--)" | xargs)
export WLAN_INTERFACE=$(nmcli -f DEVICE con show | grep -Ev "(.*docker.*|DEVICE|br.*|tun.*|veth.*|--)" | xargs)
if [ "$hostname" = "azure" ]; then
TRAY_MONITOR="eDP-1"
# export WLAN_INTERFACE="wlp3s0"
@ -936,7 +936,7 @@ declare -A BLOCKS=(
)
# Geolocation for some modules
export LOC="SPB"
export LOC="TMN"
export IPSTACK_API_KEY=$(pass show My_Online/APIs/ipstack | head -n 1)
@ -2346,6 +2346,7 @@ This section generates manifests for various desktop software that I'm using.
| dev | node |
| dev | openjdk |
| dev | go |
| dev | gcc-toolchain |
### Manifests {#manifests}

View file

@ -1552,7 +1552,7 @@ Before I figure out how to package this for Guix:
:straight (:host github :repo "SqrtMinusOne/wakatime-mode")
:if (not my/is-termux)
:config
<<wakatime-fixes>>
(setq wakatime-ignore-exit-codes '(0 1 102))
(advice-add 'wakatime-init :after (lambda () (setq wakatime-cli-path "/home/pavel/bin/wakatime-cli")))
;; (setq wakatime-cli-path (executable-find "wakatime"))
(global-wakatime-mode))
@ -4028,7 +4028,7 @@ My bit of config here:
:straight t
:init
(my-leader-def
:keymaps '(js-mode-map typescript-mode-map vue-mode-map svelte-mode-map)
:keymaps '(js-mode-map web-mode-map typescript-mode-map vue-mode-map svelte-mode-map)
"rr" #'prettier-prettify))
```
@ -4101,7 +4101,8 @@ Trying this one out instead of vue-mode and svelte-mode, because this one seems
:config
(add-hook 'web-mode-hook 'smartparens-mode)
(add-hook 'web-mode-hook 'hs-minor-mode)
(my/set-smartparens-indent 'web-mode))
(my/set-smartparens-indent 'web-mode)
(add-hook 'web-mode-hook ))
```
Hooking this up with lsp.
@ -4120,6 +4121,16 @@ Hooking this up with lsp.
(add-hook 'web-mode-hook #'my/web-mode-lsp)
```
Vue settings
```emacs-lisp
(defun my/web-mode-vue-setup ()
(when (string-match-p (rx ".vue" eos) (buffer-name))
(setq-local web-mode-script-padding 0)))
(add-hook 'web-mode-hook 'my/web-mode-vue-setup)
```
#### <span class="org-todo done OFF">OFF</span> (OFF) Vue.js {#off--vue-dot-js}
@ -4763,7 +4774,7 @@ For some reason it doesn't use pipenv python executable, so here is a small work
(if asc
(cdr asc)
(let ((python-executable
(string-trim (shell-command-to-string "PIPENV_IGNORE_VIRTUALENVS=1 pipenv run which python"))))
(string-trim (shell-command-to-string "PIPENV_IGNORE_VIRTUALENVS=1 pipenv run which python 2>/dev/null"))))
(if (string-match-p ".*not found.*" python-executable)
(message "Pipfile found, but not pipenv executable!")
(message (format "Found pipenv python: %s" python-executable))
@ -5469,7 +5480,7 @@ After all this is done, run `M-x emms-cache-set-from-mpd-all` to set cache from
[mpv](https://mpv.io/) is a decent media player, which has found a place in this configuration because it integrates with youtube-dl.
```emacs-lisp
(add-to-list 'emms-player-list 'emms-player-mpv t)
(add-to-list 'emms-player-list 'emms-player-mpv)
```
Also a custom regex. My demands for MPV include running `youtube-dl`, so there is a regex that matches youtube.com or some of the video formats.

View file

@ -13,7 +13,7 @@ The majority of the software is configured with [literate configuration](https:/
The files themselves are managed and deployed via [yadm](https://yadm.io/), but I mostly use Org Mode rich noweb whenever I can instead of what yadm offers.
My current GNU/Linux distribution is [GNU Guix](https://guix.gnu.org/). In the context of this repo, Guix allows me to list all the used programs in manifests, which means I have the same set of programs across multiple machines. Looks for Org tables with "Guix dependency" in the header.
My current GNU/Linux distribution is [GNU Guix](https://guix.gnu.org/). In the context of this repo, Guix allows me to list all the used programs in manifests, which means I have the same set of programs across multiple machines. Look for the tables with "Guix dependency" in the header.
Literate configuration files:
@ -70,7 +70,7 @@ Some of the notable programs are listed in the table below.
## Some statistics {#some-statistics}
Run the following to show the pictures with reasonable width:
If you are viewing the file in Emacs, eval the following to show the pictures with reasonable width:
```elisp
(setq-local org-image-actual-width '(1024))

View file

@ -894,7 +894,7 @@ setxkbmap -model pc105 -option <span style="color:#e6db74">&#39;grp:win_space_to
<!--listend-->
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">hostname<span style="color:#f92672">=</span><span style="color:#66d9ef">$(</span>hostname<span style="color:#66d9ef">)</span>
<span style="color:#75715e"># Settings varying on the hostname</span>
export WLAN_INTERFACE<span style="color:#f92672">=</span><span style="color:#66d9ef">$(</span>nmcli -f DEVICE con show | grep -Ev <span style="color:#e6db74">&#34;(.*docker.*|DEVICE|br.*|tun.*|--)&#34;</span> | xargs<span style="color:#66d9ef">)</span>
export WLAN_INTERFACE<span style="color:#f92672">=</span><span style="color:#66d9ef">$(</span>nmcli -f DEVICE con show | grep -Ev <span style="color:#e6db74">&#34;(.*docker.*|DEVICE|br.*|tun.*|veth.*|--)&#34;</span> | xargs<span style="color:#66d9ef">)</span>
<span style="color:#66d9ef">if</span> <span style="color:#f92672">[</span> <span style="color:#e6db74">&#34;</span>$hostname<span style="color:#e6db74">&#34;</span> <span style="color:#f92672">=</span> <span style="color:#e6db74">&#34;azure&#34;</span> <span style="color:#f92672">]</span>; <span style="color:#66d9ef">then</span>
TRAY_MONITOR<span style="color:#f92672">=</span><span style="color:#e6db74">&#34;eDP-1&#34;</span>
<span style="color:#75715e"># export WLAN_INTERFACE=&#34;wlp3s0&#34;</span>
@ -933,7 +933,7 @@ declare -A BLOCKS<span style="color:#f92672">=(</span>
<span style="color:#f92672">)</span>
<span style="color:#75715e"># Geolocation for some modules</span>
export LOC<span style="color:#f92672">=</span><span style="color:#e6db74">&#34;SPB&#34;</span>
export LOC<span style="color:#f92672">=</span><span style="color:#e6db74">&#34;TMN&#34;</span>
export IPSTACK_API_KEY<span style="color:#f92672">=</span><span style="color:#66d9ef">$(</span>pass show My_Online/APIs/ipstack | head -n 1<span style="color:#66d9ef">)</span>
@ -2300,6 +2300,10 @@ $BUKU -f <span style="color:#ae81ff">4</span> -p | awk -F<span style="color:#e6d
<td>dev</td>
<td>go</td>
</tr>
<tr>
<td>dev</td>
<td>gcc-toolchain</td>
</tr>
</tbody>
</table>
<h3 id="manifests">Manifests</h3>

View file

@ -1364,7 +1364,7 @@
:straight (:host github :repo <span style="color:#e6db74">&#34;SqrtMinusOne/wakatime-mode&#34;</span>)
:if (not my/is-termux)
:config
&lt;&lt;wakatime-fixes&gt;&gt;
(setq wakatime-ignore-exit-codes <span style="color:#f92672">&#39;</span>(<span style="color:#ae81ff">0</span> <span style="color:#ae81ff">1</span> <span style="color:#ae81ff">102</span>))
(advice-add <span style="color:#e6db74">&#39;wakatime-init</span> :after (lambda () (setq wakatime-cli-path <span style="color:#e6db74">&#34;/home/pavel/bin/wakatime-cli&#34;</span>)))
<span style="color:#75715e">;; (setq wakatime-cli-path (executable-find &#34;wakatime&#34;))</span>
(global-wakatime-mode))
@ -3217,7 +3217,7 @@ MimeType=x-scheme-handler/org-protocol
:straight <span style="color:#66d9ef">t</span>
:init
(my-leader-def
:keymaps <span style="color:#f92672">&#39;</span>(js-mode-map typescript-mode-map vue-mode-map svelte-mode-map)
:keymaps <span style="color:#f92672">&#39;</span>(js-mode-map web-mode-map typescript-mode-map vue-mode-map svelte-mode-map)
<span style="color:#e6db74">&#34;rr&#34;</span> <span style="color:#a6e22e">#&#39;</span>prettier-prettify))
</code></pre></div><h4 id="typescript">TypeScript</h4>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-emacs-lisp" data-lang="emacs-lisp">(use-package typescript-mode
@ -3265,7 +3265,8 @@ MimeType=x-scheme-handler/org-protocol
:config
(add-hook <span style="color:#e6db74">&#39;web-mode-hook</span> <span style="color:#e6db74">&#39;smartparens-mode</span>)
(add-hook <span style="color:#e6db74">&#39;web-mode-hook</span> <span style="color:#e6db74">&#39;hs-minor-mode</span>)
(my/set-smartparens-indent <span style="color:#e6db74">&#39;web-mode</span>))
(my/set-smartparens-indent <span style="color:#e6db74">&#39;web-mode</span>)
(add-hook <span style="color:#e6db74">&#39;web-mode-hook</span> ))
</code></pre></div><p>Hooking this up with lsp.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-emacs-lisp" data-lang="emacs-lisp">(setq my/web-mode-lsp-extensions
<span style="color:#f92672">`</span>(<span style="color:#f92672">,</span>(rx <span style="color:#e6db74">&#34;.svelte&#34;</span> eos)
@ -3278,6 +3279,12 @@ MimeType=x-scheme-handler/org-protocol
(lsp-deferred)))
(add-hook <span style="color:#e6db74">&#39;web-mode-hook</span> <span style="color:#a6e22e">#&#39;</span>my/web-mode-lsp)
</code></pre></div><p>Vue settings</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-emacs-lisp" data-lang="emacs-lisp">(defun my/web-mode-vue-setup ()
(when (string-match-p (rx <span style="color:#e6db74">&#34;.vue&#34;</span> eos) (<span style="color:#a6e22e">buffer-name</span>))
(setq-local web-mode-script-padding <span style="color:#ae81ff">0</span>)))
(add-hook <span style="color:#e6db74">&#39;web-mode-hook</span> <span style="color:#e6db74">&#39;my/web-mode-vue-setup</span>)
</code></pre></div><h4 id="off--vue-dot-js"><span class="org-todo done OFF">OFF</span> (OFF) Vue.js</h4>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-emacs-lisp" data-lang="emacs-lisp">(use-package vue-mode
:straight <span style="color:#66d9ef">t</span>
@ -3794,7 +3801,7 @@ MimeType=x-scheme-handler/org-protocol
(if asc
(<span style="color:#a6e22e">cdr</span> asc)
(let ((python-executable
(string-trim (shell-command-to-string <span style="color:#e6db74">&#34;PIPENV_IGNORE_VIRTUALENVS=1 pipenv run which python&#34;</span>))))
(string-trim (shell-command-to-string <span style="color:#e6db74">&#34;PIPENV_IGNORE_VIRTUALENVS=1 pipenv run which python 2&gt;/dev/null&#34;</span>))))
(if (string-match-p <span style="color:#e6db74">&#34;.*not found.*&#34;</span> python-executable)
(<span style="color:#a6e22e">message</span> <span style="color:#e6db74">&#34;Pipfile found, but not pipenv executable!&#34;</span>)
(<span style="color:#a6e22e">message</span> (<span style="color:#a6e22e">format</span> <span style="color:#e6db74">&#34;Found pipenv python: %s&#34;</span> python-executable))
@ -4313,7 +4320,7 @@ MimeType=x-scheme-handler/org-protocol
</tbody>
</table>
<p><a href="https://mpv.io/">mpv</a> is a decent media player, which has found a place in this configuration because it integrates with youtube-dl.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-emacs-lisp" data-lang="emacs-lisp">(add-to-list <span style="color:#e6db74">&#39;emms-player-list</span> <span style="color:#e6db74">&#39;emms-player-mpv</span> <span style="color:#66d9ef">t</span>)
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-emacs-lisp" data-lang="emacs-lisp">(add-to-list <span style="color:#e6db74">&#39;emms-player-list</span> <span style="color:#e6db74">&#39;emms-player-mpv</span>)
</code></pre></div><p>Also a custom regex. My demands for MPV include running <code>youtube-dl</code>, so there is a regex that matches youtube.com or some of the video formats.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-emacs-lisp" data-lang="emacs-lisp">(emms-player-set emms-player-mpv
<span style="color:#e6db74">&#39;regex</span>

View file

@ -65,7 +65,7 @@
<p>A set of my GNU/Linux configuration files. <a href="https://github.com/SqrtMinusOne/dotfiles">View at GitHub</a>.</p>
<p>The majority of the software is configured with <a href="https://leanpub.com/lit-config/read">literate configuration</a> strategy via Emacs' Org Mode. This way has its advantages and disadvantages, but overall it&rsquo;s pretty nice to keep the configs interweaved with comments in a handful of files.</p>
<p>The files themselves are managed and deployed via <a href="https://yadm.io/">yadm</a>, but I mostly use Org Mode rich noweb whenever I can instead of what yadm offers.</p>
<p>My current GNU/Linux distribution is <a href="https://guix.gnu.org/">GNU Guix</a>. In the context of this repo, Guix allows me to list all the used programs in manifests, which means I have the same set of programs across multiple machines. Looks for Org tables with &ldquo;Guix dependency&rdquo; in the header.</p>
<p>My current GNU/Linux distribution is <a href="https://guix.gnu.org/">GNU Guix</a>. In the context of this repo, Guix allows me to list all the used programs in manifests, which means I have the same set of programs across multiple machines. Look for the tables with &ldquo;Guix dependency&rdquo; in the header.</p>
<p>Literate configuration files:</p>
<ul>
<li><a href="/configs/emacs/">Emacs.org</a></li>
@ -336,7 +336,7 @@
<li><a href="https://sqrtminusone.xyz/posts/2021-02-27-gmail/">Multiple Gmail accounts &amp; labels with Emacs</a></li>
</ul>
<h2 id="some-statistics">Some statistics</h2>
<p>Run the following to show the pictures with reasonable width:</p>
<p>If you are viewing the file in Emacs, eval the following to show the pictures with reasonable width:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-elisp" data-lang="elisp">(setq-local org-image-actual-width <span style="color:#f92672">&#39;</span>(<span style="color:#ae81ff">1024</span>))
</code></pre></div><h3 id="history">History</h3>
<figure><img src="/ox-hugo/all.png"/>

View file

@ -39,73 +39,5 @@ Regradless, I&amp;rsquo;ll check if I can write some Python here
print(&amp;#34;Hello, world&amp;#34;) Hello, world </description>
</item>
<item>
<title>Console</title>
<link>https://sqrtminusone.xyz/configs/console/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://sqrtminusone.xyz/configs/console/</guid>
<description>#+TOC headlines 6
.profile Environment # export EDITOR=/usr/bin/vim # export BROWSER=/usr/bin/firefox export QT_QPA_PLATFORMTHEME=&amp;#34;qt5ct&amp;#34; export QT_AUTO_SCREEN_SCALE_FACTOR=0 export TZ=&amp;#34;Asia/Yekaterinburg&amp;#34; # export GTK2_RC_FILES=&amp;#34;$HOME/.gtkrc-2.0&amp;#34; My paths My script folders
if [ -d &amp;#34;$HOME/bin&amp;#34; ] ; then export PATH=&amp;#34;$HOME/bin:$PATH&amp;#34; export PATH=&amp;#34;$HOME/bin/scripts:$PATH&amp;#34; fi Guix settings Enable extra profiles
if [ -z &amp;#34;$IS_ANDROID&amp;#34; ]; then GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles for i in $GUIX_EXTRA_PROFILES/*; do profile=$i/$(basename &amp;#34;$i&amp;#34;) if [ -f &amp;#34;$profile&amp;#34;/etc/profile ]; then GUIX_PROFILE=&amp;#34;$profile&amp;#34; . &amp;#34;$GUIX_PROFILE&amp;#34;/etc/profile fi export XDG_DATA_DIRS=&amp;#34;$XDG_DATA_DIRS:$profile/share&amp;#34; unset profile done fi Set Jupyter config PATH.</description>
</item>
<item>
<title>Desktop</title>
<link>https://sqrtminusone.xyz/configs/desktop/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://sqrtminusone.xyz/configs/desktop/</guid>
<description>My general desktop environment configuration.
Parts prefixed with (OFF) are not used, but kept for historic purposes. For some reason GitHub&amp;rsquo;s org renderer ignores TODO status, hence such a prefix. Round brackets instead of square ones to prevent GitHub&amp;rsquo;s org renderer from screwing up.
Table of Contents Global customization Colors Xresources Colors in Xresources Fonts Themes Device-specific settings i3wm General settings Managing windows Workspaces Rules Scratchpad Launch script i3 config Gaps &amp;amp; borders Keybindings Move &amp;amp; resize windows OFF (OFF) Intergration with dmenu Integration with rofi Launching apps &amp;amp; misc keybindings Apps Media controls &amp;amp; brightness Screenshots Colors OFF (OFF) i3blocks Keyboard Layout Autostart Polybar Launching General settings Colors Bar config Modules ipstack-vpn weather aw-afk sun SEP TSEP i3 xkeyboard mpd pulseaudio cpu ram-memory swap-memory network date battery Rofi Theme Scripts Buku bookmarks Man pages Flameshot dunst keynav Config Using with picom Picom Shadows Fading Opacity General settings Zathura Various software Browsers Office LaTeX Dev Manifests Flatpak Nix Services Music GNU Mcron ActivityWatch PulseEffects xsettingsd Discord rich presence Polkit Authentication agent Xmodmap VPN Davmail Shepherd config Sync Guix settings Global customization Colors Most of the colors are from the Palenight theme.</description>
</item>
<item>
<title>Emacs config</title>
<link>https://sqrtminusone.xyz/configs/emacs/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://sqrtminusone.xyz/configs/emacs/</guid>
<description>One day we won&amp;rsquo;t hate one another, no young boy will march to war and I will clean up my Emacs config. But that day isn&amp;rsquo;t today.
My Emacs configuration.
As with other files in the repo, parts prefixed with (OFF) are not used but kept for historic purposes.
Table of Contents Primary setup Measure startup speed straight.el use-package Performance Garbage collection Run garbage collection when Emacs is unfocused Misc Native compilation Anaconda &amp;amp; environment Custom file location Private config No littering Global editing configuration General keybindings stuff general.</description>
</item>
<item>
<title>Guix</title>
<link>https://sqrtminusone.xyz/configs/guix/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://sqrtminusone.xyz/configs/guix/</guid>
<description>GNU Guix is (1) a transactional package manager and (2) a GNU/Linux distribution.
My personal selling points are declarative package configuration and transactional upgrades.
References:
Official help System Crafters wiki Pjotr Prins&#39; Guix notes Davil Wilson&amp;rsquo;s YouTube series Table of Contents Contents Profiles Activate profiles Update profiles Channels Systems Base configuration indigo eminence azure System installation Preparation Installation After installation Misc software &amp;amp; notes VPN vpn-start vpn-stop flatpak conda Slack virt-manager wakatime-cli Manifest Contents Contents Profiles Activate profiles Update profiles Channels Systems Base configuration indigo eminence azure System installation Preparation Installation After installation Misc software &amp;amp; notes VPN vpn-start vpn-stop flatpak conda Slack virt-manager wakatime-cli Manifest Profiles A profile is a way to group Guix packages.</description>
</item>
<item>
<title>Mail</title>
<link>https://sqrtminusone.xyz/configs/mail/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://sqrtminusone.xyz/configs/mail/</guid>
<description>My email configration. Currently I use lieer to fetch emails from Gmail, davmail &amp;amp; offlineimap to fetch emails from MS Exchange, notmuch to index, msmtp to send emails. Also using notmuch frontend from Emacs.
My problem with any particular mail setup was that I use Gmail labels quite extensively, and handling these over IMAP is rather awkward. Notmuch seems to be the only software that provides the same first-class support for labels.</description>
</item>
<item>
<title>My dotfiles</title>
<link>https://sqrtminusone.xyz/configs/readme/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://sqrtminusone.xyz/configs/readme/</guid>
<description>A set of my GNU/Linux configuration files. View at GitHub.
The majority of the software is configured with literate configuration strategy via Emacs&#39; Org Mode. This way has its advantages and disadvantages, but overall it&amp;rsquo;s pretty nice to keep the configs interweaved with comments in a handful of files.
The files themselves are managed and deployed via yadm, but I mostly use Org Mode rich noweb whenever I can instead of what yadm offers.</description>
</item>
</channel>
</rss>

View file

@ -0,0 +1,39 @@
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}
{{ range where $pages "Section" "!=" "configs" }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Summary | html }}</description>
</item>
{{ end }}
</channel>
</rss>

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
(cd ./org/configs/ && emacs -Q --batch -l publish.el)
hugo -D
git push