GithubHelp home page GithubHelp logo

renyuanz / leonids Goto Github PK

View Code? Open in Web Editor NEW
867.0 18.0 356.0 17.88 MB

A simple, fixed sidebar two columns Gatsby.js blog starter.

Home Page: https://renyuanz.github.io/leonids

License: MIT License

CSS 7.35% JavaScript 80.11% TypeScript 12.53%
jekyll blog fixed-sidebar gatsbyjs gatsby-starter

leonids's People

Contributors

antoniocoratelli avatar astro36 avatar bsinky avatar cnotin avatar cywd avatar dracoblue avatar fpereira1 avatar hoangvanthien avatar inambe avatar rantoniuk avatar renyuanz avatar skn0tt avatar slinv avatar sohambhattacharyya avatar soumitraagarwal avatar steinwaywhw avatar strangehill avatar ventaquil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leonids's Issues

OpenGraph title and description capture not working

{% if page.title %}
  {% capture title %}{{ page.title }} | {{ site.title }}{% endcapture %}
{% else %}
  {% capture title %}{{ site.title }}{% endcapture %}
{% endif %}

{% if page.excerpt %}
  {% capture description %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% endcapture %}
{% else %}
  {% capture description %}{{ site.description }}{% endcapture %}
{% endif %}

Disqus Login Not Working

I imagine it is probably a Disqus or github pages issues, but I can only seem to login using my disqus account on your sample blog.

Adding custom Image to the sidebar

I wish to add an image that spans the entire sidebar. How do I go about doing it?
I tried adding background-image: url("back.png"); to the _layout.scss file. (also tried giving the complete and relative urls to the image) but nothing happens.

Could you please help me?

comments section not working

I just uploaded the theme to my repo but it seems comments not working. Is there any setting for this?

Thanks

Missing .bundle file

After fork/clone repo, update _config.yml and try to execute bundle exec jekyll build a error occur

$ bundle exec jekyll build
Could not locate Gemfile or .bundle/ directory

in master brach

# Personal Issue with applying posts to my blog

Hello,

Could you be able to assist me what I have done wrong?

The posts that I have committed (attached the image below) do not apply to my blog.

It worked fine when I uploaded posts from the office in my company.

But, it does not seem to work now when I am working at home with my laptop.

I re-cloned the repository using Github Desktop and uploaded two posts under _posts folder.

As you can see, I uploaded two posts below. But, they are not applied to my blog.

screen shot on 2017-09-09 at 23-40-22

Instead, there is a post that I have never written, which is written in 9 Sep 2017 like below image.

I have been trying so hard to find what the problem is, but i really cannot find it.

screen shot on 2017-09-09 at 23-58-19

Enabling line numbers adds too much space before codes

Line numbers with Rouge has been giving me headaches for a long time and I tried to enable line numbers on this theme, deployed locally, it still gives too much space between the number and the codes. Also the alignment is just way off each other. Looks like Jekyll treats line number and codes as a two column table but I couldn't find a proper way to resize the column in the css file. Anyone has any idea?
To enable the line numbers I edited the _config.yml file

kramdown:
  input:          GFM
  # https://github.com/jekyll/jekyll/pull/4090
  syntax_highlighter: rouge

  # Rouge Highlighter in Kramdown › http://kramdown.gettalong.org/syntax_highlighter/rouge.html
  # span, block element options fall back to global
  syntax_highlighter_opts:
    # Rouge Options › https://github.com/jneen/rouge#full-options
    css_class: 'highlight'
    #line_numbers: true # bad idea, spans don't need linenos and would inherit this option
    span:
      line_numbers: false
    block:
      line_numbers: true
      start_line: 1

And the result looks like this:
Syntax Highlighting with line numbers

Home button in categories list

Since we have one home button for every post, putting on in the categories list would add to the uniformity of the layout. I know that the portion of "your name" links to the home, but it is tougher to find and if we are doing it in posts we may as well do it in the categories, tags etc. There are 2 ways we can handle this

  1. By adding a button to each one of categories, tags, archives etc. 😟
  2. Add a home button to the sidebar and no such hassle is required.

