Giter Site home page Giter Site logo

blotter's Introduction

bedford lab research

Build site

To build the website locally, clone the repo with:

git clone https://github.com/blab/blotter.git

Then install necessary Ruby dependencies by running bundle install from within the blotter directory. After this, the site can be be built with:

bundle exec jekyll build

(If you are getting errors at this stage, it may be due to your version of bundle. Try gem uninstall bundler + gem install bundler -v 1.13.1.)

To view the site, run bundle exec jekyll serve and point a browser to http://localhost:4000/. More information on Jekyll can be found here.

To include projects, preprocessing scripts are necessary to clone project repos and update Jekyll metadata. This can be accomplished with:

ruby _scripts/update-and-preprocess.rb

Then jekyll build works as normal.

Contribute

Blog posts just require YAML top matter that looks something like:

---
layout: post
title: Newton Institute presentation
author: Trevor Bedford
link: http://www.newton.ac.uk/programmes/IDD/seminars/2013082213301.html
image: /images/blog/transmission.png
---

The layout, title and author tags are required, while link and image are optional. Just save a Markdown file with this top matter as something like blog/_posts/2013-08-27-newton-institute.md, where 2013-08-27 is the date of the post and newton-institute is the short title. This short title is used in the URL of the post, so this becomes blog/newton-institute/, so the short title should be long enough and unique enough not to cause conflicts with other posts.

For more information

License

All source code in this repository, consisting of files with extensions .html, .css, .less, .rb or .js, is freely available under an MIT license, unless otherwise noted within a file. You're welcome to borrow / repurpose code to build your own site, but I would very much appreciate attribution and a link back to bedford.io from your about page.

The MIT License (MIT)

Copyright (c) 2013-2019 Trevor Bedford

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

blotter's People

Contributors

alliblk avatar barneypotter24 avatar benlindsay avatar cykc avatar dependabot[bot] avatar evogytis avatar genehack avatar huddlej avatar jameshadfield avatar kairstenfay avatar katrinleinweber avatar lmoncla avatar marlinfiggins avatar matsen avatar nicfel avatar philippa-steinberg avatar plsteinberg avatar rneher avatar sidneymbell avatar trvrb avatar tsibley avatar victorlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blotter's Issues

Change font

Hello. Thanks for your website, its an amazing system! :D

Tiny question: the default font doenst render turkish characters very well, is there an easy way to change it?

The tag `eqinline` is not a recognized Liquid Tag

Hello. I am trying to customize your site's layout for our own lab site and have successfully forked the repo into my directory. I am able to build the site locally with Jekyll but I keep getting the error below from Github when building the live site. I have tried to fix this error by deleting files but that is not working. More files keep popping up with this error. Do you have any suggestions please? Thank you!

The tag eqinlineon line 189 inguide/_posts/2013-10-26-style.md is not a recognized Liquid tag.

Project page not showing up?

Dear Bedford Lab, I'm super excited to try your lab website template! When I tried to replicate the project page, I experienced the following problem. I followed the advice on running ruby _scripts/update-and-preprocess.rb and built my website. The project page shows up correctly when I viewed the website locally http://localhost:4000/, but always see the error message "Sorry, this page does not exist." when I try to view each project page on my customized domain. Strangely, all other aspects of the website work well and the project page is the only issue. I'm curious if any of you can offer any advice. Thank you for your time!

Juhye Lee's papers show up on Jover Lee's team page

See the bottom of https://bedford.io/team/jover-lee/.

This looks like the code that's responsible for doing the lastname + first initial matching that's causing the problem:

{% assign lastname = member.title | split: ' ' | last %}
{% assign firstinitial = member.title | split: ' ' | first | slice: 0 %}
{% assign searchstring = lastname | append: ' ' | append: firstinitial %}
{% for paper in site.categories.papers %}
{% if paper.authors contains searchstring %}
{% assign papersq = true %}
{% endif %}
{% endfor %}
{% if papersq == true %}
<div class="bigspacer"></div>
<div class="head">Papers</div>
<div class="spacer"></div>
{% for paper in site.categories.papers %}
{% if paper.authors contains searchstring %}
<p><a href="{{ paper.url }}" class="off">{{ paper.title }}</a>
{% endif %}
{% endfor %}
{% endif %}

can not work for command line "bundle exec jekyll build"

@trvrb I want to use blotter to build my website, and when I run the command line "bundle exec jekyll build",
it reports to me ๐Ÿ‘:
lixingguangtekiMacBook-puro:blotter lixingguang$ bundle exec jekyll build
Configuration file: /Users/lixingguang/blotter/_config.yml
Source: /Users/lixingguang/blotter
Destination: /Users/lixingguang/blotter/_site
Incremental build: disabled. Enable with --incremental
Generating...
Warning: parse error in /Users/lixingguang/blotter/_site/talks/reveal-v2/css/print/pdf.css. Don't panic - copying initial file
Details: parse error on value "@page " (error)
Warning: parse error in /Users/lixingguang/blotter/_site/talks/reveal-v2/css/theme/default.css. Don't panic - copying initial file
Details: parse error on value ":not(" (error)
Warning: parse error in /Users/lixingguang/blotter/_site/talks/reveal-v2/css/theme/trvrb.css. Don't panic - copying initial file
Details: parse error on value ":not(" (error)
Warning: parse error in /Users/lixingguang/blotter/_site/talks/reveal-v3/css/reveal.css. Don't panic - copying initial file
Details: parse error on value ":not(" (error)
done in 11.747 seconds.
Auto-regeneration: disabled. Use --watch to enable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.