Skip to content

Commit 8e5fed7

Browse files
committed
Implement custom blog theme
Signed-off-by: Elmurod Talipov <elmurod.talipov@gmail.com>
1 parent acedfc9 commit 8e5fed7

323 files changed

Lines changed: 66400 additions & 1112 deletions

File tree

Some content is hidden

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

Gemfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
source "https://rubygems.org"
2-
gemspec
1+
source 'http://rubygems.org'
2+
3+
gem "jekyll"
4+
gem "jekyll-paginate"
5+
gem "jekyll-feed"
6+
gem "jekyll-gist"
7+
gem "support-for"

_config.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
title: elmurod.net
2-
description: software engineer notes
2+
description: software engineer's notes
33

44
url: https://elmurod.net
5-
baseurl: "/"
5+
baseurl: ""
66
paginate_path: "blog/page:num/"
77
permalink: blog/:title/
88

@@ -23,18 +23,21 @@ plugins:
2323

2424
paginate: 5
2525

26-
#navigation:
27-
# - title: Home
28-
# url: /index.html
29-
# - title: About
30-
# url: /about
31-
# - title: Contact
32-
# url: /contact
26+
navigation:
27+
- title: Home
28+
url: /index.html
29+
icon: fa-home
30+
- title: About
31+
url: /about
32+
icon: fa-user
33+
# - title: Blog
34+
# url: /posts
35+
# icon: fa-bookmark
3336

3437
social:
3538
github: smartnode
3639
twitter: vorsagref
37-
facebook: elmurod.talipov
40+
linkedin: elmurod-talipov-0a730460
3841
email: elmurod.talipov@gmail.com
3942

4043
google_analytics: "UA-24495574-1"

_includes/footer.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!--footer class="footer text-center py-2 theme-bg-dark">
2+
<small class="copyright">Developed by <a href="https://elmurod.net" target="_blank">Elmurod Talipov</a></small>
3+
</footer-->
4+
</body>

_includes/google_analytics.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6+
7+
ga('create', '{{ site.google_analytics }}', 'auto');
8+
ga('send', 'pageview');
9+
10+
</script>

_includes/head.html

Lines changed: 0 additions & 27 deletions
This file was deleted.

_includes/header.html

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<head>
2+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
3+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
4+
<link href="http://gmpg.org/xfn/11" rel="profile">
5+
<meta name="description" content="{{ site.description }}">
6+
7+
<!-- Enable responsiveness on mobile devices-->
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
9+
10+
<title>
11+
{% if page.title == "Home" %}
12+
{{ site.title }} &middot; {{ site.tagline }}
13+
{% else %}
14+
{{ page.title }} &middot; {{ site.title }}
15+
{% endif %}
16+
</title>
17+
18+
<!-- CSS -->
19+
<link id="theme-style" rel="stylesheet" href="{{ "/assets/css/theme-2.css" | prepend: site.baseurl }}">
20+
21+
<!-- Icons -->
22+
<link rel="shortcut icon" href="{{ "/assets/favicon.ico" | prepend: site.baseurl }}">
23+
24+
<!-- RSS -->
25+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}"
26+
href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
27+
{% if site.google_analytics %} {% include google_analytics.html %} {% endif %}
28+
</head>
29+
30+
<body>
31+
<header class="header text-center">
32+
<h1 class="blog-name pt-lg-4 mb-0"><a href="{{ site.baseurl }}/">{{ site.title }}</a></h1>
33+
<nav class="navbar navbar-expand-lg navbar-dark">
34+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation"
35+
aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
36+
<span class="navbar-toggler-icon"></span>
37+
</button>
38+
<div id="navigation" class="collapse navbar-collapse flex-column">
39+
<div class="profile-section pt-3 pt-lg-0">
40+
<img class="profile-image mb-3 rounded-circle mx-auto"
41+
src="{{ "/assets/images/profile.png" | prepend: site.baseurl }}" alt="image">
42+
<div class="bio mb-3">I am Elmurod Talipov, a system software engineer.<br><a href="/about">Find out more
43+
about me</a></div>
44+
<!--//bio-->
45+
<ul class="social-list list-inline py-3 mx-auto">
46+
<li class="list-inline-item"><a href="https://twitter.com/{{ site.social.twitter }}"><i
47+
class="fab fa-twitter fa-fw"></i></a></li>
48+
<li class="list-inline-item"><a href="https://www.linkedin.com/in/{{ site.social.linkedin }}"><i
49+
class="fab fa-linkedin-in fa-fw"></i></a></li>
50+
<li class="list-inline-item"><a href="https://github.com/{{ site.social.github }}"><i
51+
class="fab fa-github-alt fa-fw"></i></a></li>
52+
</ul>
53+
<!--//social-list-->
54+
<hr>
55+
</div>
56+
<!--//profile-section-->
57+
<ul class="navbar-nav flex-column text-left">
58+
{% for link in site.navigation %}
59+
{% assign current = nil %}
60+
{% assign active = nil %}
61+
{% if page.url contains link.url or forloop.first and page.url == '/' or page.url == 'index.html' %}
62+
{% assign current = 'current' %}
63+
{% assign active = 'active' %}
64+
{% endif %}
65+
<li class="nav-item {% if forloop.first %}first{% endif %} {{ active }} {% if forloop.last %}last{% endif %}">
66+
<a class="nav-link" href="{{ link.url | prepend: site.baseurl }}">
67+
<i class="fas {{ link.icon }} fa-fw mr-2"></i>{{ link.title }}{% if current %}
68+
<span class="sr-only">({{ current }})</span>{% endif %}
69+
</a>
70+
</li>
71+
{% endfor %}
72+
</ul>
73+
74+
<div class="my-2 my-md-3">
75+
<a class="btn btn-primary" href="mailto:{{ site.social.email }}" target="_blank">Get in Touch</a>
76+
</div>
77+
</div>
78+
</nav>
79+
</header>

_includes/scripts.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- FontAwesome JS-->
2+
<script defer src="https://use.fontawesome.com/releases/v5.7.1/js/all.js"
3+
integrity="sha384-eVEQC9zshBn0rFj4+TU78eNA19HMNigMviK/PU/FFjLXqa/GKPgX58rvt5Z8PLs7" crossorigin="anonymous">
4+
</script>
5+
6+
<!-- Javascript -->
7+
<script src="{{ "/assets/plugins/jquery-3.3.1.min.js" | prepend: site.baseurl }}"></script>
8+
<script src="{{ "/assets/plugins/popper.min.js" | prepend: site.baseurl }}"></script>
9+
<script src="{{ "/assets/plugins/bootstrap/js/bootstrap.min.js" | prepend: site.baseurl }}"></script>

_includes/sidebar.html

Lines changed: 0 additions & 31 deletions
This file was deleted.

_layouts/default.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE html>
22
<html lang="en-us">
3-
{% include head.html %}
4-
<body>
5-
{% include sidebar.html %}
6-
<div class="content container">
7-
{{ content }}
8-
</div>
9-
</body>
10-
</html>
3+
{% include header.html %}
4+
<div class="main-wrapper">
5+
{{ content }}
6+
</div>
7+
{% include footer.html %}
8+
{% include scripts.html %}
9+
10+
</html>

_layouts/page.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
layout: default
33
---
44

5-
<div class="page">
6-
<h1 class="page-title">{{ page.title }}</h1>
7-
{{ content }}
8-
</div>
5+
<article class="about-section py-5">
6+
<div class="container" style="text-align: justify;">
7+
<h1 class="title mb-3">{{ page.title }}</h1>
8+
{{ content }}
9+
</div>
10+
</article>

0 commit comments

Comments
 (0)