mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2024-11-15 02:58:29 +00:00
changes for using fontawesome5 in hugo export
This commit is contained in:
parent
9aa35dd3fc
commit
4f7980c620
3 changed files with 11 additions and 9 deletions
|
@ -16,4 +16,5 @@ exclude some tags during export.
|
||||||
(org-export-to-file 'hugocv "hugocv.md"))
|
(org-export-to-file 'hugocv "hugocv.md"))
|
||||||
```
|
```
|
||||||
|
|
||||||
You are responsible for styling your website.
|
You are responsible for styling your website. Icons used here use
|
||||||
|
FontAwesome 5.
|
||||||
|
|
14
ox-hugocv.el
14
ox-hugocv.el
|
@ -78,9 +78,9 @@ as a communication channel."
|
||||||
(format "\n<div class=\"cventry\">
|
(format "\n<div class=\"cventry\">
|
||||||
<h3>%s</h3>
|
<h3>%s</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li class=\"fa fa-building\"> %s</li>
|
<li class=\"fas fa-building\"> %s</li>
|
||||||
<li class=\"fa fa-map-marker\"> %s</li>
|
<li class=\"fas fa-map-marker-alt\"> %s</li>
|
||||||
<li class=\"fa fa-calendar\"> %s</li>
|
<li class=\"far fa-calendar\"> %s</li>
|
||||||
<ul>
|
<ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -117,10 +117,10 @@ holding export options."
|
||||||
;; email
|
;; email
|
||||||
(let ((email (and (plist-get info :with-email)
|
(let ((email (and (plist-get info :with-email)
|
||||||
(org-export-data (plist-get info :email) info))))
|
(org-export-data (plist-get info :email) info))))
|
||||||
(when email (format "<li class=\"fa fa-envelope\"><a href=\"mailto:%s\"> %s</a></li>\n" email email)))
|
(when email (format "<a href=\"mailto:%s\"><li class=\"far fa-envelope\"></li> %s</a>\n" email email)))
|
||||||
;; homepage
|
;; homepage
|
||||||
(let ((homepage (org-export-data (plist-get info :homepage) info)))
|
(let ((homepage (org-export-data (plist-get info :homepage) info)))
|
||||||
(when homepage (format "<li class=\"fa fa-globe\"><a href=\"https://%s\"> %s</a></li>\n" homepage homepage)))
|
(when homepage (format "<a href=\"https://%s\"><li class=\"fas fa-globe\"></li> %s</a>\n" homepage homepage)))
|
||||||
;; social media
|
;; social media
|
||||||
(mapconcat (lambda (social-network)
|
(mapconcat (lambda (social-network)
|
||||||
|
|
||||||
|
@ -129,10 +129,10 @@ holding export options."
|
||||||
|
|
||||||
info)))
|
info)))
|
||||||
|
|
||||||
(and command (format "<li class=\"fa fa-%s\"><a href=\"https://%s/%s\"> %s</a></li>\n"
|
(and command (format "<a href=\"https://%s/%s\"><li class=\"fab fa-%s\"></li> %s</a>\n"
|
||||||
(nth 1 social-network)
|
|
||||||
(nth 2 social-network)
|
(nth 2 social-network)
|
||||||
command
|
command
|
||||||
|
(nth 1 social-network)
|
||||||
command))))
|
command))))
|
||||||
|
|
||||||
'((:github "github" "www.github.com")
|
'((:github "github" "www.github.com")
|
||||||
|
|
|
@ -228,7 +228,8 @@ exclude some tags during export.
|
||||||
(org-export-to-file 'hugocv "hugocv.md"))
|
(org-export-to-file 'hugocv "hugocv.md"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
You are responsible for styling your website.
|
You are responsible for styling your website. Icons used here use
|
||||||
|
FontAwesome 5.
|
||||||
|
|
||||||
|
|
||||||
* Local Variables :ARCHIVE:
|
* Local Variables :ARCHIVE:
|
||||||
|
|
Loading…
Reference in a new issue