Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta tags change #20

Merged
merged 55 commits into from
Dec 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
141431c
restructuring
dparkar Dec 13, 2017
532ac04
clean up
dparkar Dec 13, 2017
9f3f3c4
removing unneccessary css
dparkar Dec 13, 2017
5986e34
cleaning out controls
dparkar Dec 14, 2017
5487d0a
css and clean up
dparkar Dec 14, 2017
eb03852
fixing # issue in link
dparkar Dec 14, 2017
6cdef27
adding share counts
dparkar Dec 14, 2017
69bbede
remove disqus
dparkar Dec 19, 2017
76db302
centering videos
dparkar Dec 19, 2017
02a4469
removing center tags
dparkar Dec 19, 2017
f787e73
updating manifest
dparkar Dec 21, 2017
31967c3
adding fontawesome
dparkar Dec 21, 2017
b574908
working menu
dparkar Dec 21, 2017
17374ea
changing fonts for share
dparkar Dec 21, 2017
86c1103
share from anywhere
dparkar Dec 21, 2017
67b5923
adding about page
dparkar Dec 21, 2017
50cfbed
adding wait graphs
dparkar Dec 21, 2017
5f6060b
making both waits similar
dparkar Dec 21, 2017
f5501a5
adding back disqus
dparkar Dec 21, 2017
a6ca0f3
border radius and disqus title
dparkar Dec 21, 2017
11591a6
border radius
dparkar Dec 21, 2017
35177ad
removing prints
dparkar Dec 21, 2017
99f5a16
centering waiter
dparkar Dec 22, 2017
63a6361
increasing title size
dparkar Dec 22, 2017
3dce2d5
changing hover behavior
dparkar Dec 22, 2017
5cde00a
adding tags and changing behavior
dparkar Dec 22, 2017
71f8f44
adding tags
dparkar Dec 22, 2017
055444e
removing react-tag-input
dparkar Dec 22, 2017
7e86f2e
tags reload
dparkar Dec 22, 2017
082642b
enabling routing back to logs if in tagged mode
dparkar Dec 22, 2017
799cb52
ensuring encoding and tags design
dparkar Dec 22, 2017
8edf14d
testing direct youtube embedd
dparkar Dec 22, 2017
56fa7e6
testing video dims
dparkar Dec 22, 2017
41603e2
testing video dims
dparkar Dec 22, 2017
9795eef
testing video embedd
dparkar Dec 22, 2017
d34cabb
iframe align center
dparkar Dec 22, 2017
0949f77
iframe align middle
dparkar Dec 22, 2017
dea3c73
iframe css
dparkar Dec 22, 2017
02e83bd
textalign iframe
dparkar Dec 22, 2017
33eab69
media classname
dparkar Dec 22, 2017
f6b4a32
centering video
dparkar Dec 22, 2017
e7cfb50
seperating tags and autoscrolling
dparkar Dec 22, 2017
763a416
adding onhover for about
dparkar Dec 22, 2017
c86ca5b
switching back to read from master
dparkar Dec 22, 2017
e9aa35c
removing unused react-floating-button-menu
dparkar Dec 22, 2017
0e3223f
Merge branch 'master' of https://github.com/dparkar/blog-react into d…
dparkar Dec 22, 2017
18a96b5
renaming back to cs
dparkar Dec 22, 2017
38e9e65
using metatags
dparkar Dec 22, 2017
2412116
adding metatags to major jsxs
dparkar Dec 22, 2017
2f330ba
removing react-meta-tags
dparkar Dec 22, 2017
75406e8
formatting meta tags
dparkar Dec 22, 2017
ff3f527
correcting indices for meta
dparkar Dec 22, 2017
0f5fce8
updating meta in all jsx
dparkar Dec 22, 2017
c2488f1
updating meta in err
dparkar Dec 22, 2017
21d1302
correcting meta
dparkar Dec 22, 2017
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
6 changes: 3 additions & 3 deletions content/logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{
"key":-5,
"datetime":"2010-05-17T18:42:00.000Z",
"title":"c#_unit_testing_private_methods",
"title":"cs_unit_testing_private_methods",
"tags":["c#","unit-tests"]
},
{
Expand All @@ -56,13 +56,13 @@
{
"key":-7,
"datetime":"2010-04-26T07:45:00.000Z",
"title":"c#_unit_testing_ftp_with_resource_files",
"title":"cs_unit_testing_ftp_with_resource_files",
"tags":["c#","unit-tests","ftp"]
},
{
"key":-8,
"datetime":"2010-03-08T21:02:00.000Z",
"title":"c#_hostname_machinename_ipaddress",
"title":"cs_hostname_machinename_ipaddress",
"tags":["c#"]
},
{
Expand Down
29 changes: 13 additions & 16 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<meta name="theme-color" content="#000000"/>
<!-- OG -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="dplogs"/>
<meta property="og:title" content="dhawal parkar logs ..." />
<meta property="og:url" content="http://dplogs.com" />
<meta property="og:image" content="https://dplogscontent.blob.core.windows.net/dplogs/metaimage_250_250.png" />
<meta property="og:image:alt" content="dplogs" />
<meta property="og:image:width" content="250" />
<meta property="og:image:height" content="250" />
<meta property="og:description" content="Artificial Intelligence and Robotics" />
<!-- Facebook OG -->
<meta property="fb:app_id" content="367989410291145" />
<!-- Twitter OG -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@dparkar" />
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
Expand All @@ -35,7 +20,19 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->

<title>logs | dhawal parkar</title>
<meta property="og:title" content="logs | dhawal parkar"/>
<meta property="og:url" content="http://dplogs.com"/>
<meta property="og:description" content="Artificial Intelligence and Robotics"/>
<meta property="og:type" content="website" />
<meta property="og:site_name" content="dplogs"/>
<meta property="og:image" content="https://dplogscontent.blob.core.windows.net/dplogs/metaimage_250_250.png"/>
<meta property="og:image:alt" content="dplogs" />
<meta property="og:image:width" content="250" />
<meta property="og:image:height" content="250" />
<meta property="fb:app_id" content="367989410291145" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@dparkar" />

<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
Expand Down
25 changes: 6 additions & 19 deletions src/About/about.jsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
import React from 'react';
import { TrackedComponent } from 'react-appinsights';
import FontAwesome from 'react-fontawesome';

import './about.css';

export default class About extends TrackedComponent {
render() {
document.title = 'about | dhawal parkar';
document.getElementsByTagName('META')[3].content = 'about | dhawal parkar';
document.getElementsByTagName('META')[4].content =
'http://dplogs.com/about';

return (
<div className="about">
<title> about | dhawal parkar </title>
<meta property="og:type" content="website" />
<meta property="og:site_name" content="dplogs" />
<meta property="og:title" content="about | dhawal parkar" />
<meta property="og:url" content="http://dplogs.com/about" />
<meta
property="og:image"
content="https://dplogscontent.blob.core.windows.net/dplogs/metaimage_250_250.png"
/>
<meta property="og:image:alt" content="dplogs" />
<meta property="og:image:width" content="250" />
<meta property="og:image:height" content="250" />
<meta
property="og:description"
content="Artificial Intelligence and Robotics"
/>
<meta property="fb:app_id" content="367989410291145" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@dparkar" />
<div className="aboutcontent">
<a
href="https://www.linkedin.com/in/dparkar"
Expand Down
3 changes: 3 additions & 0 deletions src/Err/err.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import './err.css';

export default class Err extends TrackedComponent {
render() {
document.title = 'err | dhawal parkar';
document.getElementsByTagName('META')[3].content = 'err | dhawal parkar';
document.getElementsByTagName('META')[4].content = 'http://dplogs.com/err';
return (
<div className="err">
<title>err | dhawal parkar</title>
Expand Down
9 changes: 6 additions & 3 deletions src/LogDetails/logdetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ export default class LogDetails extends TrackedComponent {
}

render() {
document.title = this.state.logtitle + ' | dhawal parkar';
document.getElementsByTagName('META')[3].content =
this.state.logtitle + ' | dhawal parkar';
document.getElementsByTagName('META')[4].content =
'http://dplogs.com/log/' + this.state.logtitle;

let fullcontent;
if (this.state.logdetails === undefined && this.state.fetched === false) {
fullcontent = (
Expand All @@ -68,9 +74,6 @@ export default class LogDetails extends TrackedComponent {

return (
<div>
<title>
{this.state.logtitle} | dhawal parkar
</title>
{fullcontent}
</div>
);
Expand Down
14 changes: 12 additions & 2 deletions src/Logs/logs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Link } from 'react-router-dom';
import { TrackedComponent } from 'react-appinsights';
import GitHub from 'github-api';
import { Wave } from 'better-react-spinkit';

import './logs.css';

let repo;
Expand Down Expand Up @@ -47,6 +46,18 @@ export default class Logs extends TrackedComponent {
}

render() {
if (this.state.tagged === undefined) {
document.title = 'logs | dhawal parkar';
document.getElementsByTagName('META')[3].content = 'logs | dhawal parkar';
document.getElementsByTagName('META')[4].content = 'http://dplogs.com';
} else {
document.title = 'tagged ' + this.state.tagged + ' | dhawal parkar';
document.getElementsByTagName('META')[3].content =
'tagged ' + this.state.tagged + ' | dhawal parkar';
document.getElementsByTagName('META')[4].content =
'http://dplogs.com/tagged/' + this.state.tagged;
}

let filteredlogs = this.state.logs;
let logs;
if (this.state.logs.length === 0 && this.state.fetched === false) {
Expand Down Expand Up @@ -96,7 +107,6 @@ export default class Logs extends TrackedComponent {
}
return (
<div id="logs" className="logs">
<title>logs | dhawal parkar</title>
{logs}
</div>
);
Expand Down
6 changes: 5 additions & 1 deletion src/Stats/stats.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ import './stats.css';

export default class Stats extends TrackedComponent {
render() {
document.title = 'stats | dhawal parkar';
document.getElementsByTagName('META')[3].content = 'stats | dhawal parkar';
document.getElementsByTagName('META')[4].content =
'http://dplogs.com/stats';

return (
<div className="Logs">
<title>stats | dhawal parkar</title>
<div className="stats">
<h1>soon</h1>
</div>
Expand Down