Giter VIP home page Giter VIP logo

jekyll-theme-chirpy's People

Contributors

brootware avatar cotes2020 avatar dependabot-preview[bot] avatar dependabot[bot] avatar fwolfst avatar genericmadscientist avatar griceturrble avatar hepheir avatar joshjohanning avatar kungfux avatar mattpopovich avatar mill413 avatar mpavelka avatar mreddx avatar mrmurdock11 avatar neilboyd avatar nichtshsu avatar nshidqi avatar onevzz avatar paulovitorweb avatar penekhun avatar periecle avatar qbrak avatar renardjojo avatar ruzickap avatar ryantg avatar sillebille avatar some-natalie avatar v4vong avatar zakkemble 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jekyll-theme-chirpy's Issues

能否添加阅读次数功能?

作者你好,
我准备借用你的模版弄个人博客,因为jekyll不是很熟练,所以请问能否加几个功能?
比如,
1: 首页底部统计整个网站的访问次数
2: 单篇文章的访问次数??

谢谢!

which ruamel.yaml version ?

Which ruamel.yaml Chirpy depends on? ruamel.yaml has changed its API, and I'm trying to find a version that can be used. I'm using Python 3.5.2.
I've tried 0.16.5, 0.15.94, 0.14. Couldn't find the YAML class in them.

$ bash tools/init.sh 
Traceback (most recent call last):
  File "_scripts/py/init_all.py", line 12, in <module>
    import update_posts_lastmod
  File "/home/lucas/jekyll-theme-chirpy/_scripts/py/update_posts_lastmod.py", line 28, in <module>
    from ruamel.yaml import YAML
ImportError: No module named ruamel.yaml

The website icons, texts is scattered all over the screen

Describe the bug

When I load the website at https://magedhelmy1.github.io/web/
everything is all over the place

To Reproduce
Steps to reproduce the behavior:

  1. Fork the project
  2. Go to the forked project on your github and rename the forked github. For example "webpage"
  3. On the same page in settings, scroll down to "Github pages" and enable it.
  4. Clone the project locally
  5. Deleted .travis.yml and .github
  6. Open_config.yml on your desktop and configure the variables as instructed in the file
  7. then do the following

a) Git add .
b) git commit -am"..."
c) bash tools/init.sh
d) git push

Expected behavior

I am supposed to get something as similar as https://chirpy.cotes.info/
Screenshots

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: Version 81.0.4044.122 (Official Build) (64-bit)

This is in incognito mode

Capture

Mobile: scrolling to the bottom and opening navigation causes the view to jump

Describe the bug
The bug is unexpected behaviour when the user is on mobile and returns from navigation.

To Reproduce

  1. Go to https://chirpy.cotes.info/posts/write-a-new-post/.
  2. Open up Chrome Dev Tool and enter mobile view (Toggle device toolbar) with device "Pixel 2" selected.
  3. Scroll down to the bottom of the page.
  4. Open navigation.
  5. Close the navigation.

Expected behavior
The view should not jump after going to navigation.

Screenshots

  1. Scroll to bottom:
  2. Click on nav:
  3. Click on grey area:

Desktop:

  • OS: Windows 10
  • Browser: Chrome
  • Version: 80

Smartphone:

  • Device: Pixel 2

Notes
This bug doesn't occur anywhere else on the page except when at the very bottom.

How to go the root of the repo?

The instructions in the readme say to

Go to the root of repo and run:

$ bundle install

I'm not very familiar with terminal, I don't know how to go to the root of a repo before running something.

Help please?

Also, consider updating the readme so that the instructions are a bit clearer.

Emoji

How can I show emoji in this theme ?

categories and tags are not generated

I have converted my blogger template to jekyll template. On conversion, the layout of an example post will be like
---
layout: post
title: Binding html select using knockoutjs and asp.net mvc
date: '2013-11-25T18:42:00.001+05:30'
author: Naveen
categories:
- asp.net mvc
- javascript
- knockout.js
tags:
- asp.net mvc
- javascript
- knockout.js
modified_time: '2013-11-25T18:54:00.520+05:30'
---
URL: https://codeandcloud.github.io/

