jekyllt / jasper Goto Github PK
View Code? Open in Web Editor NEWFull-featured Jekyll port of Ghost's default theme Casper 👻
Home Page: https://jekyller.github.io/jasper/
License: MIT License
Full-featured Jekyll port of Ghost's default theme Casper 👻
Home Page: https://jekyller.github.io/jasper/
License: MIT License
In post.html
and page.html
, the class is set to 'post-template'
and 'page-template'
, respectively. But in the output html of article (post) and page, the <body>
tag doesn't contain post-template
or page-template
, but contains home-template
.
It looks like the inheritance of Jekyll doesn't work correctly, because Jasper theme code seems to be correct.
For example, post.html
contains class: 'post-template'
,
---
layout: default
disqus: false
class: 'post-template'
---
and any specific markdown post file (e.g., 1963-08-28-i-have-a-dream.md
) doesn't override any class
.
---
layout: post
cover: 'assets/images/cover4.jpg'
navigation: True
title: I Have a Dream
date: 1963-08-28 10:18:00
tags: speeches
subclass: 'post tag-speeches'
logo: 'assets/images/ghost.png'
author: martin
categories: martin
---
I'm not familiar with Ruby and not fully sure this is the problem of Jasper theme or Jekyll core.
Temporarily I can use the post-template
and page-template
using class
tag directly in the post markdown files like below, but I think it is not the fundamental solution.
---
layout: post
cover: 'assets/images/cover4.jpg'
navigation: True
title: I Have a Dream
date: 1963-08-28 10:18:00
tags: speeches
class: 'post-template'
subclass: 'post tag-speeches'
logo: 'assets/images/ghost.png'
author: martin
categories: martin
---
Please give me an advice.
Hi,
I noticed all your example posts have an exact author except that one. You can add the original author two.
This is a story which originally was written by Heinrich Böll, and had such success it eventually became the one you have in your examples. The original German version is called ''Anekdote zur Senkung der Arbeitsmoral", you can find the credits in the link.
Disqus has moved its API calls to a HTTPS request but the included code calls APIs over HTTP. This must be changed as it create errors when deployed to github pages
disqus is't working on post. Not even demo site as well.
Regards
Ashish
when I run jekyll serve in jasper directory just give me these info
/usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- jekyll-paginate (LoadError)
from /usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-3.0.0/lib/jekyll/plugin_manager.rb:30:in `block in require_gems'
from /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-3.0.0/lib/jekyll/plugin_manager.rb:27:in `each'
from /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-3.0.0/lib/jekyll/plugin_manager.rb:27:in `require_gems'
from /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-3.0.0/lib/jekyll/plugin_manager.rb:19:in `conscientious_require'
from /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-3.0.0/lib/jekyll/site.rb:97:in `setup'
from /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-3.0.0/lib/jekyll/site.rb:49:in `initialize'
from /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-3.0.0/lib/jekyll/commands/build.rb:30:in `new'
from /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-3.0.0/lib/jekyll/commands/build.rb:30:in `process'
from /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-3.0.0/lib/jekyll/commands/serve.rb:26:in `block (2 levels) in init_with_program'
from /usr/local/rvm/gems/ruby-2.1.1/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
from /usr/local/rvm/gems/ruby-2.1.1/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
from /usr/local/rvm/gems/ruby-2.1.1/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
from /usr/local/rvm/gems/ruby-2.1.1/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
from /usr/local/rvm/gems/ruby-2.1.1/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
from /usr/local/rvm/gems/ruby-2.1.1/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
from /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-3.0.0/bin/jekyll:17:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.1/bin/jekyll:23:in `load'
from /usr/local/rvm/gems/ruby-2.1.1/bin/jekyll:23:in `<main>'
from /usr/local/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
Instead of outputting the posts as
example.com/2017/02/title
it outputs it as
example.com/201702title
right now posts only open as
example.com/title
any help is appreciated as I wouldn't know where to fix it on my end.
First of all thank you for making this theme and providing it with a permissive license. I am very appreciative.
Question- How can we add multiple authors? It's clear to me how to link a single author: connect the nickname: in config.yml
to the category: in the front matter of the mardown post in _posts
. The response to Issue #3 explains that it should be possible to add another author. But I can't see how to do it.
Sorry if this is obvious, we tried some hacks and can't seem to come up with an obvious path forward.
Hi,
As I told you before, i'm newbie. I want to set text around img. I know that I cant do it with kramdown but when I set the stile to the img (in an html line) the img stay outside of the post border.
Should I have to set a class or something like that in the img tag?
Hi,
i've just clone the repository but when i try to run "jekyll serve" i have this error:
"Conversion error: Jekyll::Converters::Scss encountered an error while converting 'jasper/assets/css/main.scss':
File to import not found or unreadable: syntax. on line 8"
I use Jekyll v 3.0.
Thanks
Your theme has been listed on http://jekyllthemes.ru/
Hey Fábio!
Was wondering if it was possible to switch to Liquid instead of going for Ruby-based plugins. Given that we have to return Travis to build the site every time.
I'm a novice when it comes to Ruby, but it would help if we could list out the challenges and try to switch to 'safe' Jekyll.
Loved the site, otherwise. The fork is here: http://tyro.ramiyer.me :)
Thanks,
Ram
Hi,
I'm n00b using travis CI. I have managed to build a site using gh-page, but now i want to make use of the Jasper theme on a USERNAME.github.io site, that use master branch, I change to but I have an error on the build can you helpme:
bundle exec rake site:deploy --quiet
Cloning into '../adle'...
error: pathspec 'source' did not match any file(s) known to git.
rake aborted!
Command failed with status (1): [git checkout source...]
/home/travis/build/acercadelaeducacion/acercadelaeducacion.github.io/Rakefile:60:in `block (2 levels) in <top (required)>'
/home/travis/.rvm/gems/ruby-2.1.10/bin/ruby_executable_hooks:15:in `eval'
/home/travis/.rvm/gems/ruby-2.1.10/bin/ruby_executable_hooks:15:in `
'Tasks: TOP => site:deploy
(See full trace by running task with --trace)
I was setting up the site, and deploy under Github pages. it works fine , but however when I tried to click in the navigation to getting-started
link I got
404
Page not found
Go to the front page →
I got setup in _config.yml
as the following:
baseurl: /blog/
repo blog
Hi,
I downloaded and installed Jasper by adding the line:
gem: "jasper"
to my Gem file. I then ran bundle install
from the terminal. Finally, I switched the theme flag in my _config-yml file from theme: minima
to theme: jasper
.
I then tried to run bundle exec jekyll serve
and got this error messages:
Invalid theme folder: _sass
Invalid theme folder: _includes
Dependency Error: Yikes! It looks like you don't have jasper-api or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jasper-api' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
I checked if jasper-api is installed (with gem list
) and it seems like it is:
...
io-console (default: 0.4.5)
jasper (0.0.8)
jasper-api (0.0.8)
jasper-backend (0.0.8)
jasper-cli (0.0.8)
jasper-core (0.0.8)
jasper-frontend (0.0.8)
jasper-sample (0.0.8)
jekyll (3.8.5)
jekyll-feed (0.11.0)
jekyll-sass-converter (1.5.2)
jekyll-seo-tag (2.5.0)
jekyll-watch (2.1.2)
...
I am rather new at this and I can't seem to figure out what is going on here. Any help would be appreciated!
PS: I am working on MacOS High Sierra (v 10.13.6) and have jekyll (v 3.8.5)
I changed my author name, bio, and username in _config.yml, even restarted jekyll, and my author page doesn't seem to be generated. Am I missing something?
Hi, Thanks for building such a nice template.
I have an issue running jekyll locally.
After clone, configure _config.yml and bundle install
, just ran jekyll serve
and got this error.
/usr/lib/ruby/vendor_ruby/liquid/htmltags.rb:43: warning: key "index0" is duplicated and overwritten on line 46
Configuration from /home/morteza/www/nik/nikmodern.github.io/_config.yml
Building site: /home/morteza/www/nik/nikmodern.github.io -> serve
/home/morteza/www/nik/nikmodern.github.io/_plugins/jekyll-catgenerator.rb:26:in `paginate': uninitialized constant Jekyll::Paginate (NameError)
from /home/morteza/www/nik/nikmodern.github.io/_plugins/jekyll-catgenerator.rb:16:in `build_subpages'
from /home/morteza/www/nik/nikmodern.github.io/_plugins/jekyll-catgenerator.rb:9:in `block in generate'
from /home/morteza/www/nik/nikmodern.github.io/_plugins/jekyll-catgenerator.rb:8:in `each'
from /home/morteza/www/nik/nikmodern.github.io/_plugins/jekyll-catgenerator.rb:8:in `generate'
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:184:in `block in generate'
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:183:in `each'
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:183:in `generate'
from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:39:in `process'
from /usr/bin/jekyll:250:in `<main>'
For some reason, when I "jekyll serve" my site on localhost with the jasper site, my content if fullscreen rather than having page margins like your example. My home page has margins, but my posts are full-width. Any idea why?
Here is the errror log from Travis-CI:
git push --quiet origin master
remote: Invalid username or password.
fatal: Authentication failed for 'https://wenzhishen:[email protected]/wenzhishen/wenzhishen.github.io.git/'
rake aborted!
Command failed with status (128): [git push --quiet origin master...]
My repository is at:
https://github.com/wenzhishen/wenzhishen.github.io
Environment Variables GIT_EMAIL & GIT_USERNAME is correct. I have checked twice. The TOKEN is copied from Travis-CI profile.
Can you find something incorrect in my configurations? I have no idea what to do now.
Thanks!
yasksrivastava at Yasks-MacBook-Pro in ~/jasper (master●●)
$ jekyll serve
WARN: Unresolved specs during Gem::Specification.reset:
listen (~> 3.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Configuration file: /Users/yasksrivastava/jasper/_config.yml
Dependency Error: Yikes! It looks like you don't have jekyll-paginate or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-paginate' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
jekyll 3.1.2 | Error: jekyll-paginate
Nice theme!
There is a problem in my blog. I had changed the 'categories' and 'tags' in my markdown posts and it works well in local server but not in pages.github.com. I wander if there is any mistake I made.
Very nice port, thanks for sharing it.
I was wondering if the lack of syntax highlighting in code blocks is by design, or accidental?
Hi,
I have manage to build the site using Travis CI. I'm working on the master branch because is a USERNAME.github.io site. But it doesn't load the CSS on page 2. The site is on
https://github.com/acercadelaeducacion/acercadelaeducacion.github.io/
and my _config.yml is
safe: false
lsi: false
username: acercadelaeducacion
repo: acercadelaeducacion.github.io
branch: master
relative_source: ../
destination: ../jasper-pages/
production_url: https://acercadelaeducacion.github.io/
source_url: https://github.com/acercadelaeducacion/acercadelaeducacion.github.io/
i don't know what is wrong. Now i have this error on travis:
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
error: pathspec 'gh-pages' did not match any file(s) known to git.
rake aborted!
Command failed with status (1): [git checkout gh-pages...]
/home/travis/build/acercadelaeducacion/acercadelaeducacion.github.io/Rakefile:61:in `block (3 levels) in <top (required)>'
/home/travis/build/acercadelaeducacion/acercadelaeducacion.github.io/Rakefile:61:in `chdir'
/home/travis/build/acercadelaeducacion/acercadelaeducacion.github.io/Rakefile:61:in `block (2 levels) in <top (required)>'
/home/travis/.rvm/gems/ruby-2.1.10/bin/ruby_executable_hooks:15:in `eval'
/home/travis/.rvm/gems/ruby-2.1.10/bin/ruby_executable_hooks:15:in `
'Tasks: TOP => site:deploy
(See full trace by running task with --trace)
The command "bundle exec rake site:deploy --quiet" exited with 1.
just like the title said
there is another slash '/' after repository name in all post links
example in your page
http://biomadeira.github.io/jasper//i-have-a-dream
it isn't something big since everything works great so far
i use this theme now because i love ghost and jekyll
Hi,
Thank you for creating an excellent theme, it is working like a charm and of course also very aesthetically pleasing!
I have a quick question: I modified screen.css to include .icon-linkedin, which I wanted to add to the 'share this post' section of the 'post template'. I changed the Unicode (?) character code to 'f427', but it is not displaying. Is the icon missing in the 'casper-icons.woff', or am I simply using the wrong chracter codes? Thanks!
The url requested is http://0.0.0.0:4000/jasper/about
Accessed via the right menu , about link
I was expecting to be able to fence code blocks with this syntax:
```
code here
```
But it doesn't look like that's supported.
In addition to just being comfortable with that syntax from regular GitHub use, I'd also like to be able to do this: http://zpao.com/posts/adding-line-highlights-to-markdown-code-fences/
I tried copying the Redcarpet settings out of React's _config.yml
but that doesn't seem to have any effect:
markdown: redcarpet
redcarpet:
extensions:
- fenced_code_blocks
- footnotes
Any idea how I can enable this feature?
Hi there,
The Jekyll theme has been working great, thanks again for putting it together.
One strange thing I noticed today-- all of the instances of the two-letter sequence "fi" were replaced with "i", in the content of my blog posts. It's definitely something about the font because the developer tools shows the original "fi" content. It's a problem with the ligature for blended fi typography. I'm not quite sure how to go about fixing it, other than trying to change the font. Has anyone else experienced this? It's conceivable I screwed something up while mucking around with the multiple author support experiments, so forgive me if this is my own problem. I've replicated the behavior on several different browsers and devices, and I see it serving both locally and remote.
I'll report back about what I find out.
I liked this theme and tried to deploy on Github pages, but I get below email from GitHub.
The page build completed successfully, but returned the following warning:
You are currently using the 'redcarpet' Markdown engine, which will not be supported on GitHub Pages after May 1st.
At that time, your site will use 'kramdown' for markdown rendering instead.
To suppress this warning, remove the 'markdown' setting in your site's '_config.yml' file and confirm your site renders as expected.
For more information, see https://help.github.com/articles/updating-your-markdown-processor-to-kramdown.
How to get correct version on github pages?
Hi,
I want to use travis ci method for user pages. I'm testing and playing but i'm new with this.
I made a branch "source" where i have the jasper files and now I'm building on "master" branch because i modify the destination_branch variable on Rakefile.
But is this the right procedure?
Hello, I'm a real beginner at this and I have been trying to deploy my site for weeks now.
Unfortunately, I just cannot seem to get past step 1: _Upload the resulting site/ (or ../jasper2-pages/) contents to your repository (master branch if uploading as your personal page (e.g. username.github.io) or gh-pages branch if uploading as a project page (as for the demo).
Furthermore, when I tried using netlify, I'm not sure where the CDN part comes. After successfully deploying (only on netlify), I would get a netlify website with no css from the theme. I'm so lost and confused...
I really love this theme and want to use it for my site. Would appreciate the help!
When first trying to use this theme locally, I recieved the following error:
/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/resolver.rb:347:in `block in verify_gemfile_dependencies_are_found!': Could not find gem 'jekyll (~> 2.4.0) ruby' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound)
I used gem install jekyll -v 2.4.0
to downgrade my current version of Jekyll.
In spite of having installed redcarpet-3.3.2, I recieve the following error when trying to serve:
Dependency Error: Yikes! It looks like you don't have redcarpet or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- redcarpet' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
redcarpet
Hey @biomadeira! Loved the theme. Just loved it. Been customising it for a day now. However, I'm unable to use Travis to build the site for me. Everything goes well until the bundle exec rake site:deploy --quiet
thing. The command fails and the build fails. The error message is:
remote: Invalid username or password.
fatal: Authentication failed for 'https://theramiyer:[email protected]/theramiyer/noob.ramiyer.me.git/'
rake aborted!
Command failed with status (128): [if [ -n '$(git status)' ]; then
...]
.
.
.
The command "bundle exec rake site:deploy --quiet" exited with 1.
I'm new to all this, and I'm sorry to bother you about this perhaps trivial thing. But I tried searching Google without luck. Could you help, please?
I know I'm making a mistake so small, I would wanna bury my face in the sand once you point it out, but still. Don't know what I'm missing.
Am I going wrong somewhere here?
username: theramiyer
repo: noob.ramiyer.me
branch: master
relative_source: ../noob.ramiyer.me/
destination: ../jasper-pages/
production_url: https://theramiyer.github.io/noob.ramiyer.me/
source_url: https://github.com/theramiyer/noob.ramiyer.me/
The fork is https://github.com/theramiyer/noob.ramiyer.me.
Hello! I think I might've found a spelling error of Jekyll in _config.yml
, but I'm not sure if it is intended.
To fix it, change the first line from
# Jykell configuration
to
# Jekyll configuration
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.