Giter VIP home page Giter VIP logo

sleek's Introduction

Sleek

Gem Version Build Status license

A modern Jekyll theme focused on speed performance & SEO best practices.

⚠️ This theme is no longer actively maintained.

Sleek Jekyll Theme

Features

Preview Demo

Installation

System Requirements

To use this project, you'll need the following things on your local machine:

Jekyll

gem install jekyll

NodeJS (8 or greater)

Download and open the NodeJS installer

Gulp CLI (optional, but recommended)

npm install --global gulp-cli

Up & Running

  1. Fork the repo
  2. Clone or download the repo into directory of your choice: git clone https://github.com/your-github-username/sleek.git
  3. Inside the directory run bundle install and npm install
  4. If you want to use gulp.js run gulp or npm start
    • if you don't want to use gulp you can run bundle exec jekyll serve instead

Installing to existing jekyll project

Add this line to your Jekyll site's Gemfile:

gem "jekyll-sleek"

And add this line to your Jekyll site's _config.yml:

theme: jekyll-sleek

And then execute:

$ bundle

Or install it yourself as:

$ gem install jekyll-sleek

File Structure Overview

sleek
├── _includes	               # theme includes
├── _js	                       # javascript files (by default jquery will be included with the scripts inside)
├── _layouts                   # theme layouts (see below for details)
├── _pages                     # pages folder (empty by default)
├── _posts                     # blog posts
├── _sass                      # Sass partials
├── assets
|  ├── css	               # minified css files
|  ├── img                     # images and icons used for the template
|  └── js		               # bundled and minified files from _js folder
├── _config.yml                # sample configuration
├── gulpfile.js                # gulp tasks (tasks autorunner)
├── index.md                   # sample home page (blog page)
└── package.json               # gulp tasks

Usage

You can modify the theme by changing the settings in _config.yml.

Posts

Create a new Markdown file such as 2017-01-13-my-post.md in _post folder. Configure YAML Front Matter (stuff between ---):

---
layout: post # needs to be post
title: Getting Started with Sleek # title of your post
featured-img: sleek #optional - if you want you can include hero image
---

Images

In case you want to add a hero image to the post, apart from changing featured-img in YAML, you also need to add the image file to the project. To do so, just upload an image in .jpg format to _img folder. The name must before the .jpg file extension has to match with featured-img in YAML. Next, run gulp img from command line to generate optimized version of the image and all the thumbnails. You have to restart the jekyll server to see the changes.

Sleek uses Lazy Sizes. Lazy Loader for loading images. Check the link for more info. Lazy Sizes doesnt’t require any configuration and it’s going to be included in your bundled js file.

Pages

The home page is located under index.md file. To change the content or design you have to edit the default.html file in _layouts folder.

In order to add a new page, create a new html or markdown file under root directory or inside _pages folder. To add a link in navigation add it in _config.yml:

# THEME SETTINGS
navigation: # Navigation links
  - {name: 'Home', link: '/'}
  - {name: 'About', link: '/about'}
  - {name: 'Contact', link: '/contact'}

name is the text that will be shown and link, well, it's a link.

Site configuration

Sleek comes with jekyll-seo-tag plugin preinstalled to make sure your website gets the most useful meta tags. See usage to know how to set it up.

Additionally, in _config.yml you can find custom theme settings under # THEME SETTINGS comment. Here's a brief overview of those custom settings:

  • navigation - collection of links that will be shown in the header
  • tagline - text that will be displayed on the homepage under the heading.
  • hero_img - background image of the homepage hero section

Other settings usually enable/disable certain feature, and are discussed with the next sections.

Google Tag Manager

To enable Google Tag Manager, add the uncomment the following line in _config.yml:

google_tag_manager: GTM-XXXXXXX

Replace GTM-XXXXXXX with your Google Tag Manager Container ID.

Note by default GTM tracking snippet will be also included in development environment.