Any suggestions?

translate3d in _post.scss not compatible with Magnific Popup

In _post.scss there's a section:
-webkit-transform: translate3d(0,0,1px);
transform: translate3d(0,0,1px);

For reasons unknown, if you use Magnific Popup CSS (which lets you click an image and see a blown up version that overlays everything else) this line kills it and forces the image to only consume the left sidebar (on Safari only; Firefox was fine).

I'm happy for you to close this and leave it as-is, but because it's so innocuous, and took me hours to find after upgrading today, I thought there should be some note somewhere about it. I took these lines out and everything worked without any ill effects.

添加分享点击微信图标,二维码形状失真

http://www.jiathis.com/
这个网站获取分享代码,或直接拷贝以下代码到任意一处:

<textarea>
SHARE ON
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","weixin","sqq","youdao"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
</textarea> 然后试试

[enhancement/suggestion] - "how to add more pages" section in README

Hello @renyuanz,

Great job!
This Gatsby started was so good (simple and elegant enough) that I have decided to use this as a base for building my own personal site (with possibly a few customisations).
However, I thought it would be a good idea to also include a section in the README for this starter to add more pages to this (such as a contact or about or projects page) so that this could potentially also be used as a personal website.

Load extra Sass

Since I like the theme, I decided to install Leonids as theme in my Jekyll-based site. I am using the Ruby Gem.

Now I have one or two pages that need a little extra styling to make things look good. This extra styling is basically a .scss file. How could I have Jekyll load that file so it will be included in the HTML output?

add more social links

I want to add my Academia.edu as social links. I can modify _config.yml and _includes/social-links.html partially. But, how to add the Academia.edu's icon? Is it possible?
Thanks for your advice

Google Analytics

I notice there is below source codes for Google Analytics in js.html.

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  ga('create', '{{ site.owner.google.analytics }}', 'auto');
  ga('send', 'pageview');
</script>

However, it does not seem to link to my google analytics.

All i did was to put my google analytics id starting with UA- in the _config.yml.

Is there something else I need to do?

Netlify CMS

If this comes with pre-installed netlify cms many new user will come. As this is very amazing template.

Eta for portfolio pages

Hi @renyuanz
Your template looks amazing and pretty simple to start use. I spent few hours to choose from many others.
Are you continue working on it and is it have sense to wait for updates(specially with portfolio pages)?

Support for site owner avatar img?

Not sure if I'm missing something, but it looks like this jekyll theme doesn't include code to support an site owner avatar image. Also the example yml file references an avatar image that doesn't exist in the /img/ folder. Otherwise really cool theme design so far!

Anything we can do about the highlighter page build warning? _config.yml

Github pages does not support pygments. This is the email I received

The page build completed successfully, but returned the following warning:
You are attempting to use the 'pygments' highlighter, which is currently unsupported on GitHub Pages. Your site will use 'rouge' for highlighting instead. To suppress this warning, change the 'highlighter' value to 'rouge' in your '_config.yml' and ensure the 'pygments' key is unset. For more information, see https://help.github.com/articles/page-build-failed-config-file-error/#fixing-highlighting-errors.
For information on troubleshooting Jekyll see:
https://help.github.com/articles/troubleshooting-jekyll-builds
If you have any questions you can contact us by replying to this email.

Can we add rouge as the default highlighter and put pygments as an alternate comments

Resume section is missing

Your template looks amazing and it is what I been looking for.

This is my first time opening my github blog, so this may sound silly to ask.

If i may, I see Demo site has resume section on the left side of the page along with home/archive/categories/...,

but Mine is missing.

Where do I need to take a look at?

Also, if you could guide me where I could change the text "A simple and awesome blog theme powered by jekyll.", I will be appreciated.

Error while converting site to HTTPS

I changed my site to HTTPS. But still the code is referring the asset with HTTP. Can someone point me where i can change it in the code base?

Google Analytics not linked

It seems https is missing from the js.html, for google analytics.

