hemangsk / gravity Goto Github PK
View Code? Open in Web Editor NEWMinimal is the new cool.
Home Page: http://hemangsk.github.io/Gravity
License: MIT License
Minimal is the new cool.
Home Page: http://hemangsk.github.io/Gravity
License: MIT License
This issue is created to get you up and running with Jekyll, the superb static site generator.
Basically you have to,
Step 1
Step 2
That's it!
Got Queries? Need help getting started ? Just comment below.
Hi there,
I'm very new to setting up websites, but I really like your gravity theme. I'm trying to learn a bit about how everything is put together, and can't for the life of me figure out how the navigation pages are generated. I see how to change the actual name values associated, but I don't understand how they're being generated. I'm mainly curious, as I'd like to learn how to change the ordering of items in the navigation window, but also to better understand what is happening under the hood.
Thank you,
Spencer
Hi Hemang,
Thanks for your Jekyll theme.
I added images to my blog based on your theme.
When I access my repository from GitHub, the image is available and can be seen in the post via repository, but when I load the HTML version of the post from GitHub pages, the image appears as a broken link.
I am pretty sure I need to add something like this to the base structure
<img src="{{ site.baseurl }}/path/to/img/myImage.jpg">
but I am unsure where exactly I need to add this in.
Hi,
How would you add icons beside the Github and Twitter you have in the footer? I've downloaded a Facebook icon and converted it to svg and imitated the format for both the svg and html of the github icon, yet it is still not working. Can I ask where you downloaded your svg for Github from?
Thanks!
Here is what the svg for the Facebook icon looks like, and I think somehow it doesn't look right?
d="M51 506 c-45 -25 -50 -49 -51 -244 0 -200 6 -228 55 -250 36 -16 374
-16 410 0 49 22 55 51 55 248 0 197 -6 226 -55 248 -38 17 -382 16 -414 -2z
m369 -115 c0 -25 -4 -30 -27 -33 -22 -2 -29 -9 -31 -30 -3 -25 0 -28 26 -28
26 0 28 -3 24 -30 -3 -24 -9 -30 -28 -30 -24 0 -24 -2 -24 -90 l0 -90 -40 0
-40 0 0 90 c0 73 -3 90 -15 90 -10 0 -15 10 -15 30 0 20 5 30 15 30 11 0 15
11 15 39 0 52 34 81 96 81 42 0 44 -1 44 -29z"
All of these are integers, but yours seems to have floating points
i just tried this solution:
{% if post.categories contains "Design" or post.categories contains "Download" %}
which sort of works. i noticed when i add new posts to other categories (eg "Artwork"), it shows up on my home page but as a blank entry. what have i done wrong?
---
layout: default
---
<div class="home">
{% for post in paginator.posts %}
{% if post.categories contains "Design" or post.categories contains "Downloads" %}
<div class="post postContent">
<div class="postTag">
{{post.tag}}
</div>
<div class="postTitle">
<a class='postLink' href="http://website.com{{site.baseurl}}{{post.url}}">{{post.title}}</a>
</div>
<div class="postExt">
{{ post.content | strip_html | truncate:275}}
</div>
</div>
{% endif %}
{% endfor %}
{% if paginator.total_pages > 1 %}
<nav class="pagination">
{% if paginator.previous_page %}
<a class="paginationLink" href="http://website.com{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em class="paginationLink paginationLinkCurrent">{{ page }}</em>
{% elsif page == 1 %}
<a class="paginationLink" href="/">{{ page }}</a>
{% else %}
<a class="paginationLink" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}/">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a class="paginationLink" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}/">Next »</a>
{% endif %}
</nav>
{% endif %}
</div>
Hi,
I'm using this for my blog, and I feel grateful for your share.
I just want some kind of timeline in the archive layout, does it support? Such as, categorizing the posts by year.
Thanks.
Hi,
Do you have any plans to integrate the Jekyll SEO plugin? It doesn't appear to work currently?
Cheers
Ed
hi, i use jekyll lately, and not familiar with html and css, when i finished my post, i founded that home page show all content not excerpt, there is my blog page P.G, i really like Gravity and do not want to change theme, so can you help me fix it? thanks, i will be really appreciate.
I forked this to see what it looked like. I changed the link to my user name and am using the gh-pages and it returns a 404.
I changed it to the master branch after deleting the rest, and the page is missing all the css. What part am I missing? All the other jekyll themes seem to just work off a fork.
Hi Hemang,
Hope you're keeping well.
I needed to share my RSS feed for posts relating to a category with another website - the objective is to enable the other website to publish my posts at their end too.
I can find my RSS feed here:
http://aliarsalankazmi.github.io/blog_DA/feed
I am unsure, however, if the current feed.xml file with Gravity
enables segregating posts for certain categories.
If it is possible to achieve this still, could you please guide me?
Thanks.
Hello,
I am trying to setup my github page with your theme and am unable to install jekyll on Ubuntu 16.04.
My default compiler is gcc-4.8 if that could be a possible issue.
The error I get looks like the following:
sudo gem install jekyll
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.17/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20170118-14003-6ja05m.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/usr/lib/ruby/2.3.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/2.3.0/mkmf.rb:541:in `try_link0'
from /usr/lib/ruby/2.3.0/mkmf.rb:556:in `try_link'
from /usr/lib/ruby/2.3.0/mkmf.rb:657:in `try_ldflags'
from /usr/lib/ruby/2.3.0/mkmf.rb:1813:in `pkg_config'
from extconf.rb:15:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.17/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.3.0/gems/ffi-1.9.17 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.17/gem_make.out
The mkmf.log file contains the following:
| pkg-config --libs libffi
=> "-lffi\n"
"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -Wdate-time$
gcc: error: unrecognized command line option ‘-Wdate-time’
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
Do you have any idea of how I could setup jekyll on the machine?
Thanks,
Ankit
First off, I love this theme. The issue I am having relates to clicking on the about page or articles page and then when I click the home button, it takes me to your domain.com every time. I even set it to my github url and am getting no luck. I've tried for hours and have gotten nothing butt error page not found pages and your domain.
Can you help me figure out why the template doesn't return to the homepage like I want it to?
you can see my page here https://rollonbears234.github.io
Hey, buddy
I LOVE this theme! It's so simple, clear and cool.
But, is pagination supported by Gravity?
BTW, here is my page 😄 , http://blog.rodickcai.com/
The ultimate aim will be to create a m x n size grid of screenshots in README.md to showcase of different pages in Gravity and put them inside a folder called Screenshots.
Different pages which you can choose are,
hey i just installed gravity on a brand new server and im not sure how to add posts.
i copied the default.html layout and renamed it test.html. then copied the science.md in the root diretory and renamed it test.md.
$ cat test.md
---
layout: default
title: test
permalink: /test/
tagline: "Humanity is overrated."
category: "test"
---
then i created a new post:
$ cat _posts/2017-03-30-test.markdown
---
layout: default
title: "Science of Gravity"
date: 2017-03-30 19:45:31 +0530
categories: test
author: "Chandler Bing"
---
<>test
but the post doesnt appear after restarting the jekyll server. any idea what im doing wrong?
what's the easiest way to make design.md or about.md my index.html?
Hi Hemang,
I hope you are keeping well - and that you remember me! ;)
I am facing a problem: When I add a new blog post, for some reason the commit and update is all fine, but the new post does not appear on the main page.
Solutions I have tried:
future: true
to config.yamlThanks so much in advance for your help :)
I find the font style and size a bit too different in the preview page of posts and the posts themselves. I want to customize it ... how should I go about doing it?
Hey, I'm a complete html and css noobie. What's the easiest way to host the website fonts from the root of my jekyll site? Which lines in which files should I modify?
And thanks for Gravity, it's the best jekyll theme I've see yet.
Your theme has been listed on https://jekyll-themes.com/.
Would be cool to have the pages centered under the title. Atm it looks like they are left aligned.
I directly fork this repository to my github and build my site. However, the page doesn't look right, with only the raw elements. It seems that the scss doesn't work. How could I get those things right?
My site url is https://zhang-wenjun.github.io/HomePage_Gravity/
Thank you!
Hello! Sorry I'm relatively new to git and jekyll.
I've been tinkering with using this theme but the titles of my posts are turning red after I click on them and they stay red. Any fixes or idea of what I could be doing wrong? I didn't touch any of the code and the front matter seems to match the examples.
You have to create a directory structure graphic in README.md using markdown and write in one line what each folder contains.
Update
Directory structure created. Add one line per folder explaining the contents of the folder.
Example of a directory structure : (from https://raw.githubusercontent.com/mmistakes/made-mistakes-jekyll/master/README.md)
├── gulp # => gulp tasks
├── src # => source Jekyll files and assets
| ├── _includes
| ├── _layouts
| ├── _plugins
| ├── ...
| ├── _posts
| ├── assets
| | ├── icons
| | ├── images
| | | └── feature
| | ├── javascript
| | | ├── plugins
| | | ├── vendor
| | | └── main.js
| | ├── stylesheets
| | | ├── vendor
| | | ├── ...
| | | └── style.scss
├── .editorconfig
├── .gitignore
├── _config.dev.yml
├── _config.yml
├── Gemfile
├── gulpfile.js
├── package.json
├── rsync-credentials.json
├── ...
That's it!
Got Queries? Need help getting started ? Just comment below.
can you help me identify which lines in style.css i need to modify to invert the color theme. everything black to white, everything dark grey to light grey, etc. sorry, im a noob, clearly.
thanks!
How can I tell the homepage to show only posts from /design/ and /download/ but NOT posts from /science/ ?
dark_theme: true
to use the dark theme specific CSS.
:)
As I see you no longer develop this project, so I took it and added a couple of useful things
If you have something to offer you can take a look at them and send me a Pull requests
But the repository itself -> Gravity by mauladen
Hi! It seems as if the pages in the main navigation are in alphabetical order. Example:
Home | About | Contact | Portfolio
Is there any way to change the order to something specified? Thanks!
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.