Google Tag Manager was chosen for this project as it's more flexible than Google Analytics, and it can be used to add GA to your site.

Disqus

To enable Disqus comments, add your Disqus shortname to _config.yml:

disqus:
  shortname: my_disqus_shortname

Formspree

To use Formspree with your email address, you need to change the following:

Change [email protected] email in _config.yml

You can check if it works by simply submitting the form.

If you have a Formspree Gold Account, you can take advantage of using AJAX to submit form. To do so, uncomment last function in _js/scripts.js and run gulp js. Now the form will be submitted asynchronously, without leaving the page.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/janczizikow/sleek. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Development

To set up your environment to develop this theme, run bundle install and npm install.

The theme is setup just like a normal Jekyll site! Check out file structure overview for details. To test the theme, run gulp and open your browser at http://localhost:3000. This starts a Jekyll server using the theme. Add pages, documents, data, etc. like normal to test the theme's contents. As you make modifications to the theme and to the content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.

License

The theme is available as open source under the terms of the MIT License.

sleek's People

Contributors

2rebi avatar benpatterson avatar janczizikow avatar lachieh avatar stevenstetzler avatar switowski avatar vinsfortunato 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

sleek's Issues

Formspree contact sheet doesn't work

Hello,
I'm back.
I have followed your recommendations from here
https://janczizikow.github.io/sleek/contact/
and changed the email address in both mentioned files, _js/scripts.js and _config.yml
Verify that here if you like
https://github.com/zorbathegreek/shift-latest/blob/master/_js/scripts.js
and here
https://github.com/zorbathegreek/shift-latest/blob/master/_config.yml
However, it doesn't work. I have reset the email address at fromspree (they have a reset tool there)
https://formspree.io/unblock/[email protected]
and wrote to the people at formspree. They replied this:

  Giovanni P (Formspree) Jan 24, 07:56 AST Hello, Anthony,The form in your page is submitting through AJAX to the address [email protected]. You probably must change something in the Javascript code of the template.

So, I changed the email address, but why is it still sending to the default address?
Any help would be greatly appreciated!
Regards,
Anthony

code font too small in h1

With markdown like this:

# `kubegen` – simple way to describe Kubernetes resources

I get decent appearance on Github, but sleek renders it like this currently:

screenshot 2018-06-01 12 42 40

White flash when browsing theme

Hi!

Thanks for a great theme. Not sure if this is a bug or something obvious that I missed. I changed the color of the menu from white to dark blue. Whenever I go to a new page in the site it flashes white for 0.3 sec before turning to the correct color. Tried with different browsers on different devices and I get the same result. Any idea how to fix it so that it doesn't always load the menu with a white flash (probably only noticeable then the menu is in another color than white)?

Theme crashes in IE 11 (an lower)

Hey there,

nice theme by the way. Actually it doesn't work for IE 11 (and lower i guess) - it crashes somehow.

Even though IE 11 is outdated, in big companies they still use it. Would be nice if there is any fix in the future.

Cheers
Dave

modifying baseurl

Really like your theme and I'm trying to adapt it to exactly what I'm looking for, however I'm very much new to this and I'm hitting which I'm sure is something very simple.

In _config.yml if I leave the baseurl to "/" everything loads as expected. I've been able to an archive page and some categories and all is good, however if I modify the baseurl to /myblog-sleek the site fails to build, images are broken etc - clearly something to do with changing the baseurl but I can work out what.

SSHARMAN-M-35ZJ:myblog-sleek ssharman$ bundle exec jekyll serve
Configuration file: /Users/ssharman/GitHub/blogs/myblog-sleek/_config.yml
            Source: /Users/ssharman/GitHub/blogs/myblog-sleek
       Destination: /Users/ssharman/GitHub/blogs/myblog-sleek/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 0.833 seconds.
 Auto-regeneration: enabled for '/Users/ssharman/GitHub/blogs/myblog-sleek'
    Server address: http://127.0.0.1:4000/myblog-sleek/
  Server running... press ctrl-c to stop.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/sleek_placehold.jpg' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/emile-perron-190221_placehold.jpg' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/shane-rounce-205187_placehold.jpg' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/sleek_lg.jpg' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/[email protected]' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/[email protected]' not found.
