Skip to content

Commit 968f0cd

Browse files
author
ZoomQuiet
committed
📦 NEW: (ed) jekyll theme try
1 parent 15eca00 commit 968f0cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3639
-96
lines changed

.gitignore

100644100755
+46-96
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,50 @@
1-
.Ulysses*
2-
.DS_Store
3-
4-
# Byte-compiled / optimized / DLL files
5-
__pycache__/
6-
*.py[cod]
7-
*$py.class
8-
9-
# C extensions
10-
*.so
11-
12-
# Distribution / packaging
13-
.Python
14-
env/
15-
build/
16-
develop-eggs/
17-
dist/
18-
downloads/
19-
eggs/
20-
.eggs/
21-
lib/
22-
lib64/
23-
parts/
24-
sdist/
25-
var/
26-
*.egg-info/
27-
.installed.cfg
28-
*.egg
29-
30-
# PyInstaller
31-
# Usually these files are written by a python script from a template
32-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33-
*.manifest
34-
*.spec
35-
36-
# Installer logs
37-
pip-log.txt
38-
pip-delete-this-directory.txt
39-
40-
# Unit test / coverage reports
41-
htmlcov/
42-
.tox/
43-
.coverage
44-
.coverage.*
45-
.cache
46-
nosetests.xml
47-
coverage.xml
48-
*,cover
49-
.hypothesis/
50-
51-
# Translations
52-
*.mo
53-
*.pot
54-
55-
# Django stuff:
1+
# Ignore docs files
2+
_gh_pages
3+
_site
4+
.ruby-version
5+
6+
# Numerous always-ignore extensions
7+
*.diff
8+
*.err
9+
*.orig
5610
*.log
57-
local_settings.py
58-
59-
# Flask stuff:
60-
instance/
61-
.webassets-cache
62-
63-
# Scrapy stuff:
64-
.scrapy
11+
*.rej
12+
*.swo
13+
*.swp
14+
*.zip
15+
*.vi
16+
*.gem
17+
*~
6518

66-
# Sphinx documentation
67-
docs/_build/
19+
# POSSIBLE ENVIRONMENTS
6820

69-
# PyBuilder
70-
target/
71-
72-
# IPython Notebook
73-
.ipynb_checkpoints
74-
75-
# pyenv
76-
.python-version
77-
78-
# celery beat schedule file
79-
celerybeat-schedule
80-
81-
# dotenv
82-
.env
83-
84-
# virtualenv
85-
venv/
86-
ENV/
87-
88-
# Spyder project settings
89-
.spyderproject
90-
91-
# Rope project settings
92-
.ropeproject
93-
94-
# mac
21+
# OS or Editor folders
9522
.DS_Store
96-
97-
98-
# 13416136446 text editer file
99-
.Ulysses-favorites.plist
100-
.Ulysses-Group.plist
23+
._*
24+
Thumbs.db
25+
.cache
26+
.project
27+
.settings
28+
.tmproj
29+
*.esproj
30+
nbproject
31+
*.sublime-project
32+
*.sublime-workspace
33+
.idea
34+
35+
# Komodo
36+
*.komodoproject
37+
.komodotools
38+
39+
# grunt-html-validation
40+
validation-status.json
41+
validation-report.json
42+
43+
# Folders to ignore
44+
node_modules
45+
bower_components
46+
47+
# Recommended in Ben Balter's Jekyll Style Guide
48+
.sass-cache
49+
.jekyll-metadata
50+
Gemfile.lock

.travis.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: ruby
2+
rvm:
3+
- 2.2.2
4+
5+
6+
# Assume bundler is being used, therefore
7+
# the `install` step will run `bundle install` by default.
8+
9+
script:
10+
- bundle exec jekyll build -d _site/ed
11+
- bundle exec htmlproofer ./_site --only-4xx --check-favicon --check-html
12+
13+
14+
# branch whitelist, only for GitHub Pages
15+
branches:
16+
only:
17+
- master # test the gh-pages branch
18+
- /pages-(.*)/ # test every branch which starts with "pages-"
19+
20+
env:
21+
global:
22+
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
23+
24+
sudo: false # route your build to the container-based infrastructure for a faster build
25+
26+
cache: bundler

404.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: default
3+
title: "404: Page not found"
4+
permalink: 404.html
5+
---
6+
7+
<div class="page">
8+
<h1 class="page-title">404: Page not found</h1>
9+
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}/">Head back home</a> to try finding it again.</p>
10+
</div>

404.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: default
3+
title: "404: Page not found"
4+
permalink: 404.html
5+
---
6+
7+
# 404: Page not found
8+
9+
Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. [Head back home]({{ site.baseurl }}) to try finding it again.

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
gemspec
3+
4+
gem "html-proofer"

LICENSE.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Released under an MIT License
2+
3+
Copyright (c) 2016 Alex Gil.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10+
11+
*This project incorporates code covered by the following terms:*
12+
13+
Copyright (c) 2014 Mark Otto.
14+
15+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16+
17+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