The site have these issues

  1. Getting 404'ed on clicking a tag on https://codeandcloud.github.io/tabs/tags/
  2. Categories doesn't get displayed at all

When I run $ bash tools/init.sh, terminal shows

$ bash tools/init.sh
[INFO] Success to update lastmod for 41 post(s).
warning: LF will be replaced by CRLF in _data/updates.yml.
The file will have its original line endings in your working directory
[master ec06b7d] [Automation] Updated the Lastmod for post(s).
1 file changed, 41 insertions(+), 41 deletions(-)
Updated the Lastmod for post(s).

Its missing

[INFO] Succeed! 3 category-pages created.
[INFO] Succeed! 4 tag-pages created.

Why are those pages not created? What am I doing wrong?

Thanks for this wonderful theme.

Organizing the Toc and Categories to be more intuitive for viewer

First. I am really greatful for your work. And the effort you put into managing issues 👍
Is your feature request related to a problem? Please describe.

I don't see the point of having the tags in the Toc without the number of how many posts with particular tag there are (After hoover)
The same thing goes to categories.

And maybe I'm bias, but I prefer sorting the articles by categories first AND THEN looking at tags for particular post

Describe the solution you'd like

  • Adding the number of how many posts there are in each category
  • Having the listed tags next to posts titles not only in search results

Describe alternatives you've considered

Additional context

The great example of this is HyG's blog theme:

Having listed tags next to posts

Having the number of how many posts there are in each category

Again I thank you for this amazing project :)

I need some help for use your jekyll theme chirpy

I have some problem for using your Jekyll theme chirpy. I forked your Repository and changed variable in _config.yml

20200111_224133

url: 'https://eprj453.github.io'

eprj453 is my gibhub name. and added remote-theme variable like this

20200111_224150

remote-theme: cotes2020/jekyll-theme-chirpy 

then I accessed my GitHub.io and it worked.I can see and approach your demo post and my post at home(main page).But I can access to post with categories and tags. It raised 404 error.

I think I should built categories and tags in _config.yml or something else but can approach with categories and tag in your demo site, so it makes me confused.I search for google lots of time but I can’t find reasonable answer.

I hope your reply. thank you

Missing parentheses

Hi,

I am trying to use your theme, but tere is a issue on the script.

$ ./run.sh
Traceback (most recent call last):
File "_scripts/tools/init_all.py", line 10, in
import update_posts_lastmod
File "/srv/jekyll-theme-chirpy/.container/_scripts/tools/update_posts_lastmod.py", line 83
print "[INFO] update 'lastmod' for:" + post
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("[INFO] update 'lastmod' for:" + post)?

Currently active tab white line doesn't align properly

Describe the bug

The side panel active white line doesn't align properly if there are less than 5 tabs.

To Reproduce
Add less than 5 tabs to the side panel

Expected behavior

https://ibb.co/2jfpThf

Screenshots

https://ibb.co/4gDKDvF

Desktop (please complete the following information):

  • OS: Win 10
  • Browser: Edge Chomium
  • Version: 79.0.309.71

Is there a way to add TOC to the About page?

I have changed the layout in the About page to page/post etc but can't seem to get the Table of contents on the right panel like I do for posts.

I even tinkered around if condition in panel.html and set this to if true and still I can't seem to get the TOC.
{% if page.layout == 'post' and site.toc and page.toc %}

Halp!

Is it possible to replace Twitter icon with something else (for example: LinkedIn)?

Hi!
I'm trying to customize the icon in the bottom left corner. I was playing with _config.yml file, trying to uncomment LinkedIn link in the social: part or simply removing twitter: part from this config file.
Unfortunately nothing changed. Is it possible at all to replace some of those social website icons (buttons?) to something else or simply remove one of them?

Possibility to disable Dark Theme

Can we get a possibility in the configuration file to completely disable Dark Theme?

I know that we can remove it from CSS but having that option in Config file would be so much easier.

Thank you.