<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXXXX-X', 'auto'); ga('send', 'pageview'); </script>

https://github.com/renyuanz/leonids/blob/dfdd3fd5e159b3254be03293516c163f3f62e12e/_includes/js.html

Extra slash on pages list

On your personal site, the pages list has a trailing slash after "tags" ("home / ... / resume / tags /"), and I'm having this issue on my site as well. I love your template design, but that extra slash is poking my OCD.

I see that on the leonids page, you don't have that trailing slash ("home / ... / categories / tags"). I'd love to my page to look like that. Do you have any idea on how what is going on?

Thanks and congrats on the project.

Github Workflow vs. leonids Workflow

Hi @renyuanz , I'm just wonder what's the development workflow of this repo look like. It seems like master was the main development branch before and suddenly you started to work on gh-pages branch only without updating the master branch.

There is a helpful gist showing how to keep gh-pages up to date with master: https://gist.github.com/mandiwise/44d1edce18f2ffb14f63

As per Github Workflow, master branch should be the stable branch where changes or finished feature got merged in. A gh-pages is a a publishing source, in this repo's case, the gh-pages branch should reflect the new features/changes merged in to master branch.

I'm just wanting to know the structure/organization of the repo so I can join the development and make pull request to the right branch :)

Aligning images inside the post

Hi, I've been using your theme for a while and I really appreciate your great work!

Mean while, it seems that your theme aligns the images inside the post to the left.
However, I'd like to fix that to center-align.
I tried fixing _global.scss and _normalize.scss by adding

margin-left: auto;
margin-right: auto;

to the "img" part.

But, it's not working..

Any suggestions?

Thanks

Analysis Tool

Hi, I would like to implement Google Analytics or similar services to track how many people have viewed my page, and related statistics.

How should I use it?

If you could explain a bit about it, I will be very thankful.

UPDATED: I SOLVED IT!

I notice there is GoogleAnalytics in js.html file, and I just had to change google analytics ID in _config.yml

can i customize it?

if i want to remove some tabs like lets say resume and add something custom, how would i go about it?

Tags Not Working

Just got started with the template, and with the sample posts and all the tags aren't showing, any reason why this might be failing? Console log isnt showing any errors though. Attached screenshot below.

Edit: The Jekyll Drops was me trying to debug the site.tags

image

leonids gem installs okay but can't build site

I installed a new site following the official doc. Using bundle exec jekyll it builds without problems. Then I added leonids also following the official docs. When trying to buid jekyll throws the following errors:

    Liquid Warning: Liquid syntax error (line 7): Expected dotdot but found comparison in "(page.image.feature contains 'https') or (page.image.feature contains 'http')" in /_layouts/post.html
    Liquid Warning: Liquid syntax error (line 7): Expected dotdot but found comparison in "(page.image.feature contains 'https') or (page.image.feature contains 'http')" in /_layouts/post.html
    Liquid Warning: Liquid syntax error (line 7): Expected dotdot but found comparison in "(page.image.feature contains 'https') or (page.image.feature contains 'http')" in /_layouts/post.html
    Liquid Warning: Liquid syntax error (line 7): Expected dotdot but found comparison in "(page.image.feature contains 'https') or (page.image.feature contains 'http')" in /_layouts/post.html
  Liquid Exception: Could not locate the included file 'icon-github.html' in any of ["/home/me/mysite/_includes", "/var/lib/gems/2.3.0/gems/leonids-0.1.1/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source. in about.md
jekyll 3.2.1 | Error:  Could not locate the included file 'icon-github.html' in any of ["/home/me/mysite/_includes", "/var/lib/gems/2.3.0/gems/leonids-0.1.1/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source.

Am I missing something here?

Cheers
kai*

Github Pages Build Error - Config.yml

GitHub is unable to build a Jekyll page when _config.yml is included in .gitignore. After I excluded/removed that line from .gitignore GitHub was able to build it. Maybe this info can be added to the readme file?

Thanks for creating a simple and nicely designed theme,
Andre

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.