_config.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Built with Jekyll 3.2.0
2+
3+
# Setup
4+
title: Ed.
5+
tagline: 'a jekyll theme for minimal editions'
6+
description: 'Ed is a Jekyll theme designed for textual editors based on minimal computing principles, and focused on legibility and flexibility.'
7+
#url: 'http://minicomp.github.io'
8+
baseurl: '/km'
9+
10+
# About/contact
11+
author:
12+
name: Alex Gil
13+
url: https://twitter.com/elotroalex
14+
15+
16+
# Color scheme. Options: red, orange, magenta, cyan, blue, brown
17+
color-scheme:
18+
19+
# Permalinks
20+
permalink: pretty
21+
permalink: /:title/
22+
23+
# Set encoding to UTF-8
24+
encoding: utf-8
25+
26+
# Collections for texts
27+
collections:
28+
texts:
29+
output: true
30+
31+
# Markdown specs
32+
markdown: kramdown
33+
34+
kramdown:
35+
auto_ids: true
36+
footnote_nr: 1
37+
entity_output: as_char
38+
footnote_backlink: "&#x21a9;&#xfe0e;"
39+
toc_levels: 1..6
40+
smart_quotes: lsquo,rsquo,ldquo,rdquo
41+
enable_coderay: false
42+
43+
# Exclusions from the final site
44+
exclude:
45+
- optional
46+
- vendor
47+
48+
# Theme
49+
theme: "ed."

_includes/head.html

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<head>
2+
<!-- Canonical link to help search engines -->
3+
<link rel="canonical" href="{{ site.baseurl }}{{ page.url }}" />
4+
5+
<!-- Basic meta elements -->
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
7+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
8+
9+
<!-- Enable responsiveness on mobile devices -->
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
11+
12+
<!-- Dublin Core metadata for Zotero -->
13+
<meta name="DC.title" content="{{ page.title }}" />
14+
<meta name="DC.creator" content="{{ page.author }}" />
15+
<meta name="DC.contributor" content="{{ page.editor }}" />
16+
<meta name="DC.date" content="{{ page.publication-date }}" />
17+
<meta name="DC.rights" content="{{ page.rights }}" />
18+
<meta name="DC.source" content="{{ site.title }}" />
19+
20+
<!-- Open Graph metadata -->
21+
{% if page.layout == "default" %}
22+
<meta property="og:title" content="{{page.title}}" />
23+
<meta property="og:description" content="{{site.description}}">
24+
<meta property="fb:admins" content="elotroalex" />
25+
<meta property="og:type" content="website" />
26+
<meta property="og:url" content="{{site.url}}{{site.baseurl}}{{page.url}}" />
27+
<meta property="fb:app_id" content="589495744558280" />
28+
<meta property="og:image" content="{{site.url}}{{site.baseurl}}/assets/open-graph-logo.png" />
29+
<meta property="og:image:width" content="200" />
30+
<meta property="og:image:height" content="200" />
31+
32+
{% else %}
33+
<meta property="og:title" content="{{page.title}}" />
34+
<meta property="og:description" content="An Ed edition">
35+
<meta property="fb:admins" content="elotroalex" />
36+
<meta property="og:type" content="article" />
37+
<meta property="og:url" content="{{site.url}}{{site.baseurl}}{{page.url}}" />
38+
<meta property="fb:app_id" content="589495744558280" />
39+
<meta property="og:image" content="{{site.url}}{{site.baseurl}}/assets/open-graph-logo.png" />
40+
<meta property="og:image:width" content="200" />
41+
<meta property="og:image:height" content="200" />
42+
{% endif %}
43+
44+
<title>
45+
{% if page.title == "Home" %}
46+
{{ site.title }}
47+
{% else %}
48+
{{ page.title }}
49+
{% endif %}
50+
</title>
51+
52+
<!-- CSS link -->
53+
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/style.css" />
54+
55+
<!-- Icons -->
56+
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="{{ site.baseurl }}/assets/apple-touch-icon-precomposed.png" />
57+
<link rel="shortcut icon" href="{{ site.baseurl }}/assets/favicon.ico" />
58+
59+
<!-- RSS -->
60+
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ site.baseurl }}/atom.xml" />
61+
</head>

_includes/sidebar-toc.html

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
Target for toggling the sidebar `.sidebar-checkbox` is for regular styles, `#sidebar-checkbox` for
3+
behavior.
4+
-->
5+
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">
6+
7+
<!-- Toggleable sidebar -->
8+
<div class="sidebar" id="sidebar">
9+
<div class="sidebar-item">
10+
<p>{{ page.title }}</p>
11+
</div>
12+
13+
<nav class="sidebar-nav">
14+
<a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ site.baseurl }}/">Home</a>
15+
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="#" data-proofer-ignore>Return to Top</a>
16+
{% for node in page.toc %}
17+
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %} sidebar-nav-item-toc" href="#{{ node | slugify }}">{{ node }}</a>
18+
{% endfor %}
19+
</nav>
20+
21+
<div class="sidebar-item">
22+
<p>
23+
Edited by {{ page.editor }}, {{ site.time | date: '%Y' }}.
24+
</p>
25+
</div>
26+
</div>

0 commit comments

Comments
 (0)