1
0
Fork 0

Add publish time, add sources to about page

This commit is contained in:
Amarpreet Minhas 2019-07-28 02:32:20 -04:00
parent 25876ad366
commit 358321f20a
6 changed files with 10 additions and 4 deletions

View file

@ -23,7 +23,7 @@
<style type="text/css">body{margin:40px <style type="text/css">body{margin:40px
auto;max-width:650px;line-height:1.6;font-size:18px;color:#444;padding:0 auto;max-width:650px;line-height:1.6;font-size:18px;color:#444;padding:0
10px}h1,h2,h3{line-height:1.2}</style> 10px}h1,h2,h3{line-height:1.2}</style>
<title>React App</title> <title>sudoscientist:~#</title>
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>

View file

@ -1,6 +1,6 @@
{ {
"short_name": "React App", "short_name": "sudoscientist",
"name": "Create React App Sample", "name": "sudoscientist~#",
"icons": [ "icons": [
{ {
"src": "favicon.ico", "src": "favicon.ico",
@ -10,6 +10,6 @@
], ],
"start_url": ".", "start_url": ".",
"display": "standalone", "display": "standalone",
"theme_color": "#000000", "theme_color": "#EEEEEE",
"background_color": "#ffffff" "background_color": "#ffffff"
} }

View file

@ -31,6 +31,7 @@ class Post extends React.Component {
<div className="description"> <div className="description">
<h1><b><u><Link to={"/posts/" + post.slug}>{post.title}</Link></u></b></h1> <h1><b><u><Link to={"/posts/" + post.slug}>{post.title}</Link></u></b></h1>
<h3><b>By <Link to={"/users/"+ post.author}>{post.author}</Link></b></h3> <h3><b>By <Link to={"/users/"+ post.author}>{post.author}</Link></b></h3>
<h4>Posted {post.time_published}</h4>
<ReactMarkdown source={post.content} /> <ReactMarkdown source={post.content} />
</div> </div>
</div> </div>

View file

@ -21,6 +21,7 @@ class PostList extends React.Component {
<div className="description"> <div className="description">
<h2><b><u><Link to={"/posts/" + post.slug}>{post.title}</Link></u></b></h2> <h2><b><u><Link to={"/posts/" + post.slug}>{post.title}</Link></u></b></h2>
<h3><b>By <Link to={"/users/"+ post.author}>{post.author}</Link></b></h3> <h3><b>By <Link to={"/users/"+ post.author}>{post.author}</Link></b></h3>
<h4>Posted {post.time_published}</h4>
<ReactMarkdown source={post.content} /> <ReactMarkdown source={post.content} />
</div> </div>
</div> </div>

View file

@ -25,6 +25,7 @@ class User extends React.Component {
<div className="description"> <div className="description">
<h2><b><u><Link to={"/posts/" + post.slug}>{post.title}</Link></u></b></h2> <h2><b><u><Link to={"/posts/" + post.slug}>{post.title}</Link></u></b></h2>
<h3><b>By <Link to={"/users/"+ post.author}>{post.author}</Link></b></h3> <h3><b>By <Link to={"/users/"+ post.author}>{post.author}</Link></b></h3>
<h4>Posted {post.time_published}</h4>
<ReactMarkdown source={post.content} /> <ReactMarkdown source={post.content} />
</div> </div>
</div> </div>

View file

@ -2,3 +2,6 @@
This is Asara, and this is my personal blog. This is Asara, and this is my personal blog.
It will primarily post about technology, personal projects, and other sudo-scientific and sudo-philosophical ramblings. It will primarily post about technology, personal projects, and other sudo-scientific and sudo-philosophical ramblings.
The backend for this blog is written in golang and the source can be [found here](https://git.minhas.io/Asara/sudoscientist-go-backend).
The frontend for this blog is written using react-redux and can be [found here](https://git.minhas.io/Asara/sudoscientist-go-backend).