[2018-04-10 12:38:02] ERROR `/assets/img/posts/sleek_lg.jpg' not found.
[2018-04-10 12:38:03] ERROR `/assets/img/posts/[email protected]' not found.
[2018-04-10 12:38:04] ERROR `/sw.js' not found.
[2018-04-10 12:38:09] ERROR `/sw.js' not found.
[2018-04-10 12:38:11] ERROR `/assets/img/posts/sleek.jpg' not found.
[2018-04-10 12:38:11] ERROR `/assets/img/posts/sleek.jpg' not found.
[2018-04-10 12:38:13] ERROR `/sw.js' not found.

I'd also like to rename "Sleek" in the header - how would I go about this?

      <a class="header__logo" href="{{ '/' | relative_url }}">
        <div class="header__logo--container">
          {% include logo.svg %}
        </div>
      </a>

Any pointers would be gratefully accepted - many thanks!

Accessibility errors found in your template

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

  • Page https://janczizikow.github.io/sleek/:
    • Issue ca7ed726-07bf-4852-90e8-7b01eb2e26fa:
      • 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: html > body > footer > div > nav > a:nth-child(3)
      • Context: <a class="social__link" target="_blank" rel="noopener noreferrer" href="https://www.instagram.com/shanlongjj"> <svg class="social__icon" view...</a>
    • Issue 08c634a8-a2b8-4bae-9f25-80b981a9a684:
      • 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: html > body > footer > div > nav > a:nth-child(2)
      • Context: <a class="social__link" target="_blank" rel="noopener noreferrer" href="https://www.twitter.com/jan_czizikow"> <svg class="social__icon" view...</a>
    • Issue 454c5d40-e3f0-496c-bbff-62a547f9d445:
      • 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: html > body > footer > div > nav > a:nth-child(1)
      • Context: <a class="social__link" target="_blank" rel="noopener noreferrer" href="https://github.com/janczizikow"> <svg class="social__icon" view...</a>
    • Issue b47e7d0a-327b-44ab-9457-25b8fa659311:
      • 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 3.44:1. Recommendation: change text colour to #6f7879.
      • Selector: html > body > main > section > div > div > div:nth-child(4) > a:nth-child(3) > p
      • Context: <p>Lorem ipsum dolor sit amet, con...</p>
    • Issue 20e6d5ca-1c67-48d9-b877-0522e71167ae:
      • 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 3.44:1. Recommendation: change text colour to #6f7879.
      • Selector: html > body > main > section > div > div > div:nth-child(4) > a:nth-child(3) > div > span > time
      • Context: <time>May 20, 2016</time>
    • Issue 95e36f1d-6f71-42b8-bcb2-434dae616292:
      • 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 3.44:1. Recommendation: change text colour to #6f7879.
      • Selector: html > body > main > section > div > div > div:nth-child(3) > a:nth-child(3) > p
      • Context: <p>You’ll find this post in your _...</p>
    • Issue 55f4e7be-cf0b-459a-aff6-f01ddb36e29c:
      • 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 3.44:1. Recommendation: change text colour to #6f7879.
      • Selector: html > body > main > section > div > div > div:nth-child(3) > a:nth-child(3) > div > span > time
      • Context: <time>May 20, 2016</time>
    • Issue 7d63ab0e-ada3-43db-b055-d21963326c57:
      • 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: html > body > main > section > div > div > div:nth-child(3) > a:nth-child(2)
      • Context: <a href="/sleek/welcome-to-jekyll/"><figure class="post-card__thumb...</a>
    • Issue 75a80401-8880-4545-995f-c87208de1ed7:
      • 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 3.44:1. Recommendation: change text colour to #6f7879.
      • Selector: html > body > main > section > div > div > div:nth-child(2) > a:nth-child(3) > p
      • Context: <p>Markdown is a way to style text...</p>
    • Issue 3dde787b-5652-45dc-8fcb-f2b08f417201:
      • 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 3.44:1. Recommendation: change text colour to #6f7879.
      • Selector: html > body > main > section > div > div > div:nth-child(2) > a:nth-child(3) > div > span > time
      • Context: <time>Oct 15, 2017</time>
    • Issue 89a8e9ef-10b5-4305-bcec-47299c35c48e:
      • 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 3.44:1. Recommendation: change text colour to #6f7879.
      • Selector: html > body > main > section > div > div > div:nth-child(1) > a:nth-child(3) > p
      • Context: <p>Getting started GitHub Pages ca...</p>
    • Issue 91f82e6b-574c-4272-91bc-82cbad85dfe4:
      • 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 3.44:1. Recommendation: change text colour to #6f7879.
      • Selector: html > body > main > section > div > div > div:nth-child(1) > a:nth-child(3) > div > span > time
      • Context: <time>Nov 26, 2017</time>
    • Issue e61b947b-ac9e-45dd-85a2-c3d72bfd4d2f:
      • 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: html > body > header > div > div > a
      • Context: <a class="header__logo" href="/sleek/"><div class="header__logo--conta...</a>

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

How do I change the code snippet theme

I modified the _syntax.css file in the _sass folder to modify the theme of the code block, but it was useless. And how can I add a line number to a code block?

gulp error on Windows

Thank you for the theme! Trying to install it on my Win 10 Home machine using WSL and get an error when using gulp. I am new to gulp and sass, so any help would be greatly appreciated. When I serve the site without gulp, it works, but the changes in sass are not populating.

$ gulp

assert.js:42
  throw new errors.AssertionError({
  ^

AssertionError [ERR_ASSERTION]: Task function must be specified
    at Gulp.set [as _setTask] (/mnt/c/Users/berme/Desktop/Site/bermet-info/node_modules/undertaker/lib/set-task.js:10:3)
    at Gulp.task (/mnt/c/Users/berme/Desktop/Site/bermet-info/node_modules/undertaker/lib/task.js:13:8)
    at Object.<anonymous> (/mnt/c/Users/berme/Desktop/Site/bermet-info/gulpfile.js:60:6)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at execute (/mnt/c/Users/berme/Desktop/Site/bermet-info/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js:36:18)
    at Liftoff.handleArguments (/mnt/c/Users/berme/Desktop/Site/bermet-info/node_modules/gulp/node_modules/gulp-cli/index.js:175:63)
    at Liftoff.execute (/mnt/c/Users/berme/Desktop/Site/bermet-info/node_modules/liftoff/index.js:203:12)
    at module.exports (/mnt/c/Users/berme/Desktop/Site/bermet-info/node_modules/flagged-respawn/index.js:51:3)
    at Liftoff.<anonymous> (/mnt/c/Users/berme/Desktop/Site/bermet-info/node_modules/liftoff/index.js:195:5)
    at /mnt/c/Users/berme/Desktop/Site/bermet-info/node_modules/liftoff/index.js:165:9
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

how to generate image thumbnails with gulp

I tried the following command img gulp and it fails with the following error

'Error: Available images do not match the following config:'

Secondly, what is resolution required for the original image for gulp to create the required thumbnails?

How to overwrite styles

Hi there,

I'm getting the following error when trying to build my site:

Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/main.scss':
                    File to import not found or unreadable: node_modules/normalize.css/normalize. Load paths: /Library/Ruby/Gems/2.3.0/gems/jekyll-sleek-0.1.3/_sass /Library/Ruby/Gems/2.3.0/gems/jekyll-sleek-0.1.3/_sass /Library/Ruby/Gems/2.3.0/gems/jekyll-sleek-0.1.3/_sass on line 1
jekyll 3.7.3 | Error:  File to import not found or unreadable: node_modules/normalize.css/normalize.
Load paths:
  /Library/Ruby/Gems/2.3.0/gems/jekyll-sleek-0.1.3/_sass
  /Library/Ruby/Gems/2.3.0/gems/jekyll-sleek-0.1.3/_sass
  /Library/Ruby/Gems/2.3.0/gems/jekyll-sleek-0.1.3/_sass on line 1

Attempting to overerwrite with the following file: /assets/css/main.scss:

---
---

@import "main";

I have the following node packages installed:

"dependencies": {
    "breakpoint-sass": "^2.7.1",
    "normalize.css": "^7.0.0"
  },

Any help would be appreciated, thanks.

Formspree form submission not working

I have changed the formspree URL/email address as instructed but when I send now, I get the following error:

Failed to load resource: the server responded with a status of 400 ()

It seems it is trying to submit to formspree.io/[email protected] as that is the email in the error console but I don't see that anywhere in the project folder.

throw error: Unhandled 'error' event while using gulp img

Error spawn: /node_modules/jpegtran-bin/vendor/jpegtran ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:362:16)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)

How can I display an image generated with gulp depending on the client's device?

I just created a Jekyll blog with your theme and wanted to add images in post.

After running gulp on an image, I found the generated thumbnails in assets/img/posts/.

├── img
│   ├── favicon.jpg
│   ├── icons
│   │   ├── android-chrome-192x192.png
│   │   ├── android-chrome-256x256.png
│   │   ├── apple-touch-icon.png
│   │   ├── browserconfig.xml
│   │   ├── favicon-16x16.png
│   │   ├── favicon-32x32.png
│   │   ├── favicon.ico
│   │   ├── icon-github.svg
│   │   ├── icon-instagram.svg
│   │   ├── icon-twitter.svg
│   │   ├── manifest.json
│   │   ├── mstile-150x150.png
│   │   └── safari-pinned-tab.svg
│   └── posts
│       ├── emile-perron-190221.jpg
│       ├── emile-perron-190221_lg.jpg
│       ├── emile-perron-190221_md.jpg
│       ├── emile-perron-190221_placehold.jpg
│       ├── emile-perron-190221_sm.jpg
│       ├── [email protected]
│       ├── emile-perron-190221_thumb.jpg
│       ├── emile-perron-190221_xs.jpg
│       ├── Macaca_nigra_self-portrait_large-e1524567086123-1100x715.jpeg
│       ├── Macaca_nigra_self-portrait_large-e1524567086123-1100x715_lg.jpeg
│       ├── Macaca_nigra_self-portrait_large-e1524567086123-1100x715_md.jpeg
│       ├── Macaca_nigra_self-portrait_large-e1524567086123-1100x715_placehold.jpeg
│       ├── Macaca_nigra_self-portrait_large-e1524567086123-1100x715_sm.jpeg
│       ├── Macaca_nigra_self-portrait_large-e1524567086123-1100x715_thumb@2x.jpeg
│       ├── Macaca_nigra_self-portrait_large-e1524567086123-1100x715_thumb.jpeg
│       ├── Macaca_nigra_self-portrait_large-e1524567086123-1100x715_xs.jpeg
│       ├── shane-rounce-205187.jpg
│       ├── shane-rounce-205187_lg.jpg
│       ├── shane-rounce-205187_md.jpg
│       ├── shane-rounce-205187_placehold.jpg
│       ├── shane-rounce-205187_sm.jpg
│       ├── [email protected]
│       ├── shane-rounce-205187_thumb.jpg
│       ├── shane-rounce-205187_xs.jpg
│       ├── sleek.jpg
│       ├── sleek_lg.jpg
│       ├── sleek_md.jpg
│       ├── sleek_placehold.jpg
│       ├── sleek_sm.jpg
│       ├── [email protected]
│       ├── sleek_thumb.jpg
│       └── sleek_xs.jpg
└── js
    └── bundle.js

I could link one of the jpeg in a new post with : ![alt text](/assets/img/posts/image.jpeg) but didn't find any info in your documentation about how to properly add them so that the correct thumbnail is displayed depending on the device...

I saw that for post previews, we could just add the image name and your theme would do it.

How can I display an image generated with gulp depending on the client's device?

How to generate the logos at bottom?

Just a question. How do I generate the mini icon at the bottom of the page? The twitter svg is what I am talking about.

I want to make one for Reddit but not sure how you did it.

Thanks

seo Liquid Exception

Hello,

I'm a beginner and trying to use the Sleek theme around my existing website. I copied all the relevant files into my repository but now when I run it I get this:

Liquid Exception: Liquid syntax error: Unknown tag 'seo' in _includes/head.html, included in _layouts/default.html

What am I missing? Any advice will be appreciated :)

Thanks!

changing favicon doesnt seem to work

so i replaced the image files, including say favicon.ico, but now it just doesnt load any.

when i look at head.html at this line, <link rel="shortcut icon" href="{{ '/assets/img/icons/favicon.ico?v=qA3OXqyw77' | relative_url }}">
I'm not sure why the v=qA3OXqyw77 is added. its for each type of favicon. Even if i change to png (and also favicon.png) doesnt seem to work. Any advice?

Also there are meta tags that still say "sleek" here, would be nice to have them updated to the title in the _config.yml file, so i guess that would look like {{_config.title}} ? I'm still not totally sure of the syntax here.

question: pagination and search

Hi, @janczizikow

Thanks for your nice job, sleek is such a pretty theme that I love it so much 👍.

I wondered if sleek will support pagination and search in the future?

Append:

  1. Is there any way to change the page's title?
  2. And is there any way to add more social icons?

blog image not showing up on main page

I have uploaded jpeg images and replaced yours with mine (jpeg) but on the main page they are not displayed (while in the blog post itself, they are displayed correctly).
Do you know why that is and what I can do to fix it?
Thanks a lot, I really appreciate all the efforts and time you put into this theme.

Page build warning?!

Hello, very nice looking site!

I cloned and renamed it; next thing, I reveice a warning from [email protected]

The page build completed successfully, but returned the following warning for the gh-pages branch:
You are attempting to use a Jekyll theme, "jekyll-sleek", which is not supported by GitHub Pages. Please visit https://pages.github.com/themes/ for a list of supported themes. If you are using the "theme" configuration variable for something other than a Jekyll theme, we recommend you rename this variable throughout your site. For more information, see https://help.github.com/articles/adding-a-jekyll-theme-to-your-github-pages-site/.
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.

I changed to "master", same warning came in for that branch, too.
What's wrong? I got the link from jekyllthemes.org!?
Thanks for shedding some light on me!

Website not building properly with gulp

Thank you for the fantastic theme! I've been checking how the website appears using the command bundle exec jekyll serve for a while now, and I just recently managed to get gulp-cli configured. However, when I run gulp or npm start, the served website does not get built properly.

screen shot 2018-07-21 at 3 42 35 pm

I can successfully run commands such as gulp img, and I can't seem to figure out what is causing this issue. The website also appears properly when I run bundle exec jekyll serve. Do you have any insights into this issue (is it merely an issue on my end)? For your reference, I am using npm 5.6.0, node 8.11.3, and gulp-cli 2.0.1. Thank you!

how to get main.css to update?

Sorry, I'm sure this is a beginner question, but I am trying to update the css on the hero image (increase transparency a bit) and when I edit /_sass/pages/_page.scss the changes don't seem to get incorporated into /assets/css/main.css. How do I get this to "build" properly, or do I need to edit main.css directly?

I'm running the site by forking your repo (here: https://github.com/SteinmetzLab/SteinmetzLab.github.io) and using github pages.

Thanks!

Not able to customize page

Hi! I'm trying to create my one page with this template. I followed the instructions (bundle, npm and jekyll install etc), however the changes that I made in _config.yml and about.md files are not being updated in the website. Do you have any idea of what is happening? Thank you.

The Captcha refuses to work.

I just setup sending a form with contact form 7 in wordpress that I will be exporting as a static website once its all finished, but when the form submits to formspree, it will not get past the "almost there" page, as clickign the captcha does nothing, it just reloads the captcha.

images 4:3 are stretched

Your sample images are 16:9, when i put in a 4:3 image it gets stretched in the main feed. I imagine the issue is somewhere in the _card.scss but i'm rather new to all this. Could you take a look?

Great theme btw! thanks

Mathjax or Katex support

Hi Jan,
Can you please add mathjax/katex support in sleek. Though I don't know much HTML/CSS, I tried to add mathjax but it does not display inline math properly (equation is not aligned to line text).

screenshot-2018-2-5 example content

question: modify logo

how to modify logo? the svg on the left of the header (the one that says "sleek").
What software did you use to generate it?

Question: Social Icons

Hi there! Sleek indeed.

I was wondering what Icon theme the footer was using. I needed to add some extra ones, and there's no mention of any reference for it. Thanks.

question:github deployment

HI,

I have an issue when a try to deploy to github the routing doesnt work correctly, dou you have an example where you deploy to github?, thanks
image

Is it necessary to install Ruby environment?

At first I want to forked this repository and I thought it would work just as Github Pages default theme.

Later I found that the pictures hero image did not work well,

image

and the pictures in the article never display even I wrote as you do.

Now I guess that I should install the Ruby enviroment and try again?

Thx for your patience!

Using the gem, how can I run `gulp img`?

I created my website with jekyll new, tweaked _config.yml to have evertyhing showing, added a picture in _img, and ran bundle exec jekyll server.

However, the thumbnails are not generated:

[2018-12-30 15:30:58] ERROR `/assets/img/posts/xworld-map_placehold.jpg' not found.
[2018-12-30 15:30:59] ERROR `/assets/img/posts/[email protected]' not found.
[2018-12-30 15:30:59] ERROR `/assets/img/posts/xworld-map_placehold.jpg' not found.
[2018-12-30 15:31:00] ERROR `/assets/img/posts/[email protected]' not found.

Note: I obviously didn't clone the repo on purpose. Below is a snippet of my _config.yml

remote_theme: janczizikow/sleek
plugins:
  - jekyll-feed
  - jekyll-remote-theme
  - jekyll-seo-tag

My question is, using the gem, can I still run gulp img?

How to modify tab title content

Currently, the text in the tab of my site reads "Sleek Jekyll Theme | <my_site_title>". I would like it to read simply "<my_site_title>". Is there any way to change this?

I noticed in the HTML generated that this title is determined by the Jekyll SEO tag plugin. In my _config.yml file I have the title variable set correctly.

Logo SVG builder

Hey Jan,

First of all thanks for that template, it really looks amazing! I just started adapting it for my next data sciences blog.

I have a question : do you have an idea of how I can reproduce the svg on the left of the header (the one that says "sleek")? The font looks awesome and I'd like to keep the formatting that way, just a different text.

Cheers!
Victor

ERROR not found errors

Hi @janczizikow ,
I have similar problem as @spsharman #11 . I executed all steps as described in the [Installation] (https://github.com/janczizikow/sleek) description . Only the start/Home site seems to work well, for all other sites (for example: contact) i got the following errors:

Configuration file: /home/micha/roszak/sleek/_config.yml
            Source: /home/micha/roszak/sleek
       Destination: /home/micha/roszak/sleek/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 0.473 seconds.
 Auto-regeneration: enabled for '/home/micha/roszak/sleek'
    Server address: http://127.0.0.1:4000/sleek/
  Server running... press ctrl-c to stop.
[2018-08-01 16:38:05] ERROR `/404/index.html' not found.
[2018-08-01 16:38:05] ERROR `/about/index.html' not found.
[2018-08-01 16:38:05] ERROR `/assets/img/icons/android-chrome-256x256.png' not found.
[2018-08-01 16:38:05] ERROR `/assets/css/main.css' not found.
[2018-08-01 16:38:05] ERROR `/assets/img/icons/android-chrome-192x192.png' not found.
[2018-08-01 16:38:05] ERROR `/assets/img/favicon.jpg' not found.
[2018-08-01 16:38:07] ERROR `/sw.js' not found.

