Move to Adam's Blog template
This commit is contained in:
8
_includes/analytics.html
Normal file
8
_includes/analytics.html
Normal file
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', '{{ site.analytics }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script> <!-- End Analytics -->
|
||||
29
_includes/author-box.html
Normal file
29
_includes/author-box.html
Normal file
@ -0,0 +1,29 @@
|
||||
<section class="author-box">
|
||||
<img src="{{site.baseurl}}/assets/img/{% if site.author-pic %}{{site.author-pic}}{% endif %}" alt="{{site.author}}" class="author-img">
|
||||
<div class="author-desc">
|
||||
<h2>{{site.author}}</h2>
|
||||
<p>{{site.about-author}}</p>
|
||||
<ul>
|
||||
{% if site.email %}
|
||||
<li class="email"><a href="mailto:{{site.email}}"><i class="fa fa-envelope-o"></i></a></li>
|
||||
{% else %}
|
||||
<li class="email"><a href="mailto:example.adam@blog.com"><i class="fa fa-envelope-o" aria-hidden="true"></i></a></li>
|
||||
{% endif %}
|
||||
{% if site.phone %}
|
||||
<li class="phone"><a href="tel:{{site.phone}}"><i class="fa fa-phone"></i></a></li>
|
||||
{% else %}
|
||||
<li class="phone"><a href="tel:044 825 5523"><i class="fa fa-phone" aria-hidden="true"></i></a></li>
|
||||
{% endif %}
|
||||
{% if site.website %}
|
||||
<li class="website"><a href="http://{{site.website}}" target="_blank"><i class="fa fa-globe"></i></a></li>
|
||||
{% else %}
|
||||
<li class="website"><a href="https://artemsheludko.github.io" target="_blank"><i class="fa fa-globe" aria-hidden="true"></i></a></li>
|
||||
{% endif %}
|
||||
{% if site.twitter %}
|
||||
<li class="twitter"><a href="https://twitter.com/{{site.twitter}}" target="_blank"><i class="fa fa-twitter"></i></a></li>
|
||||
{% else %}
|
||||
<li class="twitter"><a href="https://twitter.com/artemsheludko_" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
16
_includes/disqus.html
Normal file
16
_includes/disqus.html
Normal file
@ -0,0 +1,16 @@
|
||||
<section class="comment-area">
|
||||
<div class="comment-wrapper">
|
||||
{% if site.discus_identifier %}
|
||||
<div id="disqus_thread" class="article-comments"></div>
|
||||
<script>
|
||||
(function() {
|
||||
var d = document, s = d.createElement('script');
|
||||
s.src = '//{{ site.discus_identifier }}.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
{% endif %}
|
||||
</div>
|
||||
</section> <!-- End Comment Area -->
|
||||
5
_includes/footer.html
Normal file
5
_includes/footer.html
Normal file
@ -0,0 +1,5 @@
|
||||
<footer class="main-footer">
|
||||
<div class="copyright">
|
||||
<p>{{site.time | date: '%Y'}} © {{site.author}}</p>
|
||||
</div>
|
||||
</footer> <!-- End Footer -->
|
||||
25
_includes/head.html
Executable file
25
_includes/head.html
Executable file
@ -0,0 +1,25 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{% if page.title %}{{page.title}} - {{site.title}}{% else %}{{site.title}}{% endif %}</title>
|
||||
<meta name="description" content="{{ page.description }}">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta property="og:image" content="">
|
||||
<link rel="shortcut icon" href="{{ "/assets/img/favicon/favicon.ico" | prepend: site.baseurl }}" type="image/x-icon">
|
||||
<link rel="apple-touch-icon" href="{{ "/assets/img/favicon/apple-touch-icon.png" | prepend: site.baseurl }}">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="{{ "/assets/img/favicon/apple-touch-icon-72x72.png" | prepend: site.baseurl }}">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="{{ "/assets/img/favicon/apple-touch-icon-114x114.png" | prepend: site.baseurl }}">
|
||||
<!-- Chrome, Firefox OS and Opera -->
|
||||
<meta name="theme-color" content="#311e3e">
|
||||
<!-- Windows Phone -->
|
||||
<meta name="msapplication-navbutton-color" content="#311e3e">
|
||||
<!-- iOS Safari -->
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="#311e3e">
|
||||
<!-- Google Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet">
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="{{ "/assets/fonts/font-awesome/css/font-awesome.min.css" | prepend: site.baseurl }}">
|
||||
<!-- Styles -->
|
||||
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl }}">
|
||||
</head>
|
||||
20
_includes/header.html
Normal file
20
_includes/header.html
Normal file
@ -0,0 +1,20 @@
|
||||
<header class="main-header">
|
||||
<div class="wrapper">
|
||||
<div class="header-flex">
|
||||
<div class="menu-icon-container">
|
||||
<span class="menu-icon"><i class="fa fa-bars" aria-hidden="true"></i></span>
|
||||
</div>
|
||||
<nav class="main-nav">
|
||||
<span class="menu-icon-close"><i class="fa fa-times" aria-hidden="true"></i></span>
|
||||
<ul>
|
||||
<li><a href="{{site.baseurl}}/about">About</a></li>
|
||||
<li><a href="javascript:invert()">Invert colors</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<p class="logo"><a href="{{site.baseurl}}/">{{ site.author }}</a></p>
|
||||
<div class="search-icon-container">
|
||||
<span class="search-icon"><a><i class="fa fa-search" aria-hidden="true"></i></a></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header> <!-- End Header -->
|
||||
15
_includes/javascripts.html
Executable file
15
_includes/javascripts.html
Executable file
@ -0,0 +1,15 @@
|
||||
<!-- JS -->
|
||||
<script src="{{site.baseurl}}/assets/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="{{site.baseurl}}/assets/js/jekyll-search.js"></script>
|
||||
<script>
|
||||
SimpleJekyllSearch({
|
||||
searchInput: document.getElementById('search-input'),
|
||||
resultsContainer: document.getElementById('results-container'),
|
||||
json: '{{site.baseurl}}/search.json',
|
||||
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}</a></li>',
|
||||
noResultsText: 'No results found',
|
||||
fuzzy: false,
|
||||
exclude: ['Welcome']
|
||||
});
|
||||
</script>
|
||||
<script src="{{site.baseurl}}/assets/js/main.js"></script>
|
||||
13
_includes/newsletter.html
Normal file
13
_includes/newsletter.html
Normal file
@ -0,0 +1,13 @@
|
||||
<div class="newsletter" id="mc_embed_signup">
|
||||
<h2 class="newsletter-title">Newsletter</h2>
|
||||
<div class="form-container">
|
||||
<p>Subscribe here to get our latest updates</p>
|
||||
<form action="//{{ site.mailchimp }}" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
|
||||
<label class="screen-reader-text" for="mce-EMAIL">Email Address</label>
|
||||
<div class="newsletter-box" id="mc_embed_signup_scroll">
|
||||
<input type="email" name="EMAIL" placeholder="Email address" class="email-input" id="mce-EMAIL" required>
|
||||
<input type="submit" value="Subscribe" name="subscribe" class="subscribe-btn" id="mc-embedded-subscribe">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div> <!-- End Newsletter -->
|
||||
8
_includes/pagination.html
Normal file
8
_includes/pagination.html
Normal file
@ -0,0 +1,8 @@
|
||||
<div class="pagination clearfix">
|
||||
{% if paginator.previous_page %}
|
||||
<a href="{{ paginator.previous_page_path }}" class="previous"><i class="fa fa-angle-left" aria-hidden="true"></i> Previous</a>
|
||||
{% endif %}
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path }}" class="next">Next <i class="fa fa-angle-right" aria-hidden="true"></i></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
10
_includes/recent-post.html
Normal file
10
_includes/recent-post.html
Normal file
@ -0,0 +1,10 @@
|
||||
<div class="recent-box">
|
||||
<h2 class="recent-title">Recent post</h2>
|
||||
<div class="recent-list">
|
||||
{% for post in site.posts offset:0 limit:4 %}
|
||||
{% if post.title %}
|
||||
<a href="{{ root_url }}{{ post.url }}" class="recent-item" style="background: url({{"/assets/img/" | prepend: site.baseurl | append : post.img}}) center no-repeat; background-size: cover;"><span>{{ post.title }}</span></a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div> <!-- End Recent-Box -->
|
||||
15
_includes/search.html
Normal file
15
_includes/search.html
Normal file
@ -0,0 +1,15 @@
|
||||
<div class="search-box">
|
||||
<div class="wrapper">
|
||||
<div class="search-grid">
|
||||
<form class="search-form">
|
||||
<div id="search-container">
|
||||
<input type="text" id="search-input" class="search" placeholder="Search">
|
||||
</div>
|
||||
</form>
|
||||
<ul id="results-container" class="results-search"></ul>
|
||||
<div class="icon-close-container">
|
||||
<span class="search-icon-close"><i class="fa fa-times" aria-hidden="true"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user