~brettgilio/org-webring

dfb513bcfd800ba7849ff37b7da70dfbdc56dc07 — Brett Gilio a month ago 8454a36
Allow override of time encoding locale.
4 files changed, 31 insertions(+), 4 deletions(-)

M README.md
M assets/ring.org
M docs/README.org
M org-webring.el
M README.md => README.md +11 -1
@@ 15,7 15,7 @@ displayed for sharing.
## Usage & Documentation

The CSS file `org-webring.css` needs to be loaded by your website,
and your browser must be able to render flex boxes. This file is
and your browser must be able to render flex boxes. This file
provides stylization support for both the `webring` and `planet`
functionality.



@@ 220,6 220,16 @@ The maximum length of all syndicate titles.
-   Default Value: `25`


### **Variable**: org-webring-override-time-locale

A convenient way to override the time encoding. Your selected
locale must be available on your machine, otherwise no effect will
be witnessed.

-   Type: `String`
-   Default Value: `env LANG`


### **Function**: org-webring-generate-webring

Generate the entire webring and return it as HTML.

M assets/ring.org => assets/ring.org +3 -1
@@ 1,5 1,6 @@
#+BEGIN_SRC emacs-lisp :exports results :results value html
(let ((org-webring-items-total 3)
(let ((org-webring-override-time-locale "en_US.UTF-8") ; Optional.
      (org-webring-items-total 3)
      (org-webring-items-per-source 1)
      (org-webring-filtered-posts
       '("https://brettgilio.com/posts/2020-09-03-org-webring-status-update.html"))


@@ 7,3 8,4 @@
       '("https://brettgilio.com/rss.xml")))
  (org-webring-generate-webring))
#+END_SRC


M docs/README.org => docs/README.org +8 -1
@@ 14,7 14,7 @@ displayed for sharing.

** Usage & Documentation
The CSS file ~org-webring.css~ needs to be loaded by your website,
and your browser must be able to render flex boxes. This file is
and your browser must be able to render flex boxes. This file
provides stylization support for both the ~webring~ and ~planet~
functionality.



@@ 161,6 161,13 @@ The maximum length of all syndicate titles.
- Type: =String=
- Default Value: ~25~

*** *Variable*: org-webring-override-time-locale
A convenient way to override the time encoding. Your selected
locale must be available on your machine, otherwise no effect will
be witnessed.
- Type: =String=
- Default Value: ~env LANG~

*** *Function*: org-webring-generate-webring
Generate the entire webring and return it as HTML.


M org-webring.el => org-webring.el +9 -1
@@ 43,7 43,7 @@
;; displayed for sharing.

;; The CSS file `org-webring.css' needs to be loaded by your website,
;; and your browser must be able to render flex boxes. This file is
;; and your browser must be able to render flex boxes. This file
;; provides stylization support for both the `webring' and `planet'
;; functionality.



@@ 222,6 222,14 @@ set for the planet description."
  :type 'integer)

;;
;;; Variable Aliases

(defvaralias 'org-webring-override-time-locale 'system-time-locale
  "A convenient way to override the time encoding. Your selected
locale must be available on your machine, otherwise no effect will
be witnessed.")

;;
;;; Extraction

(defun org-webring--xml-get-child (xml child-name)