Do you have any idea, what could be wrong? Many Thanks.

dependency requires node >= 8

There is a dependency (puppeteer) that requires node 8. Users on older versions of node encounter an install failure (as per below):

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@0.12.0 install: `node install.js`
npm ERR! Exit status 1

Happy to update package.json but thought I'd log an issue for now. Workaround for anyone that wants to work with sleek is to upgrade to node 8 or better.

Jekyll 4.0.0 compatibles issue

Hello!

Please, tell me. Do you plan update the theme? At this time Sleek theme is don't compatible with 4.0.0 Jekyll version.

What do you think about it? Sorry for the bad English. Thank you for your work!

Page build warning

I really like your theme, I forked it on gihubpages, and directed the source to the gh-branch.
I do not use a local installation, I want to do everything on github. I'm a complete noob by the way on jekyll and github.
But I get a page build warning:
"You are attempting to use a Jekyll theme, "jekyll-sleek", which is not supported by GitHub Pages"

I googled it but could not find how to fix this issue.
I would really appreciate if someone could help me.
Here is my website: https://nonodeglingo.github.io/Decentralized-Autonomous-Consulting/
Thanks a lot

can you help me?

image

I cna easily create a homepage thanks to you. thank you
i am still a novice developer
i want to change the logo "sleek" at the top, but i don't know where to change it,
can you help me?

