Skip to content

floriandierickx/floriandierickx.github.io

Repository files navigation

Jekyll and website setup

Run local site

  • Run local jekyll site: 'bundle exec jekyll serve'

Jekyll example sites

Plugins

RSS Feed with blogposts: Jekyll-feed & Jekyll-planet

  • Atom feed inclusion: https://github.com/jekyll/jekyll-feed
    • OK
  • Jekyll-planet (Planet Pluto) to included other RSSs in blog: https://github.com/feedreader/jekyll-planet
    • Usage (steps)
      • include/edit pluto.ini
      • bash: 'gem install pluto' to install
      • bash: pluto update planet.ini [original: pluto build planet.ini]
      • create blogposts: ruby -r 'jekyll/planet' -e 'JekyllPlanet.main'
    • Note on how to assign automatic tags to websites:
      1. input tag name in website title in 'planet.ini'
      2. add tags: [#{item.title}] to line 52 of tool.rb in /Users/florian/.rvm/gems/ruby-2.6.0/gems/jekyll-planet-0.2.1/lib/jekyll/planet/tool.rb [=DONE]
  • Tagging: according to https://codinfox.github.io/dev/2015/03/06/use-tags-and-categories-in-your-jekyll-based-github-pages/
    • Tag categories:
      • website: posts related to website
      • rss-repost: interesting blogposts from the internet (t-rss feed)
      • *twitter: twitter posts
      • *input-output:
  • Find out where gems are installed (ruby): gem environments

Update and maintenance of Jekyll and Gems

  • Gem (Ruby)
    • Update gem : 'gem update --system'
    • Update gems: 'bundle update --all' --> updates all gems in gemfile

Annotation and comments of Website: hypothes.is

Conversion of twitter threads to HTML:

TweetView

Extract.js

Code:

// Open the Chrome inspector, and select the topmost div containing the twitter thread.
// You might want to open the first tweet in the thread, scroll down to load every item in the thread, then select the parent container

var foo = document.createElement("div");
var str = ""
$($0).find(".tweet").each(function(i, t) { 
  var tweet = $(t);
  var turl = "https://twitter.com" + tweet.data("permalink-path")
  var tdate = tweet.find(".tweet-timestamp").attr("title")
  var tcontent = tweet.find(".tweet-text").html()
  str += '<blockquote class="twitter-tweet" data-conversation="none" data-lang="en"><p lang="en" dir="ltr">' + tcontent + '</p>&mdash; FlorianDRX (@FlorianDRX) <a href="' + turl + '" target="_blank">' + tdate + '</a></blockquote>\n\n';
});

foo.innerHTML = str 

// type foo and right click to select. Congrats! Don't forget to add a 
// <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
// at the bottom of wherever you post it.

Comments integration: Discuss

Publishing of markdown in dynamic html: bookdown in dynamic iframe

Online Library with Altmetric Badges [+ Annotation of Pdfs: not yet implemented, suggestions welcome] : bib-list.js [hypoethes.is and nextcloud upload]

Online library: bib-list.js

  • First integration:

Integration of altmetric badges in literature list

General website formatting

Find and replace fonts in css files

regex search and replace with font-family:(?:.*);

Change spacing between menu items

change 'margin-right' in nav ul li, footer ul li {

Icons (Font Awesome and Academicons)

Change formatting of library titles