This is a clean and simple Jekyll Theme built with the Bulma framework, providing a modern-looking site to start with.
The theme uses Alpine.js for its interactive components, such as mobile navbar and notifications.
This theme requires Jekyll 3.9 to be compatible with GitHub Pages.
Add this line to your Jekyll site's Gemfile
:
gem "bulma-clean-theme"
And add this line to your Jekyll site's _config.yml
:
theme: bulma-clean-theme
And then execute:
$ bundle
Or install it yourself as:
$ gem install bulma-clean-theme
The html lang attribute is set to en
by default but you can override this in the _config.yml file lang: en
Create your pages as individual Markdown files and use layout: page
for normal pages. Set the page's title and subtitle in the front matter and it will appear in the hero.
New in 0.2 - Heros can now display a background image if you provide a hero_image: /path/to/image.jpg
setting in your page front matter, or in the defaults in your site's _config.yml
.
You can also set the height of the hero by providing a Bulma hero height class in your front matter, such as hero_height: is-fullwidth
. If you do not provide this, it will revert to is-medium
.
New in 0.5.4 - If you would like to add a call to action button in the hero then add hero_link
and hero_link_text
to the page's front matter.
New in 0.5.7 - If you would like to hide the hero, you can set hide_hero: true
in the page's front matter.
New in 0.7.1 - If you would like to darken the hero so the title stands out more, you can set hero_darken: true
in the page's front matter. You can overwrite the default background colour by setting the $hero-darken
sass variable.
New in 0.5.8 - If you want to display a table of contents (toc) then add toc: true
to your page's front matter. You can customise the default table of contents title by setting toc_title: My Custom Title
in the page's front matter.
New in 0.10.3 - If you would prefer to display the contents in the menubar at the side of the page, then use menubar_toc: true
instead of toc: true
. This will also override the page's menubar
setting.
If you want posts, create a _posts
directory to store your posts as per normal Jekyll usage, with layout: post
. Next, create a blog
directory with an index.html file that has layout: blog
.
Set paginate
and paginate_path
in your site's _config.yaml
to configure the posts per page and blog pagination path.
paginate: 5
paginate_path: "/blog/page:num"
New in 0.2 - It will now display an image in the blog page if you set image: /path/to/image.jpg
in your post's or page's front matter, or in the defaults in your site's _config.yml
.
You can also set the height of the hero by providing a Bulma hero height class in your front matter, such as hero_height: is-fullwidth
. If you do not provide this, it will revert to is-medium
.
By default, the blog page and the latest posts will use the automatically generated post excerpt. If you would like to override this you can set the summary in the post's front matter.
layout: post
title: The post title
summary: |-
This is the custom summary for the post.
It can be in **Markdown format** if required.
Share buttons will be displayed on your posts unless you hide them by adding hide_share_buttons: true
to your config file.
For the top navigation, create a navigation.yml file in the _data
directory with the following format with the pages you want to include in the top navigation. You can now also add items to a dropdown menu.
- name: Page 1
link: /page-1/
- name: Blog
link: /blog/
dropdown:
- name: Page 2
link: /page-2/
For the current page to have an active class, ensure the link:
format matches your permalink format. The above example will work with a permalink: pretty
setting in your _config.yml
.
To have a fixed navbar on the top or bottom of your site, you can set fixed_navbar: top
or fixed_navbar: bottom
respectively in your_config.yml
.
To overwrite the primary theme colour, set a sass variable in assets/css/app.scss
before importing main
.
---
---
$primary: #333333;
// Import Main CSS file from theme
@import "main";
You can overwrite any of the Bulma initial variables in this way as long as they are declared before the @import "main";
.
If you want to update the theme color meta tag then set theme_color: '#333333'
in your _config.yml
file.
New in 0.2 - If you want to show the sidebar with latest posts then set show_sidebar: true
in the page's frontmatter, or in the defaults in your site's _config.yml
.
New in 0.3 - The menubar gets its content from a data file in your site's _data
directory. Simply set the name of your data file in the page's menubar setting in the frontmatter.
show_sidebar: false
menubar: example_menu
You will probably want to disable show_sidebar
. Otherwise there will be little room for the page content.
Create a data file in the _data
directory and use the following format (if using yml).
- label: Example Menu
items:
- name: Home
link: /
- name: Pages
link: #
items:
- name: Page With Sidebar
link: /page-1/
- name: Page Without Sidebar
link: /page-2/
- name: Page With Menubar
link: /page-3/
- name: Blog
link: /blog/
For the current page to have an active class, ensure the link:
format matches your permalink format. The above example will work with permalink: pretty
setting in your _config.yml
.
You may make multiple menus in the same file, separated by labels.
- label: Menu Label
items:
- name: Example item
link: /example-item/
- label: Second Menu Label
items:
- name: Parent Item
link: /parent-item/
items:
- name: Sublink
link: /sublink/
- name: Sublink 2
link: /sublink2/
- label: Third Menu Label
items:
- name: Another example item
link: /another-example-item/
New in 0.4 - tabs
gets its content from a data file in your site's _data
directory. Simply set the name of your data file in the page's menubar setting in the front matter.
title: Page with tabs
subtitle: Demo page with tabs
layout: page
show_sidebar: false
menubar: example_menu
tabs: example_tabs
Tabs can be used in conjunction with menubar and/or sidebar if you wish.
Create a data file in the _data
directory and use the following format (if using yml).
alignment: is-left
style: is-boxed
size: is-large
items:
- name: Tabs
link: /page-4/
icon: fa-smile-wink
- name: Sidebar
link: /page-1/
icon: fa-square
- name: No Sidebar
link: /page-2/
icon: fa-ellipsis-v
- name: Menubar
link: /page-3/
icon: fa-bars
You can control the alignment, style, and size of tabs by using the relevant Bulma tabs classes.
It will automatically mark the active tab based on the current page.
You can add icons to your tab by passing in the Font Awesome icon class. If you don't wish to show icons then simply omit the option from your yaml file.
You can include a notification in a page or post using the below include. The message is required but the status defaults to 'is-warning' and the icon defaults to 'fas fa-exclamation-circle', but can be overwritten by setting the values in the includes. The message can also be written in Markdown format.
{% include notification.html message="This is the message for the notification" %}
To set a notification to be dismissible, set dismissible to 'true'
{% include notification.html
message="This notification is dismissable"
dismissable="true" %}
Omit the icon by setting icon to 'false'
{% include notification.html
message="This notification does not have an icon."
icon="false" %}
To include a tag use the following include.
{% include tag.html tag="The tag text" %}
You can overwrite the default style (is-primary) by passing in the style in the include tag.
{% include tag.html tag="The tag text" style="is-light" %}
New in 0.2 - To enable Google Analytics add google_analytics: UA-xxxxxxxx
to your _config.yml
replacing the UA-xxxxxxxx with your Google Analytics property.
New in 0.4.1 - To add some footer links, create a yaml file in the _data
directory using the following format.
- name: Blog
link: /blog/
- name: About
link: /about/
- name: Privacy Policy
link: /privacy-policy/
Then add the name of your yaml file (without the .yml extension) into the footer_menu
setting in the _config.yml
.
footer_menu: example_footer_menu
New in 0.5.2 - If you would like to hide the footer on a particular page then set hide_footer: true
in the page's frontmatter.
New in 0.5 - Now you can add simple product pages to your site using collections.
Start by creating a _products
directory to hold your product pages and create a new page for each product, such as product1.md
. In the front matter for this page you can set the standard settings, such as your title, subtitle, description (for meta-description), hero_image, as well as the additional product settings such as price, product_code, image, features, and rating.
title: Product 1 Name
subtitle: Product 1 tagline here
description: This is a product description
hero_image: /img/hero-img.jpg
product_code: ABC124
layout: product
image: https://via.placeholder.com/640x480
price: £1.99 + VAT
features:
- label: Great addition to any home
icon: fa-location-arrow
- label: Comes in a range of styles
icon: fa-grin-stars
- label: Available in multiple sizes
icon: fa-fighter-jet
rating: 3
The text you write for the page content will be displayed as the product description.
Next, add the following to your _config.yml
to use collections to process the product pages and output them as individual pages.
collections:
products:
output: true
layout: product
image: https://via.placeholder.com/800x600
show_sidebar: false
You can also set default product page values here if you like, such as the layout or image.
To add reviews to your product page, create a reviews
directory in the _data
directory and add a yaml file with the name of the product_code from the product page, for example _data/reviews/ABC124.yml
. Create the reviews using the following format:
- name: Mr E Xample
rating: 4
title: Great product, highly recommended
date: 2019-01-01
avatar: https://bulma.io/images/placeholders/128x128.png
description: >
The product worked really well. I would recommend this to most people to use. Delivery was quick and reasonable.
Would recommend this to my friends.
- name: Mrs R E View
rating: 5
title: Nice, really liked this
date: 2019-02-02
description: >
The product worked exactly as described.
If you don't want to display an avatar image then a default user icon will be displayed. If you don't want to display a rating then omit it from the yaml file.
To create a page listing your products you will need to create a product category page. Create a page, for example products.md
, with the layout: product-category
in the frontmatter. You can set the sort order of the products using sort: title
to sort by the title, or by any setting in your product pages, such as price, rating or any custom frontmatter tags you wish to set.
title: Products
subtitle: Check out our range of products
layout: product-category
show_sidebar: false
sort: title
New in 0.5.2 - There are two new files within the includes directory called head-scripts.html
and footer-scripts.html
. These are empty files by default but allow you to add any additional JavaScript to your site, such as the script for AddThis share buttons, in the <head>
or after the <footer>
of the page.
New in 0.5.4 - You can now add callouts to a page to make a landing page style layout.
Create a data file following the below format. The style is for classes to set the background colour and sizes you would like to use of the Bulma hero container for the callouts.
New in 0.5.7 - You can set the height of the callouts in the data file, such as is-small
, is-medium
, or is-large
. If unset it will be is-medium
by default.
The items have six fields, but only the title and subtitle are required. If the icon is a brand icon, such as GitHub in the below example, set icon_brand: true
.
style: is-light
height: is-medium
items:
- title: Example callout 1
subtitle: Example subtitle 1
icon: fa-github
icon_brand: true
description: >
The example description text goes here and can be multiple lines.
For example, such as this.
call_to_action_name: Call to action 1
call_to_action_link: /page-1/
To display the callouts on your page, add a callouts
property in the frontmatter and set it to the name of your data file without the extension.
layout: page
title: Example Landing Page
subtitle: This is an example landing page
callouts: example_callouts
The default favicon path is {{ site.baseurl }}/favicon.png
but you can overwrite it in the site's _config.yml
like this favicon: /path/to/favicon.png
Showcases allow you to display your work to others using a simple layout.
Create a datafile in your site's _data
directory in the following format. Subtitle, features and tags are not required.
The description text accepts Markdown and is run through the markdownify filter on the page.
The image_ratio
will default to is-16by9
if it is not defined and accepts the Bulma image classes.
To display GitHub Stars, Forks, and Watchers badges, add your GitHub user and repo name to the github
setting, such as chrisrhymes/bulma-clean-theme
.
To change the default styles of the features, set features_styles
. This uses the styles from bulma-block-list npm package.
intro: |-
This is some introduction text for the showcases.
## Example Heading
It can convert Markdown format
items:
- title: Example showcase item
subtitle: Example subtitle
description: |-
This is the example description for this item that you are showcasing and has an image, title, description, tags and a link.
features:
- This is a feature
- This is a feature
features_styles: is-centered is-outlined is-primary
image: https://via.placeholder.com/1024x788
image_ratio: is-16by9
link: http://www.example.com
link_text: View example
tags: PHP,CSS,JavaScript
github: user/repo-name
Set the showcase in the page's front matter to be the name of the showcase data file without the extension. This gives you the ability to create multiple showcases to be used on different pages.
title: Showcase
subtitle: An example showcase page
layout: page
showcase: showcase_example
show_sidebar: false
If you have a GitHub sponsors account set up, you can add your username to gh_sponsor
in the _config.yml
file and it will display a link to your profile on the right of the navbar.
gh_sponsor: chrisrhymes
If you would like to create a page to thank your sponsors then create a data file, such as my_sponsors.yml file with the following structure:
- tier_name: Platinum Sponsors
size: large
description: |-
This is the description for the Platinum Tier
sponsors:
- name: Dave McDave
profile: https://github.com/
- name: Sarah Lee-Cheesecake
profile: https://github.com/
- tier_name: Gold Sponsors
description: |-
This is the description for the Gold Tier
sponsors:
- name: Dave McDave
profile: https://github.com/
The tier_name
and description
are required. The size
is not required, but can be overwritten to 'large' or 'small' to increase or decrease the size of the box and the text size.
The sponsors require a name, but not a profile link.
To display the sponsors on your page, set the sponsors to the filename without the extension in the page's front matter
layout: page
title: My Sponsors Page
sponsors: my_sponsors
Display a simple image gallery on a page, with image descriptions.
Start by creating a gallery data file using the below format, for example my_gallery.yml
.
- title: Image Gallery Title
images:
- link: https://via.placeholder.com/800x450
large_link: https://via.placeholder.com/1200x675
alt: The alt text for the image
description: |-
The image description can be written in **Markdown** if required
ratio: is-16by9
- link: https://via.placeholder.com/800x600
large_link: https://via.placeholder.com/1200x675
alt: The alt text for the image
description: The image description
ratio: is-4by3
In your page's front matter add a gallery with the datafile's filename without the extension.
layout: page
title: My Image Gallery
gallery: my_gallery
Disqus comments are available for posts. To be able to use them, you need to set your disqus shortname in _config.yml
.
disqus.shortname=<example-com.disqus.com>
Need help finding your Disqus Shortname? See this helpful post by Disqus on the matter.
Then you need to set your Jekyll environment to production:
JEKYLL_ENV=production bundle exec jekyll build
.
Comments are enabled by default. If you want to disable them, set in the front matter this setting:
comments: false
You can make a single page using the recipe layout, or you can use it in your blog by specifying the layout: recipe
instead of post.
You probably want to hide the sidebar, so the recipe takes up the whole page width. If you add any additional content to the page it will appear below the recipe details.
Create a list in the front matter for the ingredients, then the method steps and it will automatically be added to the page.
The front matter will also be added to the page as schema data that is used by search engines. Please see the below example for all of the schema options available.
layout: recipe
title: An Example Recipe Page
subtitle: Tastes great and easy to cook
author: CS Rhymes
date: 2021-03-02
show_sidebar: false
image: /bulma-clan-theme/img/recipe-example.jpg
hero_image: /bulma-clean-theme/img/recipe-example.jpg
ingredients:
- 1tsp vegetable oil
- 2 Carrots, finely diced
- 1 Onion, finely dices
- 1 Celery stick, finely diced
- 2 Cloves of Garlic, crushed
- 400g lean Minced Beef
- 400g tin of Chopped Tomatoes
- 2tbsp Tomato Puree
- 300ml Beef Stock
- 1tsp Worcestershire Sauce
- 2tsp Italian Herbs
- Salt and Pepper
method:
- Heat the vegetable oil in a large pan on a medium heat, then add the carrots, onion and celery and cook for five to ten minutes to soften, stirring occasionally
- Add the crushed garlic and cook for 2 more minutes, stiffing occasionally
- Add the minced beef to the pan, breaking it up with a wooden spoon and cook until browned off
- Add the chopped tomatoes, tomato puree, beef stock, worcestershire sauce and italian herbs and stir. Add a pinch of salt and pepper then stir through
- Bring to a gentle simmer and cook for 30 minutes
prep_time: PT0H10M
cook_time: PT1H
total_time: PT1H10M
keywords: recipe,cooking
recipe_yield: 4
recipe_category: Main course
recipe_cuisine: Italian
calories: 500 calories
Bug reports and pull requests are welcome on GitHub at https://github.com/chrisrhymes/bulma-clean-theme. 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 set up 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.
The theme is available as open source under the terms of the MIT License.
以下Sample code只是提供了一个方法,可能没有通用性,每个设备的Default skin的键值设置都会有所不同。代码还存在缺陷,Start Menu颜色变不过来,还有待研究。 修改的键主要分布在以下两个: HKEY_CURRENT_USER/Software/Microsoft/Today/Skin HKEY_LOCAL_MACHINE/Software/Microsoft/Color
一、前言 在Android可以对整个应用的风格进行管理,这种风格叫做主题。通过主题对整个应用的字体、颜色、大小、形状进行管理可以使整个应用变得容易维护。不过这个需要开发者提前知道整个应用的规范,而且以后都按照这个规范来进行开发。不过在我从事的开发过程中,整个开发过程往往显的比较随意,其风格也经常变化,因此主题实际使用场景并不大。本篇就对此进行一个简单的记录。 二、Material Themin
假设你安装的emacs目录是在D:/emacs Color-theme 下载地址:http://download.gna.org/color-theme/ 安装方法: 1、解压color-theme-6.6.0.zip,并将其内文件全部复制到D:/emacs/site-lisp下 2、运行emacs的bin目录下的运行runemacs.exe,启动emacs 3、按下alt+x,然后输入命
第一步安装插件: npm install ---save webpack-theme-color-replacer 第二步在vue.config.js里面引入 修改配置 const BASE_URL = './' const ThemeColorReplacer = require('webpack-theme-color-replacer') const forElementUI = req
Theme.AppCompat.Light.NoActionBar Theme.AppCompat.Light.NoActionBar: Theme.AppCompat.Light.NoActionBar.xml <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.AppCompat.Light.NoAc
首先导入ppa: sudo add-apt-repository ppa:noobslab/themes 更新: sudo apt-get update 安装主题 sudo apt-get install flatabulous-theme 安装主题美化工具: Ubuntu16.04默认桌面安装方式: sudo apt-get install unity-tweak-tool Gnome桌面
idea主题网址: http://www.riaway.com/ http://color-themes.com/?view=index http://color-themes.com/?view=index
Bulma 是一款基于 Flexbox 的现代 CSS 框架。有以下特性: 响应式,Bulma 是一个优先考虑移动版的框架 模块化,只需导入你需要的 现代化,基于 Flexbox 运行效果 列的示例。只要添加列,它们会自动调整自己的大小 魔术瓷砖(Magic tiles) Metro UI CSS 网格的单个元素
ember-bulma Ember Bulma is a collection of Ember components and services for Bulma, a modern CSS framework by Jeremy Thomas Ember Bulma is still very much in Beta. When you come across anything that n
vue-bulma-dialog 是基于 Vue2、bulma0.5.3 实现的弹层组件。接口借鉴了 layer 的使用方式,调用比较简单,配置灵活。 当前版本: v1.0.0 主要功能包括: 1、自定义弹层宽度、自定义标题、自定义按钮文字 2、自定义内容,可是是HTML,也可以是Vue组件 使用方法: 1、引入组件 $ npm install vue-bulma-dialog -save 2、在
我有一些第三方jar依赖。因此,我使用maven-install-plugin将这些第三方jar安装到我的本地存储库(.m2/repository)中。这个插件一定要清理阶段。当我执行“MVN clean Install”时,在运行clean之前,它开始搜索依赖项,最终构建失败,因为它无法找到第三方JAR。但是当我单独运行mvn clean时,它会将文件安装在本地存储库中。随后当我运行mvn cl
clean 命令用于删除生成的书籍,和任何其他构建工件. mdbook clean clean命令可以将目录作为参数,用作本书的根目录,而不是当前工作目录. mdbook clean path/to/book --dest-dir(-d)选项允许您覆盖书籍的输出目录,该目录会删除。 为相对路径,(相对于书籍的根目录)。如果未指定,则默认为book.toml配置的build.build-dir字
执行 go clean 命令会删除掉执行其它命令时产生的一些文件和目录,包括: 在使用 go build 命令时在当前代码包下生成的与包名同名或者与Go源码文件同名的可执行文件。在 Windows 下,则是与包名同名或者 Go 源码文件同名且带有 .exe 后缀的文件。 在执行 go test 命令并加入 -c 标记时在当前代码包下生成的以包名加 .test 后缀为名的文件。在 Windows 下