Changeset 1136777 for content


Ignore:
Timestamp:
May 11, 2022, 5:49:15 AM (3 years ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
5f1c100
Parents:
aaf50fc
Message:

Add translation article and update music.

Location:
content
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • content/articles.org

    raaf50fc r1136777  
    2727    (concat "<ul>" (mapconcat 'make-links list-of-posts "\n") "</ul>")
    2828  #+END_SRC
     29
     30* Переводы
     31  #+BEGIN_SRC emacs-lisp :exports results :results html
     32    (defun read-lines (filePath)
     33      "Return a list of lines of a file at filePath."
     34      (with-temp-buffer
     35        (insert-file-contents filePath)
     36        (split-string (buffer-string) "\n" t)))
     37
     38;; Sort by modified date
     39(setq list-of-posts (sort (directory-files-and-attributes "./translations" nil ".org$")
     40                          #'(lambda (x y) (time-less-p (nth 6 y) (nth 6 x)))))
     41
     42    (defun make-links (str)
     43      (setq file-name (car str))
     44      (setq str-link (s-replace ".org" ".html" file-name))
     45      ;; We make an assumption, that #+TITLE is on first line
     46      (setq article-title (s-replace "#+TITLE: " "" (car (read-lines (concat "translations/" file-name)))))
     47      (concat "<li><a href=\"/translations/" str-link "\">" article-title "</a></li>"))
     48
     49    (concat "<ul>" (mapconcat 'make-links list-of-posts "\n") "</ul>")
     50  #+END_SRC
    2951 
    3052* Authors from RSS feed
     
    3759          (org-webring-display-version 'nil)
    3860          (org-webring-display-generation-time 'nil)
    39           (org-webring-urls '("http://guix.trop.in/feeds/blog.atom"
     61          (org-webring-urls '(;;"http://guix.trop.in/feeds/blog.atom"
    4062                              "https://drewdevault.com/blog/index.xml"
    4163                              "https://wingolog.org/feed/atom"
  • content/cv.org

    raaf50fc r1136777  
    1414    <div class="col-md" align="right" style="padding-top: 1em;">
    1515      <mark style="background: #689f38 !important;">Available for hire</mark>
    16       <p style="font-size: 1.3em;">€2000 — ∞</p>
     16      <p style="font-size: 1.3em;">€2500 — ∞</p>
    1717    </div>
    1818  </div>
  • content/music.org

    raaf50fc r1136777  
    148148    <td>
    149149      <audio controls>
    150         <source src="/public/music/opus2.flac" type="audio/flac">
    151           <p><a href="/public/music/opus2.flac">Opus 2</a></p>
     150        <source src="/public/music/opus2.mp3" type="audio/flac">
     151          <p><a href="/public/music/opus2.mp3">Opus 2</a></p>
    152152      </audio>
    153153      <p>Opus 2</p>
  • content/sitemap.org

    raaf50fc r1136777  
    1818  - [[file:posts/web.org][Свободное использование сети Интернет]]
    1919  - [[file:posts/unix-distros.org][Unix-подобные дистрибутивы]]
     20- translations
     21  - [[file:translations/history-of-programming-languages.org][Мяу]]
Note: See TracChangeset for help on using the changeset viewer.