From 4bbccc3d8caa5d16b01a2474c5e488707a56d72d Mon Sep 17 00:00:00 2001 From: Maruan Al-Shedivat Date: Tue, 31 Jan 2017 12:17:15 -0500 Subject: [PATCH] Add DISQUS and fix pagination --- _config.yml | 50 ++++++++++++++++++++----------- _includes/footer.html | 14 ++++----- _includes/hemline.html | 11 +++++++ _includes/pagination.html | 23 ++++++++++++++ _layouts/post.html | 15 ++++++++++ _posts/2015-05-15-images.markdown | 16 +++++----- _posts/2015-07-15-code.markdown | 20 ++++++------- blog/index.html | 20 +++++++------ 8 files changed, 117 insertions(+), 52 deletions(-) create mode 100644 _includes/pagination.html diff --git a/_config.yml b/_config.yml index 4e50785..03b67d2 100644 --- a/_config.yml +++ b/_config.yml @@ -1,17 +1,22 @@ # ----------------------------------------------------------------------------- # Site settings # ----------------------------------------------------------------------------- - name: Your Name email: you@example.com description: > # this means to ignore newlines until "url:" A simple, whitespace theme for academics. Based on [*folio](https://github.com/bogoli/-folio) design. -last_updated: +footer_text: > + Powered by Jekyll with al-folio theme. + Hosted by GitHub Pages. + Photos from Unsplash. url: # the base hostname & protocol for your site baseurl: /al-folio # the subpath of your site, e.g. /blog/ +last_updated: # leave blank if you don't want to display last updated -# Social +# ----------------------------------------------------------------------------- +# Social integration +# ----------------------------------------------------------------------------- github_username: # put your github username twitter_username: # put your twitter username linkedin_username: # put your linkedin username @@ -19,17 +24,33 @@ scholar_authorid: # put your google scholar author id contact_note: > You can even add a little note about which of these is the best way to reach you. -# Footer text -footer_text: > - Powered by Jekyll with al-folio theme. - Hosted by GitHub Pages. - Photos from Unsplash. - +# ----------------------------------------------------------------------------- # Blog +# ----------------------------------------------------------------------------- blog_name: al-folio blog_description: simple whitespace theme for academics +# Pagination +paginate: 4 +permalink: /blog/:year/:title/ +paginate_path: /blog/page:num/ + +text: + pagination: + newer: 'Newer' + older: 'Older' + +# Comments +disqus_shortname: al-folio # put your disqus shortname + +# Optional features +show_social_icons: false +enable_anchorjs: false +enable_katex: true + +# ----------------------------------------------------------------------------- # Collections +# ----------------------------------------------------------------------------- collections: news: defaults: @@ -43,7 +64,6 @@ collections: output: true permalink: /poetry/:path/ -# Collection settings news_limit: 5 # ----------------------------------------------------------------------------- @@ -54,11 +74,6 @@ news_limit: 5 markdown: kramdown highlighter: pygments -# Pagination -paginate: 15 -permalink: /blog/:year/:title/ -paginate_path: /blog/page:num/ - # Includes include: ['_pages'] @@ -93,7 +108,8 @@ scholar: query: "@*" # ----------------------------------------------------------------------------- -# Other advanced settings (don't touch if you are not sure) +# Other settings # ----------------------------------------------------------------------------- jquery_version: "1.12.4" -katex_version: "0.7.0" +katex_version: "0.7.1" +anchorjs_version: "3.2.2" diff --git a/_includes/footer.html b/_includes/footer.html index a129f7c..58f34ac 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,13 +1,11 @@ -