Help getting script to run

Hello,

Absolutely gorgeous setup - I've been using this with a lot of success for my github.io page.

I'd like to add a some jquery .get script to one of the posts that will update some text on the post, but apparently there are some issues allowing cross origin requests for jquery.getJSON. Is there a way to cofigure this to be allowed?

Sleek not supported

Hi,
I have the same problem that you have here reported before. After removing "theme: jekyll-sleek" the problem still exist and github do not want to build my project :( Could you help me?
I also tried to remove _site from gitignore file and send _site after local build, but also nothing.

Github message:
"The page build completed successfully, but returned the following warning for the master branch:

You are attempting to use a Jekyll theme, "jekyll-sleek", which is not supported by GitHub Pages. Please visit https://pages.github.com/themes/ for a list of supported themes. If you are using the "theme" configuration variable for something other than a Jekyll theme, we recommend you rename this variable throughout your site. For more information, see https://help.github.com/articles/adding-a-jekyll-theme-to-your-github-pages-site/."

image thumbnails

hello

I'm using your theme and got a question about could you improve something;
I have image for my blog post and it's displayed ok when I open it.
However, when post is listed in cards it requires thumbnail /img/posts/edison-light-bulbs_925x_thumb.jpg
which I should make myself?

Isn't there some kind of way for jekyll to autogenerate thumbnails, and could you maybe implement it into theme, so me and other users of this theme don't have to resize images to thumbnails?

Thanks for theme, it's pretty swell! 👍

Site breaks and reverts changes after npm start

Changes on main.css doesn't get included after running npm start. Though if I'm using bundle exec jekyll serve and on github pages, site works great. Definitely did the wrong procedure on creating duplicate classes on both main.css and critical.css.

Also removed default posts images such as /assets/img/posts/emile-perron-190221_lg.jpg local development server still looks for them, could be still included on sw.js and bundle.js.

How to convert it to a PWA

In the config.yml there is a service_worker : true line and a sw.js file in the root directory.This has to do something with PWA i guess So I want to know how to add a manifest.json file an convert it to a pwa.I also want to know how to enable offline functionality.Thanks.

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.