Skip to content

Add link to the blog #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ confine access, ...) like me then you can also do:

1. Create some local directory used to hold the installed gems. I use
`GEM_HOME=~/.local/lib/gems` to mirror the root tree that would otherwise be used.
2. > `bundle install --path $GEM_HOME`
3. Invoke jekyll through `bundle` as well
> `bundle exec jekyll serve`

2. Invoke `bundle install --path $GEM_HOME`. Note that in newer bundle versions
you will simply want to use once `bundle config set --local path $GEM_HOME`
instead of the `--path` argument.
3. Now Invoke jekyll through `bundle` as well
> `bundle exec jekyll serve`

[GHGuide]: https://help.github.com/en/articles/setting-up-your-github-pages-site-locally-with-jekyll
5 changes: 4 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="{{ site.github.repository_url }}">View on GitHub</a>
<nav id="nav_banner">
<a id="forkme" href="{{ site.github.repository_url }}">View on GitHub</a>
<a id="blog_banner" href="https://blog.image-rs.org/">Visit the blog</a>
</nav>

<h1 id="project_title">{{ site.title | default: site.github.repository_name }}</h1>
<h2 id="project_tagline">{{ site.description | default: site.github.project_tagline }}</h2>
Expand Down
27 changes: 27 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,33 @@
vertical-align: text-bottom;
}

#nav_banner {
display: block;
position: absolute;
top: 0;
right: 10px;
z-index: 10;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#forkme {
display: block;
color: #fff;
padding: 10px 50px 10px 10px;
background: url("../images/blacktocat.png") #0090ff no-repeat 95% 50%;
font-weight: 700;
}

#blog_banner {
display: block;
color: #fff;
padding: 10px 50px 10px 10px;
background: #0090ff;
font-weight: 700;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}

.post-info {
text-align: right;
font-weight: bold;
Expand Down