Coder Social home page Coder Social logo

phlow / simplicity Goto Github PK

View Code? Open in Web Editor NEW
75.0 75.0 31.0 2.13 MB

A free, flexible, superfast and easily customizable Jekyll Theme with no Javascript but beautiful typography.

Home Page: https://phlow.github.io/simplicity

Ruby 0.10% HTML 29.47% JavaScript 1.81% SCSS 68.62%
jekyll jekyll-theme minimalist mit-license simplicity theme

simplicity's People

Contributors

arjunmayilvaganan avatar phlow avatar pradhyo avatar rdricco 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplicity's Issues

Suggestion: Add table environment

I noticed, that tables are not rendered satisfactorily.

And found a simple solution. Suggesting to include it either into the code or as customizing option to the documentation

There is a table-scss Github project.
https://github.com/jwebcat/tables-sass

  1. copy the _tables.scss file from the scss directory of that project to the sass/05_layout directory of simplicity.
  2. add :@import "tables" to sass/00_layout.scss (@ row 27)
  3. change the table section ofsass /04_typography/_general_typography.scss to
/* Tables
------------------------------------------------------------------- */
table{
        @extend %table;
/*      @extend %table-bordered;  */
        @extend %table-condensed;
  font-family: $font-family-sans-serif;
  font-size: .75em;}
 /*  stripes */
table   tr:nth-of-type(even) {
    background: rgba(0,0,0,.2)
}
td {
  vertical-align: top;
}

That fits beautiful into the theme and to it philosophy as well.

'_layout/archive.html' layout

More like a question than an issue.

Not quite sure why there's a differentiation of line item <li> of the if forloop.last affecting the subheading of a post (around line 24 of _layouts/archive.html).

Shouldn't it simply be
`

`

I adjusted mine and it seems to behave correctly, unless I'm wrong...
https://github.com/dwlfrth/dwlfrth.github.io/blob/master/_layouts/archive.html#L31

Error building simplicity

When I type

Type bundle exec jekyll serve --config _config.yml,_config_dev.yml

I get:

        Error: could not read file /Users/gpaulissen/Documents/GitHub/simplicity-gh-pages/vendor/bundle/gems/jekyll-3.8.5/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb: Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'vendor/bundle/gems/jekyll-3.8.5/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.
         ERROR: YOUR SITE COULD NOT BE BUILT:
                ------------------------------------
                Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'vendor/bundle/gems/jekyll-3.8.5/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.

The solutions is to add the vendor directory to the exclude tag in _config.yml:

exclude:
- .sass-cache
- Gemfile
- Gemfile.lock
- README.md
- INSTALL.md
- vendor

.jekyll-cache directory is not gitignored

jekyll build or jekyll serve generates a cache directory - .jekyll-cache

This directory is being shown as an untracked directory. We shall gitignore this directory.

Accessibility errors found in your template

The user @carlsonsantana validate your site template "https://phlow.github.io/simplicity" and found these accessibility errors:

  • Page https://phlow.github.io/simplicity/:
    • Issue c05436b0-ee54-4755-a565-a019bdb7439f:
      • Type: Error
      • Code: WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail
      • Message: This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of 1.26:1. Recommendation: change text colour to #767676.
      • Selector: #tnav-menu > a
      • Context: <a href="#">Navigation</a>
    • Issue c4737a15-a347-4ea0-b14b-a2273c65a460:
      • Type: Error
      • Code: WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.A.NoContent
      • Message: Anchor element found with a valid href attribute, but no link content has been supplied.
      • Selector: #tnav-share > a
      • Context: <a href="#"><svg class="nav-icon" viewBox="...</a>
    • Issue 62f478dd-a14c-4d81-b988-6a01a9d26c53:
      • Type: Error
      • Code: WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.A.NoContent
      • Message: Anchor element found with a valid href attribute, but no link content has been supplied.
      • Selector: #tnav-search > a
      • Context: <a href="https://phlow.github.io/simplicity/search/"><svg class="nav-icon" viewBox="...</a>

You can check these accessibility errors using pa11y.
You can view the full validation results in our website.

"Show All Articles" is being displayed even when not necessary

Let us say that there are 10 articles in total.

I feel that it is better if we hide "Show All Articles", if all the 10 articles end up getting displayed in the first page itself (when posts_with_teaser_limit: 1 and posts_list_limit: 15 - upto 16 can be displayed in first page).

Let me know what you think. I have a fix ready; I can submit a Pull request.

google font imports not working, please explain?

Hi Moritz.

Probably just a Jekyll n00b question, but can you explain how the font: import: command works in the config.yml file?
I've attempted adding 3 new google fonts to the theme using the syntax as supplied in config.yml (ie font: import: 'name: weight...')
I get the feeling from elsewhere online that I need to either upload the font files to the assets directory or at least directly call the google source url. However your theme assets directory doesn't already contain the OOTB font files (Roboto, Fira Sans etc), and I can't find an scss file that references any font source urls. So I can't see a relevant pattern that should be followed for this theme.

My additions to the config.yml are:
font:
import: 'Averia+Libre:400,700' // font-family-serif
import: 'Expletus+Sans:400,400italic,500,500italic,600,600italic,700,700italic' // header-font-family
import: 'Open+Sans:400,400italic,600,600italic,700,700italic' // base-font-family

Many thanks,
Jess

css looks striped when deployed

Looks awesome on local server but after pushing to github and building on netlify the site looks like sass is striped. Any ideas?

Provide clean theme without _posts and _images

I'd like to use simplicity as a git subrepo. It would be nice if you could provide a branch (master?) without _posts and _images, so it's easier to handle and update.

The installation would become even easier by dropping the step:

Delete all files in _posts/ and images/.

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.