-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b4e9cd1
Showing
49 changed files
with
3,453 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
_site/ | ||
.sass-cache/ | ||
.jekyll-cache/ | ||
.jekyll-metadata | ||
_drafts | ||
klise-*.gem | ||
Gemfile.lock | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: lost from journey | ||
layout: 404 | ||
permalink: "/404.html" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
appsinacup.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
source "https://rubygems.org" | ||
|
||
# Hello! This is where you manage which Jekyll version is used to run. | ||
# When you want to use a different version, change it below, save the | ||
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: | ||
# | ||
# bundle exec jekyll serve | ||
# | ||
# This will help ensure the proper Jekyll version is running. | ||
# Happy Jekylling! | ||
gem "jekyll", "~> 4.1.0" | ||
|
||
# This is the default theme for new Jekyll sites. You may change this to anything you like. | ||
|
||
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and | ||
# uncomment the line below. To upgrade, run `bundle update github-pages`. | ||
# gem "github-pages", group: :jekyll_plugins | ||
|
||
# If you have any plugins, put them here! | ||
group :jekyll_plugins do | ||
gem 'jekyll-feed', '~> 0.13' | ||
gem 'jekyll-sitemap', '~> 1.4' | ||
gem 'jekyll-compose', '~> 0.12.0' | ||
gem 'jekyll-postfiles', '~> 3.1' | ||
end | ||
|
||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem | ||
# gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] | ||
|
||
# Performance-booster for watching directories on Windows | ||
# gem "wdm", "~> 0.1.0" if Gem.win_platform? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 Mahendrata Harpi | ||
|
||
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: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Apps In A Cup Website | ||
|
||
Usees Klise | ||
# Klisé | ||
|
||
Klisé is minimalist Jekyll theme for running a personal site and blog running on Jekyll.<br> | ||
For demo <a href="https://klise.now.sh" target="_blank" rel="noopener">klise.now.sh</a> | ||
|
||
## Features | ||
|
||
- [x] Light & Dark Mode support :waxing_crescent_moon: | ||
- [x] Customizable (using `.scss`) | ||
- [x] Responsive (desktop, tab and mobile) | ||
- [x] Mobile First Design | ||
- [x] SEO Optimized | ||
- [x] Images of post Organized ([`jekyll-postfiles`](https:/nhoizey/jekyll-postfiles)) | ||
- [x] Generate Sitemap ([`jekyll-sitemap`](https:/jekyll/jekyll-sitemap)) | ||
- [x] RSS Feed ([`jekyll-feed`](https:/jekyll/jekyll-feed)) | ||
- [x] Syntax Highlighter ([`rouge`](https:/rouge-ruby/rouge)) | ||
- [x] Next & Previous Post | ||
- [x] Comment layout, enable in frontmatter if you wish | ||
- [x] Google analytics | ||
- [x] HTML Minify ([`jekyll-compress-html`](https:/penibelst/jekyll-compress-html)) | ||
- [x] W3C **Validated** | ||
- [x] Lighthouse and PageSpeed **Passed** | ||
|
||
![Lighthouse Result](./lighthouse.png) | ||
|
||
## Backlogs | ||
|
||
- [ ] Intergrated with PhotoSwipe. | ||
- [ ] Add schema.org meta information. | ||
- [ ] Transform class selector to BEM metodology. | ||
|
||
## Installation | ||
|
||
Run local server: | ||
|
||
```bash | ||
$ git clone https:/piharpi/jekyll-klise.git | ||
$ cd jekyll-klise | ||
$ bundle install | ||
$ bundle exec jekyll serve | ||
``` | ||
|
||
Navigate to `localhost:4000`. You're Welcome, Fork and be Stargazer. | ||
|
||
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https:/piharpi/jekyll-klise) [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https:/piharpi/jekyll-klise) | ||
|
||
## Limitation | ||
|
||
- Since [`jekyll-postfiles`](https:/nhoizey/jekyll-postfiles#compatibility) plugin isn't supported by github pages, this cause will make your site problems, path broken or post images won't show up, you can host alternatively using likes [netlify.com](https://netlify.com), [vercel.com](https://vercel.com) or [surge.sh](https://surge.sh) services, which support 3rd party. | ||
|
||
## Contributing | ||
|
||
If you see any typos or formatting errors in a post, or want to helping reduce backlogs or any other issue that needs to be addressed, please do not hesitate to open a pull request and fix it!, please read [contributing](./CONTRIBUTING.md) before PR. | ||
|
||
Yeaaa feel free to open a pull request. | ||
## Support | ||
|
||
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W7W7MJ4X) [![saweria.co](./assets/img/saweria-button.png)](https://saweria.co/piharpi) | ||
## License | ||
|
||
This project is open source and available under the [MIT License](LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Site settings | ||
title: Apps In A Cup # site title | ||
description: >- # site description | ||
Apps In A Cup | ||
lang: en-US # default lang | ||
timezone: UTC+1 # set your timezone | ||
image: assets/img/favicon.jpg # This image used for Open Graph more info https://ogp.me/ | ||
mode: dark # default theme "dark" | "light" | ||
|
||
# Profile settings | ||
author: | ||
name: appsinacup # author name | ||
bio: >- # tell to the world | ||
username: appsinacup # general username | ||
twitter: appsinacup # twitter username | ||
email: [email protected] # email adress | ||
avatar: /assets/img/favicon.jpg # change with your own avatar | ||
|
||
# URL settings | ||
url: "https://appsinacup.com/" # | ||
baseurl: | ||
permalink: /:title/ | ||
google_analytics: # leave it blank if not wish | ||
fb_appid: | ||
|
||
# Collection setting | ||
collections: | ||
posts: | ||
output: true | ||
|
||
# Markdown settings | ||
markdown: kramdown | ||
highlighter: rouge | ||
kramdown: | ||
syntax_highlighter: rouge | ||
|
||
# Default front matter | ||
defaults: | ||
- scope: | ||
path: "" | ||
values: | ||
layout: post | ||
comments: false | ||
|
||
# Jekyll Compose default front matter | ||
jekyll_compose: | ||
post_default_front_matter: | ||
modified: | ||
tags: [] | ||
description: | ||
draft_default_front_matter: | ||
modified: | ||
tags: [] | ||
description: | ||
|
||
# Homepage limit posts | ||
number_of_posts: 5 | ||
|
||
# Build settings | ||
# theme: klise | ||
sass: | ||
style: compressed | ||
|
||
include: | ||
- _redirects | ||
- .htaccess | ||
|
||
exclude: | ||
- CNAME | ||
- Gemfile | ||
- Gemfile.lock | ||
- LICENSE | ||
- CHANGELOG.md | ||
- README.md | ||
- node_modules | ||
- CODE_OF_CONDUCT.md | ||
- CONTRIBUTING.md | ||
- lighthouse.png | ||
- klise-*.gem | ||
- klise.gemspec | ||
|
||
# Plugins | ||
plugins: | ||
- jekyll-feed | ||
- jekyll-sitemap | ||
- jekyll-postfiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- title: home | ||
url: / | ||
external: false | ||
|
||
- title: archive | ||
url: /archive/ | ||
external: false | ||
|
||
- title: About | ||
url: /about/ | ||
external: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{% capture headingsWorkspace %} | ||
{% comment %} | ||
Version 1.0.4 | ||
https:/allejo/jekyll-anchor-headings | ||
|
||
"Be the pull request you wish to see in the world." ~Ben Balter | ||
|
||
Usage: | ||
{% include anchor_headings.html html=content %} | ||
|
||
Parameters: | ||
* html (string) - the HTML of compiled markdown generated by kramdown in Jekyll | ||
|
||
Optional Parameters: | ||
* beforeHeading (bool) : false - Set to true if the anchor should be placed _before_ the heading's content | ||
* anchorAttrs (string) : '' - Any custom HTML attributes that will be added to the `<a>` tag; you may NOT use `href`, `class` or `title` | ||
* anchorBody (string) : '' - The content that will be placed inside the anchor; the `%heading%` placeholder is available | ||
* anchorClass (string) : '' - The class(es) that will be used for each anchor. Separate multiple classes with a space | ||
* anchorTitle (string) : '' - The `title` attribute that will be used for anchors | ||
* h_min (int) : 1 - The minimum header level to build an anchor for; any header lower than this value will be ignored | ||
* h_max (int) : 6 - The maximum header level to build an anchor for; any header greater than this value will be ignored | ||
* bodyPrefix (string) : '' - Anything that should be inserted inside of the heading tag _before_ its anchor and content | ||
* bodySuffix (string) : '' - Anything that should be inserted inside of the heading tag _after_ its anchor and content | ||
|
||
Output: | ||
The original HTML with the addition of anchors inside of all of the h1-h6 headings. | ||
{% endcomment %} | ||
|
||
{% assign minHeader = include.h_min | default: 1 %} | ||
{% assign maxHeader = include.h_max | default: 6 %} | ||
{% assign beforeHeading = include.beforeHeading %} | ||
{% assign nodes = include.html | split: '<h' %} | ||
|
||
{% capture edited_headings %}{% endcapture %} | ||
|
||
{% for _node in nodes %} | ||
{% capture node %}{{ _node | strip }}{% endcapture %} | ||
|
||
{% if node == "" %} | ||
{% continue %} | ||
{% endif %} | ||
|
||
{% assign nextChar = node | replace: '"', '' | strip | slice: 0, 1 %} | ||
{% assign headerLevel = nextChar | times: 1 %} | ||
|
||
<!-- If the level is cast to 0, it means it's not a h1-h6 tag, so let's try to fix it --> | ||
{% if headerLevel == 0 %} | ||
{% if nextChar != '<' and nextChar != '' %} | ||
{% capture node %}<h{{ node }}{% endcapture %} | ||
{% endif %} | ||
|
||
{% capture edited_headings %}{{ edited_headings }}{{ node }}{% endcapture %} | ||
{% continue %} | ||
{% endif %} | ||
|
||
{% assign _workspace = node | split: '</h' %} | ||
{% assign _idWorkspace = _workspace[0] | split: 'id="' %} | ||
{% assign _idWorkspace = _idWorkspace[1] | split: '"' %} | ||
{% assign html_id = _idWorkspace[0] %} | ||
|
||
{% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %} | ||
{% assign header = _workspace[0] | replace: _hAttrToStrip, '' %} | ||
|
||
<!-- Build the anchor to inject for our heading --> | ||
{% capture anchor %}{% endcapture %} | ||
|
||
{% if html_id and headerLevel >= minHeader and headerLevel <= maxHeader %} | ||
{% capture anchor %}href="#{{ html_id }}"{% endcapture %} | ||
|
||
{% if include.anchorClass %} | ||
{% capture anchor %}{{ anchor }} class="{{ include.anchorClass }}"{% endcapture %} | ||
{% endif %} | ||
|
||
{% if include.anchorTitle %} | ||
{% capture anchor %}{{ anchor }} title="{{ include.anchorTitle | replace: '%heading%', header }}"{% endcapture %} | ||
{% endif %} | ||
|
||
{% if include.anchorAttrs %} | ||
{% capture anchor %}{{ anchor }} {{ include.anchorAttrs }}{% endcapture %} | ||
{% endif %} | ||
|
||
{% capture anchor %}<a {{ anchor }}>{{ include.anchorBody | replace: '%heading%', header | default: '' }}</a>{% endcapture %} | ||
|
||
<!-- In order to prevent adding extra space after a heading, we'll let the 'anchor' value contain it --> | ||
{% if beforeHeading %} | ||
{% capture anchor %}{{ anchor }} {% endcapture %} | ||
{% else %} | ||
{% capture anchor %} {{ anchor }}{% endcapture %} | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% capture new_heading %} | ||
<h{{ _hAttrToStrip }} | ||
{{ include.bodyPrefix }} | ||
{% if beforeHeading %} | ||
{{ anchor }}{{ header }} | ||
{% else %} | ||
{{ header }}{{ anchor }} | ||
{% endif %} | ||
{{ include.bodySuffix }} | ||
</h{{ _workspace | last }} | ||
{% endcapture %} | ||
{% capture edited_headings %}{{ edited_headings }}{{ new_heading }}{% endcapture %} | ||
{% endfor %} | ||
{% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div class="author"> | ||
<img | ||
class="author-avatar" | ||
src="{{ site.author.avatar }}" | ||
alt="{{ site.author.username }}" | ||
/> | ||
<h2 class="author-name">{{ site.author.name }}</h2> | ||
<p class="author-bio">{{ site.author.bio }}</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- unnecessary file, however you can still use for comment section, e.g disqus --> | ||
<script | ||
src="https://utteranc.es/client.js" | ||
repo="username/reponame" | ||
issue-term="pathname" | ||
label="✨ comment ✨" | ||
theme="github-light" | ||
crossorigin="anonymous" | ||
async | ||
></script> |
Oops, something went wrong.