Jekyll'e taşındı.

This commit is contained in:
afacanc38 2021-10-29 19:08:49 +03:00
commit 66adc361dd
12 changed files with 331 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
*.gem
.bundle
.jekyll-cache
.sass-cache
_site
Gemfile.lock

6
Gemfile Normal file
View File

@ -0,0 +1,6 @@
# frozen_string_literal: true
source "https://rubygems.org"
gemspec
gem "webrick", "~> 1.7"

21
LICENSE.txt Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2021 afacanc38
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.

52
README.md Normal file
View File

@ -0,0 +1,52 @@
# alperen
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
To experiment with this code, add some sample content and run `bundle exec jekyll serve` this directory is setup just like a Jekyll site!
TODO: Delete this and the text above, and describe your gem
## Installation
Add this line to your Jekyll site's `Gemfile`:
```ruby
gem "alperen"
```
And add this line to your Jekyll site's `_config.yml`:
```yaml
theme: alperen
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install alperen
## Usage
TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## Development
To set up your environment to develop this theme, run `bundle install`.
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in `alperen.gemspec` accordingly.
## License
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

29
_layouts/home.html Normal file
View File

@ -0,0 +1,29 @@
---
layout: page
---
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }} | Alperen'in web sitesi</title>
<link rel="stylesheet" href="/assets/style.css">
</head>
<body>
{{ content }}
<h1>Son yazılar</h1>
<ul class="posts">
{% for post in site.posts %}
<a href="{{ post.url }}">
<li>
<h2>{{ post.title }}</h2>
{{ post.excerpt }}
</li>
</a>
{% endfor %}
</ul>
<p class="yok">Başka içerik yok.</p>
</body>
</html>

22
_layouts/page.html Normal file
View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }} | Alperen İsa Nalbant</title>
<link rel="stylesheet" href="/assets/style.css">
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body>
<div id="page-wrapper">
<div class="headerbar">
<a href="/" title="Ana sayfaya dönmek için tıklayın."><i data-feather="home"></i></a><h3>Alperen'in Web Sitesi</h3>
</div>
{{ content }}
</div>
<script>
feather.replace()
</script>
</body>
</html>

18
_layouts/post.html Normal file
View File

@ -0,0 +1,18 @@
---
layout: page
---
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }} | Alperen İsa Nalbant</title>
<link rel="stylesheet" href="/assets/style.css">
</head>
<body>
<h1>{{ page.title }}</h1>
{{ content }}
</body>
</html>

View File

@ -0,0 +1,12 @@
---
layout: post
author: jill
---
A banana is an edible fruit botanically a berry produced by several kinds
of large herbaceous flowering plants in the genus Musa.
In some countries, bananas used for cooking may be called "plantains",
distinguishing them from dessert bananas. The fruit is variable in size, color,
and firmness, but is usually elongated and curved, with soft flesh rich in
starch covered with a rind, which may be green, yellow, red, purple, or brown
when ripe.

View File

@ -0,0 +1,12 @@
---
layout: post
author: jill
---
A banana is an edible fruit botanically a berry produced by several kinds
of large herbaceous flowering plants in the genus Musa.
In some countries, bananas used for cooking may be called "plantains",
distinguishing them from dessert bananas. The fruit is variable in size, color,
and firmness, but is usually elongated and curved, with soft flesh rich in
starch covered with a rind, which may be green, yellow, red, purple, or brown
when ripe.

16
alperen.gemspec Normal file
View File

@ -0,0 +1,16 @@
# frozen_string_literal: true
Gem::Specification.new do |spec|
spec.name = "alperen"
spec.version = "0.1.0"
spec.authors = ["afacanc38"]
spec.email = ["afacanc38@vuhuv.com"]
spec.summary = "."
spec.homepage = ""
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_layouts|_includes|_sass|LICENSE|README|_config\.yml)!i) }
spec.add_runtime_dependency "jekyll", "~> 4.2"
end

133
assets/style.css Normal file
View File

@ -0,0 +1,133 @@
* {
margin: 0;
margin-bottom: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif ;
}
:root {
--rounded-corner: 12px;
--gnomeblue: #1c71d8;
--blue1: rgb(153,193,241);
--blue2: rgb(98,160,234);
--blue3: rgb(53,132,228);
--blue4: rgb(28,113,216);
--blue5: rgb(26,95,180);
--green1: rgb(143,240,164);
--green2: rgb(87,227,137);
--green3: rgb(51,209,122);
--green4: rgb(46,194,126);
--green5: rgb(38,162,105);
--yellow1: rgb(249,240,107);
--yellow2: rgb(248,228,92);
--yellow3: rgb(246,211,45);
--yellow4: rgb(245,194,17);
--yellow5: rgb(229,165,10);
--orange1: rgb(255,190,111);
--orange2: rgb(255,163,72);
--orange3: rgb(255,120,0);
--orange4: rgb(230,97,0);
--orange5: rgb(198,70,0);
--red1: rgb(246,97,81);
--red2: rgb(237,51,59);
--red3: rgb(224,27,36);
--red4: rgb(192,28,40);
--red5: rgb(165,29,45);
--purple1: rgb(220,138,221);
--purple2: rgb(192,97,203);
--purple3: rgb(145,65,172);
--purple4: rgb(129,61,156);
--purple5: rgb(97,53,131);
--brown1: rgb(205,171,143);
--brown2: rgb(181,131,90);
--brown3: rgb(152,106,68);
--brown4: rgb(134,94,60);
--brown5: rgb(99,69,44);
--light1: rgb(255,255,255);
--light2: rgb(246,245,244);
--light3: rgb(222,221,218);
--light4: rgb(192,191,188);
--light5: rgb(154,153,150);
--dark1: rgb(119,118,123);
--dark2: rgb(94,92,100);
--dark3: rgb(61,56,70);
--dark4: rgb(36,31,49);
--dark5: rgb(0,0,0);
--text: #f6f5f4;
}
body {
background: var(--dark3);
color: var(--text);
}
#page-wrapper {
display: flex;
min-height: 100%;
align-content: center;
padding-left: 300px;
padding-right: 300px;
flex-direction: column;
margin: 50px;
}
.posts li {
background: var(--dark2);
padding: 20px;
border-radius: var(--rounded-corner);
list-style-type : none;
transition: 200ms ease-in-out;
border: 0px solid transparent;
margin: 0;
}
.posts {
padding: 0;
}
.posts * {
margin: 0;
margin-bottom: 10px;
}
.posts li {
margin: 20px 0;
}
.posts li h2, .posts a {
margin-bottom: 10px;
color: var(--text);
text-decoration: none;
}
.posts li:hover {
transform: scale(1.05);
margin-bottom: 20px;
border: 5px solid var(--gnomeblue);
}
.headerbar {
display: flex;
flex-direction: row;
}
.headerbar * {
margin-right: 10px;
}
.headerbar a {
color: var(--text);
}
.yok {
color: var(--light5);
}
@media (max-width: 1000px) {
* {
margin: 2px !important;
padding: 5px !important;
}
.headerbar {
align-items: center;
}
}

4
index.md Normal file
View File

@ -0,0 +1,4 @@
---
layout: home
title: Ana Sayfa
---