A (nearly) no-CSS, fast, minimalist Jekyll theme.Inspired by elly's site, expressly created for my personal blog.
If you haven't already created your blog using Jekyll, follow the instructions to do so from Jekyll's documentation.
NOTE: if you are using Jekyll with GitHub Pages, see the GitHub Pages installation section.
Then, to style your blog with this theme, add this line to your Jekyll site's Gemfile
:
gem "no-style-please"
And add this line to your Jekyll site's _config.yml
:
theme: no-style-please
And then execute:
$ bundle
Or install it yourself as:
$ gem install no-style-please
If you want to use this theme for your Jekyll's site deployed on GitHub Pages, follow the instructions on this page.
You can edit _config.yml
file to customize your blog. You can change things such as the name of the blog, the author, the appearance of the theme (light, dark or auto), how dates are formatted, etc. Customizable fields should be straightforward to understand. Still, _config.yml
contains some comments to help you understand what each field does.
For further customization (e.g. layout, CSS) see the official Jekyll's documentation on customizing gem-based themes.
In order to add/edit/delete entries from the main menu, you have to edit the menu.yml
file inside _data
folder. Through that file you can define the structure of the menu. Take a look at the default configuration to get an idea of how it works and read on for a more comprehensive explanation.
The menu.yml
file accepts the following fields:
entries
define a new unordered list that will contain menu entries-
at the beginning of the linetitle
, which defines the text to render for this menu entry (NB: you can also specify HTML!)url
, which can be used to specify an URL for this entry. If not specified, title
will be rendered as-is; otherwise title
will be sorrounded by a link tag pointing to the specified URL. Note that the URL can either be relative or absolute. Also note that you can get the same result by placing an <a>
tag in the title
field.post_list
, which can be set either to true
or to an object. If it is true, the entry will have a list of all posts as subentries. This is used to render your post list. If you want to customize which posts to render (e.g. by category), you can add one or more of the following attributes under post_list
:
category
, which can be set to a string. It is used to render a list of posts of the specified category only. If you don't set it, then posts of all categories will be rendered.limit
, which can be set to a number. It specifies the number of posts to show. If not set, all posts will be rendered.show_more
, which can be true. If it is true and if the number of posts to show is greater than the specified limit
, render a link to another page. To specify the URL and the text of the link, you can set show_more_url
and show_more_text
attributes, which are documented below.show_more_url
, which can be a string. It specifies the URL for the show more link. Use only if show_more
is true. This will usually redirect to a page containing all posts, which you can easily create using an archive page (see create archive pages section)show_more_text
, which can be a string. It specifies the text for the show more link. Use only if show_more
is true.entries
, yes, you can have entries inside entries. In this way you can create nested sublists!A so-called archive page is a page that shows a list of posts (see this for an example). You can create an archive page by creating a page and putting the following frontmatter:
---
layout: archive
title: The title of the page here
which_category: name-of-category
---
which_category
is optional: if you don't put it, then all posts of the blog will be listed; on the other hand, if you specify a category, only posts of that category will be shown.
This feature is particularly useful if used together with the show_more
attribute in the menu. For example, if you want to limit the number of posts shown in the home page to 5 but add a link to view them all, then you can create an archive page using the method showed above and link to it using the show_more_url
attribute in menu.yml
. See this example if you're in doubt.
The index.md
page should use layout home
, which is the layout that displays the menu. If you want to have some content after the menu, you can just add that content in the index.md
file, and it will automatically show under the menu.
Another thing you can do to customize the index page is show the description of your blog between the title and the menu. To do this, just edit _config.yml
and change theme_config.show_description
to true
.
This theme provides dark mode by inverting all colors of light mode throught the CSS invert()
function. This approach would also invert the color of all images, but, since this is not the behaviour one would expect, images are not inverted by default.
However, if you would like to force the color inversion on a specific image you can do so by applying class="ioda"
to that image ("ioda" stands for "invert on dark appearance"). See the image in the overview post for an example of this approach. Note that color inversion will take place only when the theme has dark appearance!
For example, if you have a black and white image it could make sense to invert it in dark mode. On the other hand, a colorful image will probably look bad if inverted.
Bug reports and pull requests are welcome on GitHub at https://github.com/riggraz/no-style-please. 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.
To set up your environment to develop this theme, run bundle install
.
Your theme is setup just like a normal Jekyll site! To test your theme, run bundle exec jekyll serve
and open your browser at http://localhost:4000
. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
When your theme is released, only the files in _layouts
, _includes
, _sass
and assets
tracked with Git will be bundled.To add a custom directory to your theme-gem, please edit the regexp in no-style-please.gemspec
accordingly.
The theme is available as open source under the terms of the MIT License.
解决办法 index.html 中添加 <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
环境 imx8xq 使用yocto bitbake编译出的meta-toolchain,安装后,进行source环境配置的脚本文件后,使用aarch64-poky-linux-gcc 、aarch64-poky-linux-g++ 进行简单的编译工作发现无法找到头文件。 譬如 编译一个test_cplusplus_sort.cpp aarch64-poky-linux-g++ -v test_cp
编译licode git上的master的时候,一切都很顺利,但下载release中的压缩包,解压并编译,当编译到erizoAPI的时候却报了很多相同的错误,都是说头文件的风格不对,错误如下: MediaStream.h:2: #ifndef header guard has wrong style, please use: _HOME_TOPSLUO_WORKSPACE_TEST_LICODE
你们公司的项目开了eslint代码问题检查 直接打开终端用命令行提交,在注释后面加上一句–no-verify 把你提交部分的代码规范检查忽略掉即可 git commit -m "车辆管理模块" --no-verify
除非通过无界通配符对其进行参数化,否则不允许转换为参数化类型。 Box<Integer> integerBox = new Box<Integer>(); Box<Number> numberBox = new Box<Number>(); //Compiler Error: Cannot cast from Box<Number> to Box<Integer> integerBox = (Bo
描述 (Description) 如果MODULE支持,则此函数调用MODULE中定义的unimport函数来取消当前包中的所有符号,或者只调用LIST引用的符号。 可以说没有与进口相反。 语法 (Syntax) 以下是此函数的简单语法 - no Module VERSION LIST no Module VERSION no MODULE LIST no MODULE 返回值 (Return
我不能运行一个简单的程序来开始理解Deeplearning4j。 我尝试了这个链接中的代码:使用Deeplearning4J在Java中进行深度学习 不幸的是,这对我不起作用。事实上,我有一个错误: SLF4J:无法加载类"org.slf4j.impl.Static LoggerBinder".SLF4J:默认为无操作(NOP)记录器实现SLF4J:有关更多详细信息,请参阅http://www.s
Description This jQuery plugin turns an obfuscated e-mail address into a human-readable one. It's lightweight and accepts multiple filtering levels for additional security. No Spam works on mailto lin
No CAPTCHA reCAPTCHA For Laravel 4 use v1 branch. Installation composer require anhskohbo/no-captcha Laravel 5 and above Setup NOTE This package supports the auto-discovery feature of Laravel 5.5 and
No Bullsh**是一个用PHP开发的Web动态相册系统。它能够自动扫描给定的目录,然后创建每一张图片的缩略图并展示。照片可以通过简单地点击缩略图来进行浏览或用向前/向后按纽浏览,此外还支持采用lightbox来展示原始图。 在线演示:http://www.jkemppainen.com/nbs/DEMO_1_5/