MacOS: ModuleNotFoundError: No module named 'ruamel' when run bash run.sh

Following your tutorial, but when in step of running bash run.sh, some error happened as below:

$ bash run.sh
Traceback (most recent call last):
  File "_scripts/py/init_all.py", line 10, in <module>
    import update_posts_lastmod
  File "/Users/fanghao/Projects/jekyll-theme-chirpy/.container/_scripts/py/update_posts_lastmod.py", line 26, in <module>
    from ruamel.yaml import YAML
ModuleNotFoundError: No module named 'ruamel'

Already runned bundle install successfully, thought I should run gem install ruamel, but this also error out:

$ gem install ruamel
ERROR:  Could not find a valid gem 'ruamel' (>= 0) in any repository

Theme mode changer icon not working in mobile devies.Default light theme is appearing

The theme changer is working fine in Desktop,Using the theme changer icon at the bottom of left menu bar.

But if we surf the Website in Smartphones the theme changer is not working.For the default the light theme is appearing and on pressing theme changer icon i m not getting the dark mode

info about smartphone

Android 9.0
browser-- chrome

Error when stopping tools/run.sh locally: "Prepending `bundle exec` to your command may solve this Error"

Steps to reproduce:

  1. I'm trying to execute tools/run.sh to host locally. But it seems to not bundle blog.

image

  1. Because of that, i'm stopping the script. But then I'm getting an error with plugins.

image

  1. Looking at the script I see that there is ' bundle exec ' before jekyll serve.

image

What might be causing this?

I've executed many times tools/init.sh and tools/build.sh. Before executing tools/run.sh

These errors does not happen when I'm executing the bundle exec jekyll serve command alone. However I know that your script is way better. So I want to fix this error.

Additional Question

is there a way to contact you via Discord? I have so many questions related to this template's "infrastructure" but don't want to spam the issues.

Posts discovery: Allow finding posts in subdirectories of _posts folder

Is your feature request related to a problem? Please describe.

When writing blog posts, I find it useful to arrange posts file (*.md) in appropriate subfolders. This helps in keeping posts and associated files together for easy maintenance.
E.g: If I am writing a post about python and I have a few python files which I would like to include as code snippets via liquid syntax, I find it maintainable to keep all such python posts and files in subdirectories as _posts/python/.

If we do this currently; pages, categories and tags of _posts folder are populated but not from subfolders.

Describe the solution you'd like

Pages, categories and tags of _posts folder and any subdirectories are populated.

Describe alternatives you've considered

We can run the build python scripts (init/run/build, etc) per directory as explicit input, but doing this for multiple such directories becomes problematic.

Possible solution

  • In file update_posts_lastmod.py, line 130
<<< path = os.path.join(POSTS_PATH, "*.md")
>>> path = os.path.join(POSTS_PATH, "**", "*.md")
  • In file pages_generator.py, line 67 and 132.
<<<         for file in glob.glob(os.path.join(path, '*.md')):
>>>         for file in glob.glob(os.path.join(path, '**', '*.md')):

I have tried and tested the solution at my personal site at github repo

Firefox Archive page alignment issue.

Hi ,

One more bug specific to Firefox browser can be seen in the archive page. Attaching a screenshot here where you can see the dates are not aligned when the ate part is 2 digits.

firefox-archive-page-issue

Post excerpts: Use post.excerpt syntax for home page content

Is your feature request related to a problem? Please describe.

For posts that have < 200 chars first paragraphs, or posts with headings and bulleted points, or posts with headings and code snippets, current per-post content (i.e stripped excerpts) on home page get incomprehensible.

This is mainly because the current post content is take as {{ post.content | strip_html | truncate: 200 | replace: '&', '&amp;' }} in _layouts/home.html.

Describe the solution you'd like

Use Jekyll {{ post.excerpt }} syntax for getting the post summary: https://jekyllrb.com/docs/posts/#post-excerpts.

This would also allow use of excerpt_separator in _config.yml as needed.

Solution
In _layouts/home.html line 18

