bencentra / centrarium Goto Github PK
View Code? Open in Web Editor NEWA simple yet classy theme for your Jekyll website or blog.
Home Page: http://bencentra.com/centrarium/
License: MIT License
A simple yet classy theme for your Jekyll website or blog.
Home Page: http://bencentra.com/centrarium/
License: MIT License
The following should print everything within the raw tags with pretty highlight.js syntax colouring
<pre><code class="hljs html">
{% raw %}
<ul class="post-list">
{% for post in site.posts %}
<li>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
</li>
{% endfor %}
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
{% endraw %}
</code></pre>
But all that comes out is the Liquid templating:
{% for post in site.posts %}
{{ post.date | date: "%b %-d, %Y" }}
{{ post.title }}
{% endfor %}
subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS
Ignoring the highlight.js <pre>
and <code>
tags, even if I just use the {% raw %}
mark up I still only see the liquid output. Is Centrarium handling the raw tags properly?
Hello, recently I find something strange in my few attempts when writing my own blogs: when I change the date-time from the template posts, exactly, from 2015 to 2021, the post will disappear! And neither can I found the post on the posts' page nor the main page.
I just create a new file named "2021-05-10-Hello-world.md" in the post folder and do not change any other codes. Here is my attempt:
---
layout: post
title: "Hello world!"
date: 2012-05-10T22:25:52-05:00
author: Luke Huang
categories: Dummy
---
## Hello world!
As you can see, this is the first blog!
But when I run the command bundle exec jekyll serve
, I find the page missing. Can anyone tell me what's wrong with it? Thank you!
Hi and thanks for the awesome theme!
I tried to enable jemoji plugin by adding gem 'jemoji' in my Gemfile. I then added an emoji like ๐ in my post but i get a huge Icon instead. Probably I'm doing something wrong here, can you help?
Regards
http://gudong.name/ this is my blog and use your theme . and now i meet a problem ,
when i click category and tag it point 404 , I think some place occur a problem , please give me some advice ~
thanks~
local test with centrarium-master:
What's the problem?
whenever resize image from url in post, width didn't change. how can I change this default image setting?
I don't know anything about front-end so excuse for my dumb question
Setting
img {
[...]
width: 100%;
}
seemed to make the images wide enough. But I can't find the setting for the highlight boxes. If that's not possible: how do I make the text field wider in general?
Anything else?
Would it be possible for you to provide this theme as gem, as the default minima theme is served? This would make the switch to this theme easier in my eyes. There is some more information about it at: https://jekyllrb.com/docs/themes/
Hi and what a great theme to be able to use and customize!
I'm trying to remove Typography from navigation but cannot do that without breaking the page in github. I'm sure there is something I'm missing but it would be great if someone could help.
In a local jekyll setup i can see the _site folder but not in the repo that is uploaded and handled in github.
Thanks
For instance: http://bencentra.com/feed.xml
The description should probably be a snippet from the post, or just the first few sentences, like on the Centrarium home page.
Could you please add search functionality?
So Facebook share popups with the wrong URL and 404 error. Do you have a fix for this?
Also the Twitter share is being rendered without an embed image . Need to fix that too.
Hi Ben,
I've just finished converting my blog to jekyll and loved the look of your theme, so I decided to start using it! In doing so I began tinkering with the theme to better suit my needs, which resulted in me adding a number of features to my version of the theme. The summary of these features are;
I've included the changes in my personal github pages repo, if you're keen on any of the above listed modifications let me know and I'd be happy to battle harden the changes and make them more configurable as required, as well as creating some proper single-feature PRs for you to peruse.
Please add telegram social media icon
I'm going to echo what others are saying. All of the secondary pages (everything but home) isn't loading the css.
I fixed that by changing the css link in includes > head to a static link to "http://myurl.com/css/main.css" but now whenever I click on a link (from any page other than home) it just appends that page name to the current URL. It seems to be that the {{"URL" | prepend }} tags aren't working (but I'm totally new to jekyll so IDK)
My site is live if you want to check it out http://pastorryanhayden.com
When it is category:Dummy (in _posts), then in the homepage , - in Dummy , doesnt redirect to the correct page. if you change frontmatter from category:Dummy to category:dummy , then it works.
First of all, thanks for providing such an awesome theme.
I'm a newbie in Jekyll, but I think I managed already to install Jekyll (jekyll 2.5.3), gems and all the dependencies.
However, when I try to use centrarium in my 'username.github.io' page, I visualize the final web page in a pure-text format and not the beautiful them centrarium is (I also tried just forking centrarium changing the name into 'username.github.io' without good results )
The pure-text format I got is exactly what I got when running:
jekyll build --destination web
as you can see here:
but when I run
jekyll serve
in my local machine directory I got the result I want, as you can see here:
could you provide some help in what I'm doing wrong ?
Thanks in advance
I'm trying to show the description of a category in the _config.yml file and when I run the theme locally, it's fine but live doesn't show the description to my categories.
when i input http://localhost:4000/ it fail but when i input http://127.0.0.1:4000/centrarium/ it run correct like this
my config file is
title: GuDong
subtitle: "A simple yet classy theme for your Jekyll website or blog"
email: [email protected]
name: Ben Centra
description: >
A simple yet classy theme for your Jekyll website or blog.
baseurl: "/centrarium/" # the subpath of your site, e.g. /blog/
url: "http://bencentra.github.io" # the base hostname & protocol for your site
cover: "assets/header_image.jpg"
logo: "assets/logo.png"
markdown: kramdown
paginate: 5
paginate_path: "/page:num/"
......
how should i do ? thanks
I'm having an issue installing the site, specifically when I run bundle install
. I tried installing yajl-ruby 1.2.1 and got an error as well, while installing the latest version of yawl-ruby gives no issues (except that I still can't run bundle install
.
An error occurred while installing yajl-ruby (1.2.1), and Bundler cannot
continue.
Make sure that `gem install yajl-ruby -v '1.2.1'` succeeds before bundling.
Anything I can do about it? Thank you!
Trying to build a site with the centrarium theme, running $ bundle exec jekyll serve and getting the following conversion error:
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'css/main.scss':
Undefined variable: "$md-break-point". on line 65
jekyll 3.6.2 | Error: Undefined variable: "$md-break-point". on line 65
The problem is, I can't find the $md-break-point variable in any of my .scss files and don't know what line 65 is referring to.
I have installed:
bourbon 5.0.0
bitters 1.8.0
neat 2.1.0
jekyll 3.6.2
The main.scss file looks like this:
@charset "utf-8";
// Import partials from sass_dir
(defaults to _sass
)
// Includes Bourbon, Neat, and Bitters (thanks, thoughtbot!)
@import
"bourbon/bourbon",
"base/base",
"neat/neat",
"layout"
;
I'm new to sass/css with jekyll - any thoughts would help! Thanks.
repo: https://github.com/caityp/caityp.github.io
The first link in "Here's a demo" is deprecated and throws a 404 error.
Hi,
First off, great theme and I'm trying to use it for my blog hosted on github pages (https://oliviervaillancourt.com). So far, pretty good success. My first blog post has javascript fenced code blocks and it works great as far as syntax highlighting goes.
However, my second blog post (currently in the works) as c# fenced block. I would prefer to be able to apply the standard Rouge
syntax highlighting.
I've tried the following so far without success. Note that I am running these tests locally and not as a github pages deployment
#highlightjs_theme: "monokai-sublime"
from _config.yml
highlighter: rouge
in _config.yml
<link>
tag that is is pulling down the monokay-sublime
cssI'm always getting no highlighting at all
Any help would be greatly appreciated
Thanks, Olivier
Hey there. Tried installing your nice-looking theme but hit this error:
[user@system project]$ jekyll build
Configuration file: /path/project/_config.yml
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:2007:in `raise_if_conflicts': Unable to activate jekyll-archives-2.0.0, because jekyll-3.0.0.pre.beta9 conflicts with jekyll (~> 2.4) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1176:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems.rb:186:in `rescue in try_activate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems.rb:183:in `try_activate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:132:in `rescue in require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-3.0.0.pre.beta9/lib/jekyll/plugin_manager.rb:30:in `block in require_gems'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-3.0.0.pre.beta9/lib/jekyll/plugin_manager.rb:27:in `each'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-3.0.0.pre.beta9/lib/jekyll/plugin_manager.rb:27:in `require_gems'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-3.0.0.pre.beta9/lib/jekyll/plugin_manager.rb:19:in `conscientious_require'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-3.0.0.pre.beta9/lib/jekyll/site.rb:98:in `setup'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-3.0.0.pre.beta9/lib/jekyll/site.rb:49:in `initialize'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-3.0.0.pre.beta9/lib/jekyll/commands/build.rb:30:in `new'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-3.0.0.pre.beta9/lib/jekyll/commands/build.rb:30:in `process'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-3.0.0.pre.beta9/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-3.0.0.pre.beta9/bin/jekyll:17:in `<top (required)>'
from /usr/bin/jekyll:23:in `load'
from /usr/bin/jekyll:23:in `<main>'
[user@system project]$
On local dev build, the list of posts in reverse time order shows well with the pagination.
But on production build which is deployed on Github Page the list doesn't show up.
Does anyone know this issue?
Deployed url: https://seong7.github.io/
Github Repository: https://github.com/seong7/seong7.github.io
Your theme has been listed on https://jekyll-themes.com/.
im hardware engineer so not friendly to these front end web. (but it's fun!)
thanks if you could answer me.
Ben and All,
Thanks for the awesome Jekyll template. I love how simple and clean it is.
I signed up for Disqus yesterday and added my username to _config.yml, but I'm getting the Disqus troubleshooting error. You can see my first post here. And here's the Github markdown file for that post.
Here's my _config.yml. Is there something else I need to do to enable Disqus?
Thanks,
Bryan
i'm just follow instruction, but don't work pagination in index.html
Hey @bencentra,
First of all thanks for your theme, looks like super nice!
I would like to know what is the procedure for a newbie to be able to use your theme.
I have first followed the official jekyll documentation to have jekyll running on my machine (Mac OS X) with a fresh website running locally:
It's running without any issue.
jekyll serve
Configuration file: /Users/gayly/Work/Perso/my-awesome-site/_config.yml
Source: /Users/gayly/Work/Perso/my-awesome-site
Destination: /Users/gayly/Work/Perso/my-awesome-site/_site
Generating...
done.
Auto-regeneration: enabled for '/Users/gayly/Work/Perso/my-awesome-site'
Configuration file: /Users/gayly/Work/Perso/my-awesome-site/_config.yml
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
Then I've tried just downloaded your theme, unzip it and try to run it using jekyll serve and here is what I got:
jekyll serve
Configuration file: /Users/gayly/Work/Perso/Yassine-Gayl-Blog/_config.yml
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- jekyll-archives (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:29:in block in require_gems' from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:26:in
each'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:26:in require_gems' from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:19:in
conscientious_require'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:79:in setup' from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:41:in
initialize'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:29:in new' from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:29:in
process'
from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/commands/serve.rb:26:in block (2 levels) in init_with_program' from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in
call'
from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in block in execute' from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in
each'
from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in execute' from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in
go'
from /Library/Ruby/Gems/2.0.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in program' from /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/bin/jekyll:20:in
<top (required)>'
from /usr/bin/jekyll:23:in load' from /usr/bin/jekyll:23:in
Do you have any idea where this could come from. I guess from something declared within the _config.yml file.
Since then, I assume that I wont be able to copy your config file and put it in the jekyll default generated directory.
Thanks for your help!
Yassine
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.