Skip to content

Commit 26c84bb

Browse files
committed
update layouts
1 parent 7f32bf1 commit 26c84bb

File tree

7 files changed

+126
-9
lines changed

7 files changed

+126
-9
lines changed

_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<link href="https://fonts.googleapis.com/css?family=Raleway:900" rel="stylesheet">
3030
<link href="https://fonts.googleapis.com/css?family=Open+Sans:800" rel="stylesheet">
3131
<link href="https://fonts.googleapis.com/css?family=Alegreya+Sans|Roboto:100,300,400,500,700,900|Source+Sans+Pro:200,300,400,700,900" rel="stylesheet">
32+
<link href="https://fonts.googleapis.com/css?family=PT+Sans|Pavanam|Signika:300" rel="stylesheet">
3233
<link rel="stylesheet" type="text/css" href="/css/main.css">
3334

3435
<!-- Latest compiled and minified CSS -->

_layouts/defaultPost.html

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
8+
9+
{% if page.title %}
10+
<title>{{ page.title }}</title>
11+
12+
{% else %}
13+
<title>{{ site.name }}</title>
14+
15+
{% endif %}
16+
17+
<meta name="description" content="{{ site.description }}">
18+
<link href="https://fonts.googleapis.com/css?family=Alegreya+Sans:100,300,400,900" rel="stylesheet">
19+
<link href="https://fonts.googleapis.com/css?family=Alegreya+Sans|Anton|Bad+Script|Francois+One|Fredoka+One|News+Cycle:700|Old+Standard+TT|Playfair+Display|Pontano+Sans|Satisfy|Unica+One" rel="stylesheet">
20+
<link href="https://fonts.googleapis.com/css?family=PT+Sans|Pavanam|Signika:300" rel="stylesheet">
21+
{% if site.google_verification %}
22+
<meta name="google-site-verification" content="{{ site.google_verify }}">
23+
{% endif %}
24+
25+
<link rel="icon" href="/assets/img/favicon.png">
26+
<link rel="stylesheet"
27+
href="https://fonts.googleapis.com/css?family=Inconsolata:400,700">
28+
<link href="https://fonts.googleapis.com/css?family=Playfair+Display" rel="stylesheet">
29+
<link href="https://fonts.googleapis.com/css?family=Raleway:900" rel="stylesheet">
30+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:800" rel="stylesheet">
31+
<link href="https://fonts.googleapis.com/css?family=Alegreya+Sans|Roboto:100,300,400,500,700,900|Source+Sans+Pro:200,300,400,700,900" rel="stylesheet">
32+
<link rel="stylesheet" type="text/css" href="/css/main.css">
33+
34+
<!-- Latest compiled and minified CSS -->
35+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
36+
37+
38+
<!-- Latest compiled and minified JavaScript -->
39+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
40+
</head>
41+
42+
<body>
43+
44+
45+
<div class="container">
46+
<div class="header">
47+
<div class="title_text">{{ site.title }}</div>
48+
<div class="site-desc-text">{{site.description}}</div>
49+
50+
<nav class="navbar navbar-default">
51+
<div class="container-fluid">
52+
<!-- Brand and toggle get grouped for better mobile display -->
53+
<div class="navbar-header">
54+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
55+
<span class="sr-only">Toggle navigation</span>
56+
<span class="icon-bar"></span>
57+
<span class="icon-bar"></span>
58+
<span class="icon-bar"></span>
59+
</button>
60+
61+
</div>
62+
63+
<!-- Collect the nav links, forms, and other content for toggling -->
64+
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
65+
<ul class="nav navbar-nav navbar-right">
66+
67+
{% for item in site.data.navigation %}
68+
<li>
69+
<a href="{{ item.url }}">{{ item.title }}</a>
70+
</li>
71+
{% endfor %}
72+
73+
</ul>
74+
</div><!-- /.navbar-collapse -->
75+
</div><!-- /.container-fluid -->
76+
</nav>
77+
78+
</div>
79+
{{ content }}
80+
</div>
81+
82+
</body>
83+
84+
</html>

_layouts/post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
layout: default
2+
layout: defaultPost
33
---
44

55

66
<header class="post-header">
77
<center>
8-
<div class="mpost" style="font-size:42px !important;" itemprop="name headline">{{ page.title }}</div>
8+
<div class="mpost-main" itemprop="name headline">{{ page.title }}</div>
99
<p class="mdate"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
1010
</header></center>
1111

File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: post
3+
title: "Creating a To Do App"
4+
date: 2016-09-27 23:34:51 +0530
5+
categories: android
6+
---
7+
8+
Covering a number basic aspects of developing applications with Android.

css/main.css

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,44 @@ font-weight: 100;
6868
.post-main{
6969
padding: 16px;
7070
}
71+
a:focus, a:hover {
72+
color: gray !important;
73+
text-decoration: none !important;
74+
}
7175

76+
a{
77+
color: black !important;
78+
}
7279
.mpost{
73-
color: black;
74-
font-family: "Pontano Sans";
75-
font-size: 22px;
80+
font-family: "Roboto";
81+
font-weight: 900;
82+
font-size: 22px;
83+
color: black !important;
7684
}
85+
.mpost-main{
86+
text-align: center;
87+
font-family: "Roboto";
88+
font-size: 6em !important;
89+
90+
font-weight: 900;
91+
color: black;
7792

93+
padding-bottom: 0.2em;
94+
padding-top: 0.3em;
95+
}
96+
.mdate-main{
97+
font-family: "Roboto";
98+
color: rgb(162, 162, 162);
99+
text-transform: uppercase;
100+
}
78101
.mdate{
79102
font-family: "Roboto";
80103
color: rgb(162, 162, 162);
104+
81105
}
82106

83107
.post-content{
84-
font-family: "Roboto";
85-
font-size: 18px;
86-
font-weight: 500;
108+
font-family: 'Signika';
109+
font-size: 22px;
110+
87111
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1 style='font-family: "Alegreya Sans"; text-transform: uppercase; letter-spaci
1212
<a href="{{ post.url }}">{{ post.title }}</a>
1313
</div>
1414
<div class="mdate">
15-
<span class="date">{{ post.date | date: '%Y %b %d' }}</span>
15+
<span class="date">{{ post.content | strip_html | truncatewords: 7 }}</span>
1616
</div>
1717
</div>
1818

0 commit comments

Comments
 (0)