Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Project
_site
.sass-cache

# Linux / Unix
!.gitkeep
!.gitignore
*~

# Mac OS
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.Spotlight-V100
.Trashes

# Windows
Thumbs.db
Desktop.ini
7 changes: 7 additions & 0 deletions 404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: 404 Not Found
permalink: /404.html
layout: page
---

<p>Страница не найдена. <a href="{{ site.baseurl }}/">Вернуться на главную &rarr;</a></p>
5 changes: 5 additions & 0 deletions _config.local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# URL
baseurl: ""
# URL for static files
assets_url: "/assets"
pictures_url: "/pictures"
40 changes: 40 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Basic
name: "Web технологии"

# URL
baseurl: "/tp-stepic"
permalink: /:title/

# Markdown
markdown: kramdown

# Sass
sass:
style: :compressed

# URL for static files
assets_url: "/tp-stepic/assets"
pictures_url: "/tp-stepic/pictures"

# these files will be copied to destination
keep_files: ["assets", "node_modules", "pdf", "pictures"]

# Collections
collections:
lessons:
output: true
permalink: /:name/

# Scopes
defaults:
-
scope:
path: ""
type: "lessons"
values:
layout: "lesson"

# Site info
author:
name: "Дмитрий Смаль"
url: "https://github.com/mialinx/"
43 changes: 43 additions & 0 deletions _layouts/lesson.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE HTML>
<html>
<head>
<title>{{ site.name }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=792, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="{{ site.baseurl }}/node_modules/shower-bright/styles/screen.css">
<link rel="stylesheet" href="{{ site.assets_url }}/css/highlight/github.css">
<link rel="stylesheet" href="{{ site.assets_url }}/css/lesson.css">
</head>
<body class="list">
<header class="caption">
<h1><a class="link-no-line link-no-color" href="{{ site.baseurl }}/">{{ site.name }}</a></h1>
<p>
{% comment %} prev/next page [hack for old jekyll v2.4.0 on GH pages] {% endcomment %}
{% assign lessons = site.lessons | sort:'num' %}

{% for lesson in lessons %}{% if lesson.num == page.num %}

{% unless forloop.first%}{% assign prev_i = forloop.index0 | minus: 1 %}
<a class="link-no-line" href="{{ site.baseurl }}{{ lessons[prev_i].url }}" title="{{ lessons[prev_i].num }}. {{ lessons[prev_i].title }}">&larr;</a>
{% endunless %}

{{ page.num }}. {{ page.title }}

{% unless forloop.last %}{% assign next_i = forloop.index0 | plus: 1 %}
<a class="link-no-line" href="{{ site.baseurl }}{{ lessons[next_i].url }}" title="{{ lessons[next_i].num }}. {{ lessons[next_i].title }}">&rarr;</a>
{% endunless %}

{% endif %}{% endfor %}
</p>
<p><a href="{{ site.author.url }}">{{ site.author.name }}</a></p>
</header>

{{ content }}

<div class="progress"><div></div></div>
<script src="{{ site.assets_url }}/js/highlight.pack.js"></script>
<script src="{{ site.baseurl }}/node_modules/shower-core/shower.min.js"></script>
<script src="{{ site.assets_url }}/js/init.js"></script>
</body>
</html>
22 changes: 22 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.name }}{% endif %}</title>
<link rel="stylesheet" href="{{ site.assets_url }}/css/page.css">
</head>
<body>
<div class="container">
<header class="masthead">
<h1 class="masthead-title">
<a href="{{ site.baseurl }}/">{{ site.name }}</a>
</h1>
<nav class="masthead-nav">
<a href="{{ site.author.url }}">{{ site.author.name }}</a>
</nav>
</header>
{{ content }}
</div>
</body>
</html>
Loading