<<< {{ post.content | strip_html | truncate: 200 | replace: '&', '&amp;' }}
>>> {{ post.excerpt }}

I have tried and tested the solution at my personal site at github repo

Categories 和 Tags 无法显示的问题

大神您好!看到您的博客主页非常漂亮,所以我直接fork了您的项目,然后修改了_config.yml文件和图片信息,其他没有改动。现在出现以下两个问题,我查询之后仍无法解决,能烦请您帮忙看看吗?
1、点进去Categories 和 Tags 界面均显示404界面,无法显示文章列表。
2、博文详情界面,只显示了文章创建时间和分类,没有像原版一样显示更新时间和观看人数。
问题一_原版tags界面
问题一_我的tags界面
问题二_原版文章详情界面
问题二_我的文章详情界面

再次感谢您!

[QUESTION] I have a question about making categories.

Hello. Thank you for providing a nice theme.
Everything works fine except one thing within the theme. One is the issue with categories.

I have read the readme file carefully, and have modified all the urls etc in the config.yml file to suit my github address.
And when I post something new, the category name I created is displayed correctly.
That is, 'https://(my_url)/tabs/categories/' works fine.

However, if I click on the generated category title, I get a 404 error page.
In other words, it doesn't connect to 'https://(my_url)/categories/(name_of_category)/'.

capture1
capture2
(There is no access to the 'Studying' category, too.)

I would really appreciate it if you could help me with this.
Thank you very much.

How to make multilanguage posts?

Hi, it is really awesome repository, thx to all who contributed and developed.

I just wondering how I can make it multilanguage website? It does not necessary for translation all components like layout etc. I just want to do share my posts in different languages.

Is it possible? Any suggestion?

Resize Post page

Hi Cotes Chung,

I like the Jekyll Theme you created but I would like to have the post pages a bit wider.

image

Is this something I can easily change myself?

Thanks for your help.

Stefan

Questions regarding seo: in front matter of post

I want to ask a quick question about the seo:
That is being add automatically by your script init.sh
In the post front matter.
How can i use the seo: for better seo of my site ??
What i need to specify in seo: row ?

Duplicate Post Titles

Repeated blog post titles allows only the most recent blog post be shown
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Create a post with any date and any title, e.g. "2019-01-01-new-year.md".
  2. Create a post with any date and the same title, e.g. "2020-01-09-new-year.md".
  3. Run "jekyll serve"
  4. See error; i.e. only your newest blog post is accessible, e.g. "http://127.0.0.1:4000/posts/new-year/" shows the post dated Jan 09, 2020.

Expected behavior
I should be able to see both blog posts, regardless of title. If the setup of the blog posts' URLs were yyyy-mm-dd-title, this problem might be avoided.

Additional context
Not sure if I should have posted under Bug Report - sorry if this is a repost.

I'm asking a question regarding json error.

Hello. I'm using your theme very usefully. Thank you very much.

There seems to be a problem with my blog.
The post search function does not work, so when I check the developer tools (F12 key) I get the following error message:

error

Could you help me please? Thank you again. Have a nice day.

Categories/tags generator issue if a post has same formatted lines

Steps to reproduce
I just write a blog post and having the codes that luckily have the same format with category/tag definition line

---
categories: ['coding']
---

## I have a code example as below
[```]
blab blab categories: ['test', 'ok']
[```]
  1. Run the init.sh to generate categories automatically
  2. There are 3 categories (test.html, ok.html and coding.html) generated

Expected behavior
Only one category coding.html is generated.

Additional context
It also has an issue with category/tag name parsing, for example if the category in the code is

categories: ['test', 'ok'] },

a filenamed ok}.html will be generated

Suggestion
I think we should check and parse categories/tags from first ten (or few) lines or content inside 2 --- lines?

How can i add the GA pageviews.

I want the numbers the time post has been viewed ?
If i am not wrong you provided a GA pageviews feature .But didnt find a way how can i enable the feature
This is on your website --
IMG_20200226_193049

Currently this is on website --
IMG_20200226_193714

Here is my website 0xprashant.github.io

If u need more information tell me

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.