当前位置: 首页 > 软件库 > Web应用开发 > >

leap-day

Leap day is a Jekyll theme for GitHub Pages
授权协议 CC0-1.0 License
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 松高爽
操作系统 未知
开源组织
适用人群 未知
 软件概览

The Leap day theme

.github/workflows/ci.yaml

Leap day is a Jekyll theme for GitHub Pages. You can preview the theme to see what it looks like, or even use it today.

Usage

To use the Leap day theme:

  1. Add the following to your site's _config.yml:

    remote_theme: pages-themes/leap-day@v0.2.0
    plugins:
    - jekyll-remote-theme # add this line to the plugins list if you already have one
  2. Optionally, if you'd like to preview your site on your computer, add the following to your site's Gemfile:

    gem "github-pages", group: :jekyll_plugins

Customizing

Configuration variables

Leap day will respect the following variables, if set in your site's _config.yml:

title: [The title of your site]
description: [A short description of your site's purpose]

Additionally, you may choose to set the following optional variables:

show_downloads: ["true" or "false" (unquoted) to indicate whether to provide a download URL]
google_analytics: [Your Google Analytics tracking ID]

Stylesheet

If you'd like to add your own custom styles:

  1. Create a file called /assets/css/style.scss in your site
  2. Add the following content to the top of the file, exactly as shown:
    ---
    ---
    
    @import "{{ site.theme }}";
  3. Add any custom CSS (or Sass, including imports) you'd like immediately after the @import line

Note: If you'd like to change the theme's Sass variables, you must set new values before the @import line in your stylesheet.

Layouts

If you'd like to change the theme's HTML layout:

  1. For some changes such as a custom favicon, you can add custom files in your local _includes folder. The files provided with the theme provide a starting point and are included by the original layout template.
  2. For more extensive changes, copy the original template from the theme's repository
    (Pro-tip: click "raw" to make copying easier)
  3. Create a file called /_layouts/default.html in your site
  4. Paste the default layout content copied in the first step
  5. Customize the layout as you'd like

Customizing Google Analytics code

Google has released several iterations to their Google Analytics code over the years since this theme was first created. If you would like to take advantage of the latest code, paste it into _includes/head-custom-google-analytics.html in your Jekyll site.

Overriding GitHub-generated URLs

Templates often rely on URLs supplied by GitHub such as links to your repository or links to download your project. If you'd like to override one or more default URLs:

  1. Look at the template source to determine the name of the variable. It will be in the form of {{ site.github.zip_url }}.
  2. Specify the URL that you'd like the template to use in your site's _config.yml. For example, if the variable was site.github.url, you'd add the following:
    github:
      zip_url: http://example.com/download.zip
      another_url: another value
  3. When your site is built, Jekyll will use the URL you specified, rather than the default one provided by GitHub.

Note: You must remove the site. prefix, and each variable name (after the github.) should be indent with two space below github:.

For more information, see the Jekyll variables documentation.

Roadmap

See the open issues for a list of proposed features (and known issues).

Project philosophy

The Leap day theme is intended to make it quick and easy for GitHub Pages users to create their first (or 100th) website. The theme should meet the vast majority of users' needs out of the box, erring on the side of simplicity rather than flexibility, and provide users the opportunity to opt-in to additional complexity if they have specific needs or wish to further customize their experience (such as adding custom CSS or modifying the default layout). It should also look great, but that goes without saying.

Contributing

Interested in contributing to Leap day? We'd love your help. Leap day is an open source project, built one contribution at a time by users like you. See the CONTRIBUTING file for instructions on how to contribute.

Previewing the theme locally

If you'd like to preview the theme locally (for example, in the process of proposing a change):

  1. Clone down the theme's repository (git clone https://github.com/pages-themes/leap-day)
  2. cd into the theme's directory
  3. Run script/bootstrap to install the necessary dependencies
  4. Run bundle exec jekyll serve to start the preview server
  5. Visit localhost:4000 in your browser to preview the theme

Running tests

The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run script/cibuild. You'll need to run script/bootstrap once before the test script will work.

  • Python⽂件IO操作涉及⽂件读写操作,获取⽂件 后缀名 ,修改后缀名,获取⽂件修改时间, 压缩 ⽂ 件, 加密 ⽂件等操作。 Python⽇期章节,由表⽰⼤⽇期的 calendar, date模块,逐渐过渡到表⽰时间刻度更⼩的模块: datetime, time模块,按照此逻辑展开。 Python 多线程 希望透过5个⼩例⼦,帮助你对多线程模型编程本质有些更清晰的认识。 获取后缀名 impor

  • 题目描述 We now use the Gregorian style of dating in Russia. The leap years are years with number divisible by 4 but not divisible by 100, or divisible by 400. For example, years 2004, 2180 and 2400 are l

  • 01-review 1. 匿名函数 lambda 形参列表: 返回值 2. 实参高阶函数 1) max、min、sorted(sort) 函数的要求: ​ a.有且只有一个参数(代表序列中的元素) ​ b.返回值是比较对象 ​ 2)map map(函数, 序列1, 序列2, …) 函数的要求: ​ a.参数的个数和后面序列的个数保持一致 ​ b.返回值就是新序列中的元素 ​ 3)reduce re

  • 九度[1043]-Day of Week 题目描述: We now use the Gregorian style of dating in Russia. The leap years are years with number divisible by 4 but not divisible by 100, or divisible by 400. For example, years 200

  •  采用的方法是“哨兵位”,浪费了一个空间 int Is_leap_year(int year) { if(year < 1) { return -1; } return (0 ==year % 4 && 0 != year % 100)||(0 == year % 400);//是闰年 } int Get_month_day(int year,int month) { if(m

  • C++中leap是什么0 #include "stdio.h" int main(void) { int day, day_year, month, year; int repeat, ri; int day_of_year(int year, int month, int day); scanf("%d", &repeat); for(ri = 1; ri <= repeat; ri++){ s

  • 本文整理匯總了Python中calendar.isleap方法的典型用法代碼示例。如果您正苦於以下問題:Python calendar.isleap方法的具體用法?Python calendar.isleap怎麽用?Python calendar.isleap使用的例子?那麽恭喜您, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在模塊calendar的用法示例。 在下文中

  • 本文整理汇总了Python中calendar.isleap方法的典型用法代码示例。如果您正苦于以下问题:Python calendar.isleap方法的具体用法?Python calendar.isleap怎么用?Python calendar.isleap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在模块calendar的用法示例。 在下文中

  • Unix时间和leap seconds(闰秒)简要分析 author:onceday date:2022年6月3日 1.基本介绍 在现有的世界时间体系中,存在多种标准,然而用得最多的就是世界时和原子时了。世界时是根据地球自转为准的时间尺度,然而由于多种因素影响,因此地球自转并不稳定,导致世界时也不是均匀的时间尺度。 以原子震荡周期为基础,并由世界度量衡局以世界各国家实验室原子钟群加权平均产生之时间

  • 写一个匿名函数,判断指定的年是否是闰年 (先直接用普通函数) # 匿名函数 is_leap_year = lambda year: (year % 4 == 0 and year % 100 != 0) or year % 400 == 0 print(is_leap_year(2020)) # 普通函数 def is_leap_year(year):

  • 題目:判斷對應日期是星期幾。其中涉及閏年計算,閏年按歷史上的實際情況計算:             1.1752年9月2日之前,使用四年一閏的方式;             2.1752年9月14日之後,使用現在的閏年計算方式(四年一閏,百年不閏,四百年閏);             3.1752年9月2日的後一天為752年9月14日(缺少的11天補足之前閏年的遺漏); 分析:模擬。按照上面規則計

  • day-11函数进阶 1.函数的参数 1.位置参数和关键字参数 根据调用函数的时候实参的传递方式的不同,可以将实参分为位置参数和关键字参数 a.位置参数 直接多个数据用逗号隔开,让实参和形参从位置上一一对应 b.关键字参数 以’形参名1=数据1,形参名2=数据2,…'的形式存在,直接让形参名和数据对应。 c.位置参数和关键字参数可以一起用 位置参数必须在关键字参数的前面 def func1(x,

  • 描述 We now use the Gregorian style of dating in Russia. The leap years are years with number divisible by 4 but not divisible by 100, or divisible by 400. For example, years 2004, 2180 and 2400 are lea

  • 分享一个大牛的人工智能教程。零基础!通俗易懂!风趣幽默!希望你也加入到人工智能的队伍中来!请点击http://www.captainbed.net /* * Write the routines day_of_year and month_day with pointers. * * Tail.c - by FreeMan */ #include <stdio.h> static cha

  • 生成JUnit测试用例集 1.对Triangle进行JUnit测试并设计测试用例使其满足100%函数覆盖 2.对Triangle进行JUnit测试并设计测试用例使其满足100%语句覆盖 3.对Triangle进行JUnit测试并设计测试用例使其满足100%判定覆盖 4.对NextDay进行JUnit测试并设计测试用例使其满足100%函数覆盖 5.对NextDay进行JUnit测试并设计测试用例使其

 相关资料
  • Orange Leap (前身是 MPowerOpen) 是第一个全功能的开源的组织关系管理系统,适用于任意规模的非盈利组织使用。

  • 问题内容: 这是家庭作业,我已经获得了成绩,但是我没有在代码中实现leap年。这是一个简单的程序,可以根据用户输入显示一个月内的数字。我唯一不知道的是一种实现implement年的方法,这种writing年将在2月获得29天而不是28天,而无需编写多条语句。当然有更简单的方法吗?这是代码: 问题答案: 如果使用,则可以执行以下操作 确定给定年份是否为is年。如果给定的年份是a年,则返回true。要

  • 问题内容: 是闰秒通过使用GregorianCalendar类照顾? 如果不是,那么任何第三方图书馆都可以满足要求吗? 问题答案: java.util.Date API表示 “……尽管Date类旨在反映协调世界时(UTC),但它可能不能完全反映协调世界时(具体取决于Java虚拟机的宿主环境。......大多数计算机时钟的准确性不足以使其能够反映the秒的区别。” 维基说 “由于地球的旋转速度会因气

  • 本文向大家介绍在JavaScript中寻找下一个leap年,包括了在JavaScript中寻找下一个leap年的使用技巧和注意事项,需要的朋友参考一下 我们需要编写一个函数,该函数需要一个正整数n并返回下一个n个leap年的数组。我们将把这个问题分为三个部分- 第1部分:通过JS查找当前年份 通过JS查找当前年份的代码将是- 第2部分:检查leap年 现在,我们将编写一个isLeap()函数,该函

  • 问题内容: PHP手册指出返回&puncsp; “ 当前UNIX时间戳”  ᴀ&puncsp; 和返回&puncsp;“当前Unix时间戳和微秒”  ʙ。 但是,是否 保证 这些功能的行为类似于严格符合POSIX.1的系统的行为? 具体来说,是否插入leap秒,使&hairsp; |&hairsp; 的输出 在第二天的开始(也就是the秒的结尾) 向后* 跳1秒(在第二天的第一秒的整个过程中)

  • 问题内容: java函数System。 currentTimeMillis ()显然返回自1970年1月1日以来的秒数。但是,根据Wikipedia.org/wiki/Leap_second的说法,自1972年以来已经有25个leap秒。这意味着自1970年1月1日以来的实际秒数比单纯的计算所建议的秒数多25。是否系统。 currentTimeMillis ()会天真的计算而忽略the秒吗? 问题