Typing, is a template for Jekyll created especially for those who want to have a blog and pages quickly and lightly. Keep things simple, my friend!
Its interface is part of the "Keep It Simple" philosophy, precisely for high performance on all types of browsers and mobile devices.
You already have a template page for "Blog", "Projects", "Search", "Contact", "Tags", "Summary", "404" and "About", but you can change it as you wish by modifying the strings.
On the resume.md page, you can print using the browser shortcut Ctrl + P or the button. Printing will eliminate useless parts such as the sidebar.
You will also have a template for posting to the "" welcome-to-jekyll.md "** file and will need to follow the header of that template. The file contains some information you can get to use on your website.
The contact page (_ pages/global/contact.md) uses the feature Formspree, you need to have an account on the service and add your email and endpoint to the file _data/informations.yml.
userdata:
email: "youremail@domain.com"
Then you must change the type of plan you have in Formspree in the option:
website:
...
content:
...
contact:
formspree:
plan: "free|paid"
endpoint: ""
NOTE: The paid plan, you will have the option to redirect the page after sending (or not) the form data, among other features. Typing has two pages ready for redirection if you use the paid option, one for success and one for failure. They are:
You can learn more at: Formspree Plans
In addition, all contents of the _data/informations.yml file should be changed to suit your needs and needs.
NOTE: Typing Jekyll Template does not support atomic compilation in Github Pages due to its own plug-in feature and some settings that the theme provides. You need to run the project clone on your machine, compile the site, and deploy it to the Github pages.
Used Plugins:
Required | Version | How to verify | How to install |
---|---|---|---|
Git | >= 2.25 | git --version |
Git |
Ruby | >= 2.7 | ruby -v |
Ruby |
Gem | >= 3.0 | gem -v |
Ruby contains Gem |
Bundler | >= 2.0 | bundler -v |
gem install bundler |
Yarn | >= 1.20 | yarn -v |
Yarn |
Npm | >= 6.12 | npm -v |
Npm |
1 - Cloning and entering the folder:
$ git clone https://github.com/williamcanin/typing-jekyll-template.git "my_site"
$ cd "my_site"
2 - Downloading Dependencies for Typing:
$ yarn install
Note: If you experience problems with yarn during installation of the dependencies, you may also be using npm like this:
npm install
.
3 - Build project to deploy:
$ yarn build
4 - Starting the Jekyll Service:
$ yarn serve
If you want to clear the entire project cache, use the following command:
$ yarn clean
This file is specific to Linux systems, where are all files and folders that should be hidden so as not to visually pollute the project.
Now the homepage is in the file "index.md" in the project root folder. Write a good opening.
This folder contains subfolders where some you don't need to fumble with, such as css, js, vendor and json. The folder images instead you should put the images to your website. Each subfolder of the images folder is self-explanatory.
The pages are found in the _ pages/blogger and _ pages/global folder.The _ pages/blogger folder is contained in Blog pages and the _ pages/global folder is where about.md and projects.md page is contained.
If you do not want to work with the about.md and projects.md pages, we recommend leaving the published property to false. NEVER DELETE FOLDER PAGES blogger and global as they have unique properties that a normal page may not contain.
If you don't want to have a blog on your website then you should disable it in the archive _data/options.yml, where you will find more information in the section Files '_data/options.yml'.
To create a page is very simple. Using the following command, you create the header of a page in the _ pages directory, where all your created pages should be.
$ yarn page
The pages you create may or may not appear in your website menu. Just set the header menu -> enable property that looks like this:
---
layout: page
order: #number
title: "page1"
date: 2019-10-07 22:57:30
sitemap:
priority: 0.7
changefreq: 'monthly'
lastmod: 2019-10-07 22:57:30
# Use icons of: https://fontawesome.com/icons
# E.g: fa-briefcase
icon:
menu:
enable: true
local: [default]
script: []
published: false
permalink: # add permilink for page. E.g: /smallparty/
---
Some properties you should not change, such as layout, date and menu -> location.
In the icon property you can either put the icon FontAwesome that is related to your created page, or simply leave it blank.
The property order, you can put a number that (according to the other pages), to sort in the website menu.
Be sure to leave the published property to true for your page to appear.
The _posts folder is where you will put all your posts. Creating a post is as simple as creating a page.
$ yarn post
You will enter an intuitive console to enter the title name of your post. When creating, the header will look something like this:
---
layout: post
title: "mypost"
date: 2019-10-07 23:06:50
tags: ['tag1','tag2','tag3']
published: false
comments: false
excerpted: |
Put here your excerpt
day_quote:
title: "Put here title quote of the day"
description: |
"Put here your quote of the day"
# Does not change and does not remove 'script' variable.
script: [post.js]
---
Some properties you should not change, such as layout, data and script.
The excerpted property is text that you must set (if you wish) to appear in the posts listing of your website.
The day_quote property is where you can put a phrase you like at the end of your post.
The comments property is to enable or disable comments on the post itself.
Be sure to leave the published property to true for your post to appear.
The public folder will be your entire compiled website. It will be the contents of this folder that you must upload to your hosting server.
This folder is where the whole template structure is. You don't need to change anything in this folder unless you want to corrupt the theme. :)
This folder will have all the dependencies for your template to be generated and work. It is created and populated with the yarn install command. Do not delete it.
Well, now that you know about some folders and files, let's understand how to configure Typing to your liking. Come on.
To learn about this file, read about CNAME records HERE
The first file you open to configure is _config.yml. In this file you will have some indication of blocks that should be changed, but basically you should change the url and baseurl property only.
In url you enter the url of your domain. For example:
url: http://mysite.com
In baseurl you tell the subfolder your website is (if it is). For example:
baseurl: /site1
NOTE: Do not put slash at the end.
It has the plugin settings Jektify, you can also change to your liking.Another setting you could do is in the reading_time and datelang properties, changing their locale to their language.
The supported languages for reading_time and datelang are:
Other changes you can make to _ config.yml:
Enables or disables blog pagination [default: true]:
pagination:
enabled: true
NOTE: If you want to disable the pager, after making the above settings, you have to go to page _pages/blogger/blog.md and leave pagination -> enable to false.
Changes the server port [default: 4000]:
port: 4000
Change server host [default: localhost]:
host: localhost
The other property you do not need to dig through.
The file '_ data/informations.yml' is a file that contains template information, most of which is the string that appears on the website. You should set the property values of this file to your liking.
Some basic settings you will make in this file are:
You must enter the name of your avatar, which should be in the folder assets/images/avatar in the following property:
sidebar:
avatar:
img: "your_first_photo_avatar.png|jpg"
flip:
img: "your_second_photo_avatar.png|jpg"
The avatar has a Flip animation, where you must enter a second image in the flip -> img property. If you do not want this animation, you can disable it by reading the section File '_data/options.yml'.
This is one of the coolest features of Typing, which is that you can quickly switch between multiple themes, and even customize one (if you know a bit of CSS/SCSS) . Come on.
By default Typing comes with 5 (five) official themes, they are:
To use a theme, simply change the theme property in the '_ data/informations.yml' file and then compile your project again:
website:
....
theme: "typing"
You will also have the file _src/_sass/theme/custom.scss, where you can create your own theme without changing Typing officers.
NOTE: The folder _src may be hidden due to the file .hidden. With your file manager, show hidden files or open every project in a preferred text editor. Only change template files if you know what you are doing.
Typing uses Disqus to embed comments on the blog. To have the comments feature, you must inform the user of the in the file "_ data/_informations.yml":
userdata:
disqus:
username: "my_user_disqus"
NOTE: The commenting feature will appear if the Jekyll environment is a production environment, not a development environment, ie when executing the yarn build command.
You can also enable or disable commenting for each post you make. In the post header, change the property:
comments: true|false
This file contains options to enable and disable Typing features. In this file you should basically change as you like.
One of the things you might not want is a blogless website, in which case you should leave the property below to false:
blog:
enable: false
After changing this property, you MUST change in the _ pages/blogger/blog.md file the following property to false:
menu:
enable: false
So the link Blog will not appear in the menu.
Another feature you may want to change is avatar animation. By default, FLIP animation is enabled. To disable this animation, you leave the low property with value of false:
sidebar:
...
avatar:
....
flip: false
If you don't want an avatar on your website, simply disable it in the option:
sidebar:
...
avatar:
enable: false
Another feature Typing acquired was a terminal simulator on the homepage. This is a visual matter only, as the terminal is not real.
Mixing a project that resembles the past and at the same time the present.
To enable the terminal simulator on the home page, just leave the same settings below:
home:
...
terminal:
enable: true
Here's how this feature will behave in your project:
There is much more functionality in the _data/options.yml file for you to explore :)
If you want to see the project in action, click here. > Demo
Have your say about Typing Jekyll Template at:Typing Jekyll Template - Issues
You can download versions without creating a clone with Git. Go to Releases
License: MIT License (MIT)
Copyright: William C. Canin | Copyright © 2015-2021
Você pode alterar a estrutura do Typing Jekyll Template conforme desejar, desde que não manipule ou remova os direitos autorais de William C.Canin no projeto
Click on the image below to be redirected the donation forms:
A plugin that allows multiple input elements to be treated as one when typing. For example, if you have social security number split among three input elements, this plugin would allow the user to cli
jQuery-typing这个jQuery插件用于为文本输入框的键盘开始和结束输入事件添加回调功 能。 $(':text').first().typing({ start: function () { $('body').css('color', 'red'); }, stop: function () { $('body').css('co
Typing Speed Monitor 是一款可以在你打字时记录你打字速度有多快的 Chrome 扩展程序,为了让记录更加准确,扩展采用了一种很有趣的办法来判定你是否在打字——两个按键时间间隔不超过5秒。如果你连续两次击键超过5秒,那么扩展会认为你没有打字,没打字的时间就不会统计进去。 在记录你输入速度的同时,扩展还会统计你那个键按的最多,并且可以查看某个具体的按键详细信息(将鼠标指向扩展键盘上
问题内容: 什么 duck typing? 问题答案: 这是动态语言中没有强类型输入的术语。 这个想法是您不需要类型来调用对象上的现有方法-如果在对象上定义了方法,则可以调用它。 该名称来自短语“如果它看起来像鸭子,而象鸭子一样叫,那就是鸭子”。 维基百科有更多信息。
declare或typeset内建命令(它们是完全相同的)可以用来限定变量的属性.这是在某些编程语言中使用的定义类型不严格的方式。命令declare是bash版本2之后才有的。命令typeset也可以在ksh脚本中运行。 declare/typeset 选项 -r只读 1 declare -r var1 (declare -r var1与readonly var1作用相同) 这大致和C的co
Jekyll 是一个简单的免费的Blog生成工具,类似WordPress。但是和WordPress又有很大的不同,原因是jekyll只是一个生成静态网页的工具,不需要数据库支持。但是可以配合第三方服务,例如discuz。最关键的是jekyll可以免费部署在Github上,而且可以绑定自己的域名。 快速安装指令: gem install jekylljekyll new my-awesome-sit