59 Commits

Author SHA1 Message Date
Parker Moore
f73475f35f Release 💎 v0.1.2 2020-08-08 13:51:10 -04:00
Parker Moore
af4f3167c1 Update docs/CONTRIBUTING.md 2020-08-08 13:44:58 -04:00
Parker Moore
32e233c327 Update docs/SUPPORT.md 2020-08-08 13:44:57 -04:00
Parker Moore
4404f41b9b Update .github/config.yml 2020-08-08 13:44:55 -04:00
Ben Balter
b5d117c1bc Merge pull request #49 from tswfi/show_full_header_for_small_displays
Show full header h1 for smaller displays
2020-01-27 11:11:24 -05:00
Tatu Wikman
d0d25c55a0 Show full header h1 for smaller displays
The prefix "./" would be lost in mobile displays and when the browser viewport
is smaller than the container width.

This removes the left margin from the header for smaller displays. Also adds a scss variable
so that its easy to change the point where the "mobil" margin is applied.
2020-01-27 12:32:34 +02:00
Ben Balter
7baf14d73e Merge pull request #47 from malteada/master
feat: Return to home on click page title
2019-11-05 16:45:01 -05:00
LuisEnMarroquin
38c6de70e4 Separate style and relative_url on title a tag 2019-11-05 15:23:40 -06:00
LuisEnMarroquin
001a5a5576 feat: Return to home on click page title 2019-11-05 13:02:51 -06:00
Parker Moore
e193e8e825 Fix linting errors & fix GitHub asset URL 2019-05-28 13:33:49 -04:00
Ben Balter
b3223aa1b5 lessen Jekyll dependency 2019-03-22 10:24:49 -04:00
Ben Balter
f2539643a8 bump ruby version in .travis.yml to 2.5ma 2019-01-28 10:50:52 -05:00
Ben Balter
8364d7a4a0 💎 bump 2018-04-11 10:24:54 -04:00
Ben Balter
718b8596cd enforce SRI 2018-04-10 09:51:42 -04:00
Ben Balter
83790cfac3 Remove explict heading from index.md 2018-04-10 09:41:41 -04:00
Ben Balter
c2e6d9b123 fix error 2018-04-09 19:57:20 -04:00
Ben Balter
9e1a44fb22 Correct some style/validation errors 2018-04-09 19:50:39 -04:00
Ben Balter
39a52d72a2 Validate and enforce style via CI 2018-04-09 19:50:37 -04:00
Ben Balter
678ff1f164 Merge pull request #22 from JAORMX/increase-width
Increase overall width to max 1000px
2018-02-13 10:02:38 -05:00
Juan Antonio Osorio Robles
f1c80ddaa2 Increase overall width to max 1000px
The maximum width is currently set to 600px, while this works, it could
easily have an increased width (say 1000px), which would improve
readability of long code snippets.
2018-02-13 15:55:10 +02:00
Ben Balter
18bf3160e9 Merge pull request #21 from roninb/post-layout
added post layout
2018-01-30 10:04:00 -05:00
Malik Butler
36bd972c7c added post layout 2018-01-27 09:17:03 -05:00
Ben Balter
c84111dd37 Update README.md 2018-01-03 11:49:37 -05:00
Ben Balter
4e226cb540 Merge pull request #18 from sweeneytr/master
Modifed sass files to parametrize colors in style sheet. First step t…
2017-12-11 17:46:48 -06:00
Tristan Sweeney
bced1c6cf8 Modifed sass files to parametrize colors in style sheet. First step to allowing users to inject colors for styling 2017-12-10 15:11:17 -05:00
Ben Balter
36c73d3a8c Merge pull request #11 from tomaskrizek/add-keyword-highlight
CSS: Add highlighting for inline keywords
2017-12-07 16:52:38 -06:00
Ben Balter
ce8bbcb841 Update docs/CONTRIBUTING.md 2017-10-24 10:41:23 -04:00
Ben Balter
8f534cb3bd Update docs/SUPPORT.md 2017-10-24 10:41:21 -04:00
Ben Balter
d7002d2c3c Update .github/config.yml 2017-10-24 10:41:20 -04:00
Ben Balter
bd63e87181 Create docs/CONTRIBUTING.md 2017-10-24 10:35:15 -04:00
Ben Balter
5c3bcadf2b Create docs/SUPPORT.md 2017-10-24 10:35:14 -04:00
Ben Balter
4d219ce29b Create docs/CODE_OF_CONDUCT.md 2017-10-24 10:35:13 -04:00
Ben Balter
e3276ce6a3 Create .github/settings.yml 2017-10-24 10:35:12 -04:00
Ben Balter
1141737bc5 Create .github/config.yml 2017-10-24 10:35:11 -04:00
Ben Balter
ac0cdbaee2 Create .github/no-response.yml 2017-10-24 10:35:11 -04:00
Ben Balter
302d20bed1 Create .github/stale.yml 2017-10-24 10:35:10 -04:00
Ben Balter
c0fb6dda55 Create .github/CODEOWNERS 2017-10-24 10:35:09 -04:00
Ben Balter
9fecc2a33c Delete CONTRIBUTING.md 2017-10-24 10:35:07 -04:00
Ben Balter
07cffd117a Delete CODE_OF_CONDUCT.md 2017-10-24 10:35:06 -04:00
Ben Balter
a03e035073 💎 bump 2017-08-14 11:01:00 -04:00
Ben Balter
6a27e6cec2 use Jekyll SEO Tag to generate page titles 2017-08-14 10:54:10 -04:00
Ben Balter
920b0c460f Merge pull request #5 from ousia/master
list item image (fixes #2)
2017-07-19 11:48:25 -04:00
Ben Balter
8b75ede464 Update CONTRIBUTING.md 2017-07-19 09:45:48 -04:00
Ben Balter
315be0a15b Update CONTRIBUTING.md 2017-07-19 09:45:08 -04:00
Ben Balter
312a33cf35 Update CONTRIBUTING.md 2017-07-19 09:42:52 -04:00
Ben Balter
7b747445bf Merge pull request #13 from not-unpleased/patch-1
Add viewport
2017-05-08 14:56:03 -04:00
Isaac Goodman
e593f11530 Add viewport 2017-05-07 09:57:26 -07:00
Ben Balter
0a50081058 Add lang property to <html> tag, h/t @mgifford 2017-04-21 13:34:39 -04:00
Ben Balter
d1764fb366 💎 bump 2017-03-29 12:09:27 -04:00
Tomas Krizek
631bda4e18 CSS: Add highlighting for inline keywords
Signed-off-by: Tomas Krizek <tomas.krizek@mailbox.org>
2017-03-03 19:33:32 +01:00
Ben Balter
864379d4ec Use async Google Analytics tracking code 2017-02-17 11:11:19 -05:00
Ben Balter
04eaeba226 Merge pull request #6 from Foaly/patch-1
Removed css properties with unneeded prefix.
2017-01-13 12:58:51 -05:00
Foaly
9065bb2eae Removed css properties with unneeded prefix. 2017-01-13 16:28:13 +01:00
Pablo Rodríguez
d659b4068f list item image (fixes #2) 2017-01-05 21:06:05 +01:00
Ben Balter
6f38408cfb Correct stylesheet path in README 2017-01-03 10:23:41 -05:00
Ben Balter
373d035ccc Merge pull request #1 from ousia/patch-1
correct typo inside an url
2016-12-19 11:16:25 -05:00
Pablo Rodríguez
0923dead1d correct typo inside an url 2016-12-18 22:56:40 +01:00
Ben Balter
e33cb20e46 Correct repository URL in Travis badge 2016-12-14 16:46:36 -05:00
Ben Balter
03f6ea83e8 Trigger initial Travis build 2016-12-14 16:39:08 -05:00
25 changed files with 492 additions and 247 deletions

3
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1,3 @@
# Require maintainer's :+1: for changes to the .github/ repo-config files
# mainly due to https://github.com/probot/settings privilege escalation
.github/* @pages-themes/maintainers

20
.github/config.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
# Behaviorbot config. See https://github.com/behaviorbot/ for more information.
# Note: Please Don't edit this file directly.
# Edit https://github.com/pages-themes/maintenance-scripts instead.
# Configuration for update-docs - https://github.com/behaviorbot/update-docs
updateDocsComment: "Thanks for the pull request! If you are making any changes to the user-facing functionality, please be sure to update the documentation in the `README` or `docs/` folder alongside your change. :heart:"
# Configuration for request-info - https://github.com/behaviorbot/request-info
requestInfoReplyComment: Thanks for this. Do you mind providing a bit more information about what problem you're trying to solve?
requestInfoLabelToAdd: more-information-needed
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
#newIssueWelcomeComment: >
# Welcome!
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
newPRWelcomeComment: Welcome! Congrats on your first pull request to the Hacker theme. If you haven't already, please be sure to check out [the contributing guidelines](https://github.com/pages-themes/hacker/blob/master/docs/CONTRIBUTING.md).
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
firstPRMergeComment: "Congrats on getting your first pull request to the Hacker theme merged! Without amazing humans like you submitting pull requests, we couldnt run this project. You rock! :tada:<br /><br />If you're interested in tackling another bug or feature, take a look at [the open issues](https://github.com/pages-themes/hacker/issues), especially those [labeled `help wanted`](https://github.com/pages-themes/hacker/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)."

13
.github/no-response.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
# Configuration for probot-no-response - https://github.com/probot/no-response
# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 14
# Label requiring a response
responseRequiredLabel: more-information-needed
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
This issue has been automatically closed because there has been no response
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further.

31
.github/settings.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
# Repository settings set via https://github.com/probot/settings
repository:
has_issues: true
has_wiki: false
has_projects: false
has_downloads: false
labels:
- name: help wanted
oldname: help-wanted
color: 0e8a16
- name: more-information-needed
color: d93f0b
- name: bug
color: b60205
- name: feature
color: 1d76db
- name: good first issue
color: "5319e7"
# Not currently implemented by probot/settings, but manually implemented in script/deploy
branch_protection:
restrictions: null
enforce_admins: false
required_status_checks:
strict: true
contexts:
- "continuous-integration/travis-ci"
required_pull_request_reviews:
require_code_owner_reviews: true

27
.github/stale.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale Issue or Pull Request is closed
daysUntilClose: 7
# Issues or Pull Requests with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking as stale
staleLabel: wontfix
# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale Issue or Pull Request. Set to `false` to disable
closeComment: false
# Limit to only `issues` or `pulls`
# only: issues

6
.rubocop.yml Normal file
View File

@@ -0,0 +1,6 @@
AllCops:
Exclude:
- _site/**/*
Metrics/LineLength:
Enabled: false

View File

@@ -1,7 +1,6 @@
language: ruby
cache: bundler
sudo: false
rvm: 2.2
rvm: 2.6
install: script/bootstrap
script: script/cibuild

View File

@@ -1,74 +0,0 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at https://github.com/contact/report-abuse. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/

View File

@@ -1,33 +0,0 @@
## Contributing
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
## Submitting a pull request
0. [Fork][fork] and clone the repository
0. Configure and install the dependencies: `script/bootstrap`
0. Make sure the tests pass on your machine: `script/cibuild`
0. Create a new branch: `git checkout -b my-branch-name`
0. Make your change, add tests, and make sure the tests still pass
0. Push to your fork and [submit a pull request][pr]
0. Pat your self on the back and wait for your pull request to be reviewed and merged.
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
- Follow the [style guide][style].
- Write tests.
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
## Resources
- [Contributing to Open Source on GitHub](https://guides.github.com/activities/contributing-to-open-source/)
- [Using Pull Requests](https://help.github.com/articles/using-pull-requests/)
- [GitHub Help](https://help.github.com)
[fork]: https://github.com/pages-themes/hacker/fork
[pr]: https://github.com/pages-themes/hacker/compare
[style]: http://ben.balter.com/jekyll-style-guide/
[code-of-conduct]: CODE_OF_CONDUCT.md

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
source 'https://rubygems.org'
gemspec

View File

@@ -1,10 +1,10 @@
# The Hacker theme
[![Build Status](https://travis-ci.org/pages-themes/jekyll-theme-hacker.svg?branch=master)](https://travis-ci.org/pages-themes/jekyll-theme-hacker) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-hacker.svg)](https://badge.fury.io/rb/jekyll-theme-hacker)
[![Build Status](https://travis-ci.org/pages-themes/hacker.svg?branch=master)](https://travis-ci.org/pages-themes/hacker) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-hacker.svg)](https://badge.fury.io/rb/jekyll-theme-hacker)
*Hacker is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/hacker), or even [use it today](#usage).*
![Thumbnail of hacker](thumbnail.png)
![Thumbnail of Hacker](thumbnail.png)
## Usage
@@ -22,8 +22,6 @@ To use the Hacker theme:
gem "github-pages", group: :jekyll_plugins
```
## Customizing
### Configuration variables
@@ -46,7 +44,7 @@ google_analytics: [Your Google Analytics tracking ID]
If you'd like to add your own custom styles:
1. Create a file called `/assets/css/style.css` in your site
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:
```scss
---
@@ -56,6 +54,8 @@ If you'd like to add your own custom styles:
```
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:
@@ -65,9 +65,26 @@ If you'd like to change the theme's HTML layout:
3. Paste the default layout content copied in the first step
4. Customize the layout as you'd like
### 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](https://github.com/pages-themes/hacker/blob/master/_layouts/default.html) 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:
```yml
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](https://jekyllrb.com/docs/variables/).
## Roadmap
See the [open issues](https://github.com/pagse-themes/hacker/issues) for a list of proposed features (and known issues).
See the [open issues](https://github.com/pages-themes/hacker/issues) for a list of proposed features (and known issues).
## Project philosophy
@@ -75,7 +92,7 @@ The Hacker theme is intended to make it quick and easy for GitHub Pages users to
## Contributing
Interested in contributing to Hacker? We'd love your help. Hacker is an open source project, built one contribution at a time by users like you. See [the CONTRIBUTING file](CONTRIBUTING.md) for instructions on how to contribute.
Interested in contributing to Hacker? We'd love your help. Hacker is an open source project, built one contribution at a time by users like you. See [the CONTRIBUTING file](docs/CONTRIBUTING.md) for instructions on how to contribute.
### Previewing the theme locally

View File

@@ -2,4 +2,4 @@ title: Hacker theme
description: Hacker is a theme for GitHub Pages.
show_downloads: true
google_analytics:
theme:
theme: jekyll-theme-hacker

View File

@@ -1,17 +1,21 @@
<!DOCTYPE html>
<html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
<title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title>
{% seo %}
</head>
<body>
<header>
<div class="container">
<h1>{{ site.title | default: site.github.repository_name }}</h1>
<a id="a-title" href="{{ '/' | relative_url }}">
<h1>{{ site.title | default: site.github.repository_name }}</h1>
</a>
<h2>{{ site.description | default: site.github.project_tagline }}</h2>
<section id="downloads">
@@ -31,15 +35,13 @@
</div>
{% if site.google_analytics %}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("{{ site.google_analytics }}");
pageTracker._trackPageview();
} catch(err) {}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</body>

14
_layouts/post.html Normal file
View File

@@ -0,0 +1,14 @@
---
layout: default
---
<small>{{ page.date | date: "%-d %B %Y" }}</small>
<h1>{{ page.title }}</h1>
<p class="view">by {{ page.author | default: site.author }}</p>
{{content}}
{% if page.tags %}
<small>tags: <em>{{ page.tags | join: "</em> - <em>" }}</em></small>
{% endif %}

View File

@@ -0,0 +1,15 @@
$apple-blossom: #ac4142;
$alto: #d0d0d0;
$bouquet: #aa759f;
$chelsea-cucumber: #90a959;
$cod-grey: #151515;
$conifer: #b5e853;
$dove-grey: #666;
$gallery: #eaeaea;
$grey: #888;
$gulf-stream: #75b5aa;
$hippie-blue: #6a9fb5;
$potters-clay: #8f5536;
$rajah: #f4bf75;
$raw-sienna: #d28445;
$silver-chalice: #aaa;

View File

@@ -1,10 +1,24 @@
@import "rouge-base16-dark";
@import "default_colors";
$body-background: $cod-grey !default;
$body-foreground: $gallery !default;
$header: $conifer !default;
$blockquote-color: $silver-chalice !default;
$blockquote-border: $dove-grey !default;
$container-max-width: 1000px;
@mixin media-max-width($max-width) {
@media (max-width: $max-width) {
@content;
}
}
body {
margin: 0;
padding: 0;
background: #151515 url("../images/bkg.png") 0 0;
color: #eaeaea;
background: $body-background url("../images/bkg.png") 0 0;
color: $body-foreground;
font-size: 16px;
line-height: 1.5;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
@@ -14,7 +28,7 @@ body {
.container {
width: 90%;
max-width: 600px;
max-width: $container-max-width;
margin: 0 auto;
}
@@ -40,7 +54,7 @@ li {
header {
background: rgba(0, 0, 0, 0.1);
width: 100%;
border-bottom: 1px dashed #b5e853;
border-bottom: 1px dashed $conifer; //header;
padding: 20px 0;
margin: 0 0 40px 0;
}
@@ -51,14 +65,18 @@ header h1 {
margin: 0 0 0 -40px;
font-weight: bold;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
color: #b5e853;
color: $conifer;//$header;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
0 0 5px rgba(181, 232, 83, 0.1),
0 0 10px rgba(181, 232, 83, 0.1);
letter-spacing: -1px;
-webkit-font-smoothing: antialiased;
@include media-max-width($container-max-width) {
margin-left: 0;
}
}
header h1:before {
content: "./ ";
font-size: 24px;
@@ -90,7 +108,7 @@ section img {
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
color: #b5e853;
color: $header;
letter-spacing: -0.03em;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
0 0 5px rgba(181, 232, 83, 0.1),
@@ -132,23 +150,13 @@ dt {
}
ul li {
list-style: none;
}
ul li:before {
content: ">>";
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
font-size: 13px;
color: #b5e853;
margin-left: -37px;
margin-right: 21px;
line-height: 16px;
list-style-image:url('../images/bullet.png');
}
blockquote {
color: #aaa;
color: $blockquote-color;
padding-left: 10px;
border-left: 1px dotted #666;
border-left: 1px dotted $blockquote-border;
}
pre {
@@ -158,13 +166,20 @@ pre {
font-size: 16px;
color: #b5e853;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
text-wrap: normal;
word-wrap: normal;
overflow: auto;
overflow-y: hidden;
}
code.highlighter-rouge {
background: rgba(0,0,0,0.9);
border: 1px solid rgba(255, 255, 255, 0.15);
padding: 0px 3px;
margin: 0px -3px;
color: #aa759f;
border-radius: 2px;
}
table {
width: 100%;
margin: 0 0 20px 0;
@@ -247,3 +262,7 @@ a {
.cf {
zoom:1;
}
#a-title {
text-decoration: none;
}

View File

@@ -3,79 +3,85 @@
original base16 by Chris Kempson (https://github.com/chriskempson/base16)
*/
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight, .highlight .w {
color: #d0d0d0;
}
.highlight .err {
color: #151515;
background-color: #ac4142;
}
.highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs {
color: #888;
}
.highlight .cp {
color: #f4bf75;
}
.highlight .nt {
color: #f4bf75;
}
.highlight .o, .highlight .ow {
color: #d0d0d0;
}
.highlight .p, .highlight .pi {
color: #d0d0d0;
}
.highlight .gi {
color: #90a959;
}
.highlight .gd {
color: #ac4142;
}
.highlight .gh {
color: #6a9fb5;
font-weight: bold;
}
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
color: #aa759f;
}
.highlight .kc {
color: #d28445;
}
.highlight .kt {
color: #d28445;
}
.highlight .kd {
color: #d28445;
}
.highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
color: #90a959;
}
.highlight .sr {
color: #75b5aa;
}
.highlight .si {
color: #8f5536;
}
.highlight .se {
color: #8f5536;
}
.highlight .nn {
color: #f4bf75;
}
.highlight .nc {
color: #f4bf75;
}
.highlight .no {
color: #f4bf75;
}
.highlight .na {
color: #6a9fb5;
}
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx {
color: #90a959;
}
.highlight .ss {
color: #90a959;
@import "default_colors";
.highlight {
$plaintext: $alto !default;
$string: $chelsea-cucumber !default;
$literal: $chelsea-cucumber !default;
$keyword: $bouquet !default;
$error-foreground: $cod-grey !default;
$error-background: $apple-blossom !default;
$comment: $grey !default;
$preprocessor: $rajah !default;
$name-space: $rajah !default;
$name-attribute: $hippie-blue !default;
$operator: $rajah !default;
$keyword-type: $raw-sienna !default;
$regex: $gulf-stream !default;
$string-escape: $potters-clay !default;
$deleted: $apple-blossom !default;
$header: $hippie-blue !default;
color: $plaintext;
table td { padding: 5px; }
table pre { margin: 0; }
.w {
color: $plaintext;
}
.err {
color: $error-foreground;
background-color: $error-background;
}
.c, .cd, .cm, .c1, .cs {
color: $comment;
}
.cp {
color: $preprocessor;
}
.o, .ow {
color: $operator;
}
.p, .pi {
color: $plaintext;
}
.gi {
color: $string;
}
.gd {
color: $deleted;
}
.gh {
color: $header;
font-weight: bold;
}
.k, .kn, .kp, .kr, .kv {
color: $keyword;
}
.kc, .kt, .kd {
color: $keyword-type;
}
.s, .sb, .sc, .sd, .s2, .sh, .sx, .s1 {
color: $string;
}
.sr {
color: $regex;
}
.si, .se {
color: $string-escape;
}
.nt, .nn, .nc, .no{
color: $name-space;
}
.na {
color: $name-attribute;
}
.m, .mf, .mh, .mi, .il, .mo, .mb, .mx {
color: $literal;
}
.ss {
color: $string;
}
}

BIN
assets/images/bullet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

46
docs/CODE_OF_CONDUCT.md Normal file
View File

@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at opensource@github.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/

88
docs/CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,88 @@
# Contributing to the Hacker theme
Hi there! We're thrilled that you'd like to contribute to the Hacker theme. Your help is essential for keeping it great.
the Hacker theme is an open source project supported by the efforts of an entire community and built one contribution at a time by users like you. We'd love for you to get involved. Whatever your level of skill or however much time you can give, your contribution is greatly appreciated. There are many ways to contribute, from writing tutorials or blog posts, improving the documentation, submitting bug reports and feature requests, helping other users by commenting on issues, or writing code which can be incorporated into the Hacker theme itself.
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue, assessing changes, and helping you finalize your pull requests.
## Looking for support?
We'd love to help. Check out [the support guidelines](SUPPORT.md).
## How to report a bug
Think you found a bug? Please check [the list of open issues](https://github.com/pages-themes/hacker/issues) to see if your bug has already been reported. If it hasn't please [submit a new issue](https://github.com/pages-themes/hacker/issues/new).
Here are a few tips for writing *great* bug reports:
* Describe the specific problem (e.g., "widget doesn't turn clockwise" versus "getting an error")
* Include the steps to reproduce the bug, what you expected to happen, and what happened instead
* Check that you are using the latest version of the project and its dependencies
* Include what version of the project your using, as well as any relevant dependencies
* Only include one bug per issue. If you have discovered two bugs, please file two issues
* Even if you don't know how to fix the bug, including a failing test may help others track it down
**If you find a security vulnerability, do not open an issue. Please email security@github.com instead.**
## How to suggest a feature or enhancement
If you find yourself wishing for a feature that doesn't exist in the Hacker theme, you are probably not alone. There are bound to be others out there with similar needs. Many of the features that the Hacker theme has today have been added because our users saw the need.
Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and goals of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible, including describing the problem you're trying to solve.
[Open an issue](https://github.com/pages-themes/hacker/issues/new) which describes the feature you would like to see, why you want it, how it should work, etc.
## Your first contribution
We'd love for you to contribute to the project. Unsure where to begin contributing to the Hacker theme? You can start by looking through these "good first issue" and "help wanted" issues:
* [Good first issues](https://github.com/pages-themes/hacker/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) - issues which should only require a few lines of code and a test or two
* [Help wanted issues](https://github.com/pages-themes/hacker/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) - issues which may be a bit more involved, but are specifically seeking community contributions
*p.s. Feel free to ask for help; everyone is a beginner at first* :smiley_cat:
## How to propose changes
Here's a few general guidelines for proposing changes:
* If you are making visual changes, include a screenshot of what the affected element looks like, both before and after.
* Follow the [Jekyll style guide](https://ben.balter.com/jekyll-style-guide).
* If you are changing any user-facing functionality, please be sure to update the documentation
* Each pull request should implement **one** feature or bug fix. If you want to add or fix more than one thing, submit more than one pull request
* Do not commit changes to files that are irrelevant to your feature or bug fix
* Don't bump the version number in your pull request (it will be bumped prior to release)
* Write [a good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
At a high level, [the process for proposing changes](https://guides.github.com/introduction/flow/) is:
1. [Fork](https://github.com/pages-themes/hacker/fork) and clone the project
2. Configure and install the dependencies: `script/bootstrap`
3. Make sure the tests pass on your machine: `script/cibuild`
4. Create a new branch: `git checkout -b my-branch-name`
5. Make your change, add tests, and make sure the tests still pass
6. Push to your fork and [submit a pull request](https://github.com/pages-themes/hacker/compare)
7. Pat your self on the back and wait for your pull request to be reviewed and merged
**Interesting in submitting your first Pull Request?** It's easy! You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)
## Bootstrapping your local development environment
`script/bootstrap`
## Running tests
`script/cibuild`
## Code of conduct
This project is governed by [the Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
## Additional Resources
* [Contributing to Open Source on GitHub](https://guides.github.com/activities/contributing-to-open-source/)
* [Using Pull Requests](https://help.github.com/articles/using-pull-requests/)
* [GitHub Help](https://help.github.com)

9
docs/SUPPORT.md Normal file
View File

@@ -0,0 +1,9 @@
## Where to get help
If you think you've found a bug in the Hacker theme, please [check the existing issues](https://github.com/pages-themes/hacker/issues), and if no one has reported the problem, [open a new issue](https://github.com/pages-themes/hacker/issues/new).
If you have a general question about the theme, how to implement it, or how to customize it for your site you have two options:
1. Search for your query on [`support.github.com`](https://support.github.com/?q=pages+Hacker+theme), which will also look for similar topics on [`github.community`](https://github.community/search?q=pages+Hacker+theme)
2. Ask your question of the Jekyll community on [talk.jekyllrb.com](https://talk.jekyllrb.com/)
3. [Contact GitHub Support](https://github.com/contact?form%5Bsubject%5D=GitHub%20Pages%20theme%20pages-themes/hacker)

View File

@@ -2,25 +2,25 @@
layout: default
---
Text can be **bold**, _italic_, or ~~strikethrough~~.
Text can be **bold**, _italic_, ~~strikethrough~~ or `keyword`.
[Link to another page](another-page).
[Link to another page](./another-page.html).
There should be whitespace between paragraphs.
There should be whitespace between paragraphs. We recommend including a README, or a file with information about your project.
# [](#header-1)Header 1
# Header 1
This is a normal paragraph following a header. GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.
## [](#header-2)Header 2
## Header 2
> This is a blockquote following a header.
>
> When something is important enough, you do it even if the odds are not in your favor.
### [](#header-3)Header 3
### Header 3
```js
// Javascript code with syntax highlighting.
@@ -37,19 +37,19 @@ GitHubPages::Dependencies.gems.each do |gem, version|
end
```
#### [](#header-4)Header 4
#### Header 4
* This is an unordered list following a header.
* This is an unordered list following a header.
* This is an unordered list following a header.
##### [](#header-5)Header 5
##### Header 5
1. This is an ordered list following a header.
2. This is an ordered list following a header.
3. This is an ordered list following a header.
###### [](#header-6)Header 6
###### Header 6
| head1 | head two | three |
|:-------------|:------------------|:------|
@@ -94,11 +94,11 @@ end
### Small image
![](https://assets-cdn.github.com/images/icons/emoji/octocat.png)
![Octocat](https://github.githubassets.com/images/icons/emoji/octocat.png)
### Large image
![](https://guides.github.com/activities/hello-world/branching.png)
![Branching](https://guides.github.com/activities/hello-world/branching.png)
### Definition lists can be used with HTML syntax.

View File

@@ -1,18 +1,22 @@
# encoding: utf-8
# frozen_string_literal: true
Gem::Specification.new do |s|
s.name = "jekyll-theme-hacker"
s.version = "0.0.3"
s.license = "CC0-1.0"
s.authors = ["Jason Costello", "GitHub, Inc."]
s.email = ["opensource+jekyll-theme-hacker@github.com"]
s.homepage = "https://github.com/pages-themes/hacker"
s.summary = "Hacker is a Jekyll theme for GitHub Pages"
s.name = 'jekyll-theme-hacker'
s.version = '0.1.2'
s.license = 'CC0-1.0'
s.authors = ['Jason Costello', 'GitHub, Inc.']
s.email = ['opensource+jekyll-theme-hacker@github.com']
s.homepage = 'https://github.com/pages-themes/hacker'
s.summary = 'Hacker is a Jekyll theme for GitHub Pages'
s.files = `git ls-files -z`.split("\x0").select do |f|
f.match(%r{^((_includes|_layouts|_sass|assets)/|(LICENSE|README)((\.(txt|md|markdown)|$)))}i)
end
s.platform = Gem::Platform::RUBY
s.add_runtime_dependency "jekyll", "~> 3.3"
s.platform = Gem::Platform::RUBY
s.add_runtime_dependency 'jekyll', '> 3.5', '< 5.0'
s.add_runtime_dependency 'jekyll-seo-tag', '~> 2.0'
s.add_development_dependency 'html-proofer', '~> 3.0'
s.add_development_dependency 'rubocop', '~> 0.50'
s.add_development_dependency 'w3c_validators', '~> 1.3'
end

View File

@@ -3,4 +3,7 @@
set -e
bundle exec jekyll build
bundle exec htmlproofer ./_site --check-html --check-sri
bundle exec rubocop -D
bundle exec script/validate-html
gem build jekyll-theme-hacker.gemspec

28
script/validate-html Executable file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'w3c_validators'
def validator(file)
extension = File.extname(file)
if extension == '.html'
W3CValidators::NuValidator.new
elsif extension == '.css'
W3CValidators::CSSValidator.new
end
end
def validate(file)
puts "Checking #{file}..."
path = File.expand_path "../_site/#{file}", __dir__
results = validator(file).validate_file(path)
return puts 'Valid!' if results.errors.empty?
results.errors.each { |err| puts err.to_s }
exit 1
end
validate 'index.html'
validate File.join 'assets', 'css', 'style.css'