Skip to content

Commit b96e21d

Browse files
committed
UI changes. Made 2 color theme. + other minor changes: added cover image, tag page header, author page header and other changes.
1 parent e22ad8f commit b96e21d

File tree

12 files changed

+318
-110
lines changed

12 files changed

+318
-110
lines changed

example/.env.development

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
DISQUS_SHORTNAME=
2-
FORM_URL=http://localhost:3000/api/project/5e81b8923d8c2d64d8549add/forms
1+
GATSBY_DISQUS_SHORTNAME=built-with-draftbox
2+
GATSBY_FORM_URL=http://localhost:3000/api/project/5e81b8923d8c2d64d8549add/forms
33
GATSBY_FB_APP_ID=

example/.env.production

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
DISQUS_SHORTNAME=
2-
FORM_URL=http://localhost:3000/api/project/5e81b8923d8c2d64d8549add/forms
3-
FB_APP_ID=
1+
GATSBY_DISQUS_SHORTNAME=built-with-draftbox
2+
GATSBY_FORM_URL=http://localhost:3000/api/project/5e81b8923d8c2d64d8549add/forms
3+
GATSBY_FB_APP_ID=

example/site-config.js

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,18 @@ module.exports = {
110110
fontDisplay: "swap",
111111
strategy: "selfHosted",
112112
},
113+
{
114+
family: "Source Code Pro",
115+
variants: ["400", "700"],
116+
fontDisplay: "swap",
117+
strategy: "selfHosted",
118+
},
113119
],
114120
variables: [
121+
{
122+
varName: "--page-background",
123+
value: "#ede6dd",
124+
},
115125
{
116126
varName: "--primary-font",
117127
value: "Libre Baskerville",
@@ -126,8 +136,25 @@ module.exports = {
126136
},
127137
{
128138
varName: "--primary-color",
129-
value: "#404040",
139+
value: "#438d8d",
140+
},
141+
{
142+
varName: "--secondary-font",
143+
value: "Source Code Pro",
130144
},
145+
{
146+
varName: "--secondary-font-normal",
147+
value: "400",
148+
},
149+
{
150+
varName: "--secondary-font-bold",
151+
value: "700",
152+
},
153+
{
154+
varName: "--secondary-color",
155+
value: "#5e4f40",
156+
},
157+
131158
],
132159
},
133160
};

gatsby-wordpress-theme-libre/gatsby-node.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
332332
component: pageTemplate,
333333
context: {
334334
slug: page.node.slug,
335+
subscribeWidget: subscribeWidget,
335336
},
336337
});
337338
});

gatsby-wordpress-theme-libre/src/components/navbar.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ const Navbar = () => {
7474
}, []);
7575

7676
return (
77+
<>
78+
<Link to="/" rel="home">
79+
<img src="https://defaultcustomheadersdata.files.wordpress.com/2016/07/design2.jpg?resize=1088,300" width="1088" height="300" alt="" className="custom-header" />
80+
</Link>
7781
<header id="masthead" className="site-header" role="banner">
7882
<div className="site-branding">
7983
<h1 className="site-title">
@@ -273,6 +277,7 @@ const Navbar = () => {
273277
</nav>
274278
</div>
275279
</header>
280+
</>
276281
);
277282
};
278283

gatsby-wordpress-theme-libre/src/components/post-card.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,12 @@ const PostCard = ({ index, node }) => {
8888
Posted in{" "}
8989
{node.tags.map((tag, index, arr) => {
9090
return (
91-
<Link to={`/tag/${tag.slug}`} key={index} rel="tag">
92-
{tag.name} {index !== arr.length - 1 && ", "}
93-
</Link>
91+
<>
92+
<Link to={`/tag/${tag.slug}`} key={index} rel="tag">
93+
{tag.name}
94+
</Link>
95+
{index !== arr.length - 1 && ", "}
96+
</>
9497
);
9598
})}
9699
</span>

0 commit comments

Comments
 (0)