Commit 222c3e6c authored by Martin Isaksson's avatar Martin Isaksson
Browse files

Some updates

parent 298ff485
......@@ -4,4 +4,5 @@
*.sublime-*
Gemfile.lock
_drafts/
node_modules/
\ No newline at end of file
node_modules/
_site
\ No newline at end of file
......@@ -28,6 +28,8 @@ group :jekyll_plugins do
gem 'jekyll-paginate'
gem 'jekyll-email-protect'
gem 'jekyll-bootstrap-sass'
gem 'jekyll-graphviz'
gem 'jekyll-plantuml'
# gem "jekyll-remote-theme"
end
......
......@@ -16,6 +16,9 @@ posts: $(MD_OBJECTS)
check:
$(JEKYLL) doctor
references:
git submodule update --recursive --remote
install: $(PROJECT_DEPS)
$(BUNDLE) install
......
......@@ -36,6 +36,11 @@ plugins:
- jekyll-paginate
- jekyll-email-protect
- jekyll-bootstrap-sass
- jekyll-plantuml
graphviz:
options: "-Tsvg" # 'dot' command option
command: "dot" # execute this string. specify full path to 'dot' if you need
paginate: 5
......@@ -59,11 +64,13 @@ exclude:
- '*.sublime-*'
- Gruntfile.js
- Rakefile
- .gitlab-ci.yml
scholar:
style: apa
style: apa-annotated-bibliography
bibliography: "*.bib"
bibliography_template: bib
defaults:
scope:
......
<div class="figure {{ include.class }}">
<div><img src="{{ include.url }}" alt="{{ include.description }}"/></div>
<div class="caption">{{ include.description }}{% if include.cite %} {% cite WikimediaCommons2015 %}{% endif %}</div>
</div>
\ No newline at end of file
<button onclick="topFunction()" id="myBtn" title="Go to top">Back to the top</button>
<script>
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.opacity = 1;
document.getElementById("myBtn").style.bottom = "20px";
} else {
document.getElementById("myBtn").style.opacity = 0;
document.getElementById("myBtn").style.bottom = "-200px";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
window.scroll({
top: 0,
left: 0,
behavior: 'smooth'
});
document.getElementById("myBtn").style.opacity = 0;
}
</script>
<footer class="site-footer h-card">
<data class="u-url" href="{{ "/" | relative_url }}"></data>
......
---
---
{{ reference }}
{{ reference }}
\ No newline at end of file
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
{%- include head.html -%}
<body>
{%- include header.html -%}
<main class="page-content" aria-label="Content">
<div class="wrapper">
{{ content }}
</div>
</main>
{%- include footer.html -%}
</body>
</html>
\ No newline at end of file
---
layout: default
---
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
......@@ -31,5 +32,14 @@ layout: default
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
<h2 id="citation">Suggested citation</h2>
<pre>
@misc{isaksson_{{ page.date | date: "%Y" }},
author="Isaksson, Martin",
title="{{ page.title}}",
year={{ page.date | date: "%Y" }},
journal="{{site.title}}",
howpublished={{site.url}}{{page.url}}
}
</pre>
</article>
......@@ -2,6 +2,7 @@
title: "Washing apparatus ready detection (WARD)"
date: 2015-08-30 21:53:48
categories: R PocketLab
layout: "post"
---
......
......@@ -39,18 +39,19 @@ pre {
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
background-color: #f9f9f9 !important;
/*background-color: #f9f9f9 !important;*/
border-radius: 10px;
border: 0px;
}
pre, code {
font-size: 15px;
border: 0px solid #e8e8e8;
/*border: 0px solid #e8e8e8;*/
border-radius: 8px;
background-color: initial;
font-weight: 300;
font-family: 'Source Code Pro', monospace !important;
color: inherit;
}
......@@ -106,3 +107,61 @@ div.post {
nav.site-nav label {
display: initial;
}
.caption {
text-align: center;
font-size: 90%;
color: darkslategray;
}
.figure {
margin-bottom: 20px;
text-align: center;
}
.footer-col-1 {
width: -webkit-calc(30% - (30px / 2));
width: calc(30% - (30px / 2));
}
.footer-col-2 {
width: -webkit-calc(25% - (30px / 2));
width: calc(25% - (30px / 2));
}
.svg-icon {
width: 22px !important;
}
.img-small {
width: 40%;
}
.pull-right {
float: right !important;
margin-left: 20px;
}
#myBtn {
opacity: 0;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
font-size: 18px;
border: none;
outline: none;
background-color: red;
color: white;
cursor: pointer;
padding: 15px;
border-radius: 4px;
-webkit-transition: all 600ms;
transition: all 600ms;
}
#myBtn:hover {
background-color: #555;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment