Skip to content

Design changes #50

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

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
42 changes: 13 additions & 29 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,16 @@
layout: about
---

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
h4 {
margin: 2em 0;
}
</style>
</head>
<body>
<div style="text-align: center">
<img src="/static/img/404_sign.png">

<h1>Oops!</h1>

<h4>You've reached a dead end.</h4>

<h4>
If you feel like something should be here, you can
<a target="_blank" href="https://github.com/pytorch/pytorch.github.io/issues/new">open an issue</a>
on GitHub.
</h4>

<h4>
Click <a href="https://pytorch.org/">here</a> to go back to the main page.
</h4>
</div>
</body>
</html>
<div style="text-align: center; margin-bottom: 10rem;">
<img src="/static/img/404_sign.png" style="margin-bottom: 2rem;">
<h1>Oops!</h1><br>
<h5>You've reached a dead end.</h5>
<h5>
If you feel like something should be here, you can
<a target="_blank" href="https://github.com/pytorch/pytorch.github.io/issues/new">open an issue</a>
on GitHub.
</h5>
<h5>
Click <a href="https://pytorch.org/">here</a> to go back to the main page.
</h5>
</div>
35 changes: 15 additions & 20 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
<footer>

{% if page.id != 'home' %}
<div class="container">
{% endif %}

<div class="left">
<div class="logo"><a href="/"></a></div>
<p>
Maintained by the PyTorch core team. <br>
&copy;2017 PyTorch
</p>
</div>

{% include primary-nav.html %}

{% if page.id != 'home' %}
</div>
{% endif %}

</footer>
{% if page.id != 'home' %}
<div class="container">
{% endif %}
<div class="left">
<div class="logo"><a href="/"></a></div>
<p>
Maintained by the PyTorch core team. <br>
&copy;2017 PyTorch
</p>
</div>
{% include primary-nav.html %}
{% if page.id != 'home' %}
</div>
{% endif %}
</footer>
20 changes: 10 additions & 10 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<header>

{% if page.id != 'home' and page.id != 'docs' %}
<div class="container">
{% endif %}
{% if page.id != 'home' and page.id != 'docs' %}
<div class="container">
{% endif %}

<div class="logo"><a href="/"></a></div>
<a class="btn{% if page.id == 'docs' %} active{% endif %}" href="/docs/">Docs</a>
<div class="logo"><a href="/"></a></div>
<a class="btn{% if page.id == 'docs' %} active{% endif %}" href="/docs/">Docs</a>

{% include primary-nav.html %}
{% include primary-nav.html %}

{% if page.id != 'home' and page.id != 'docs' %}
</div>
{% endif %}

{% if page.id != 'home' and page.id != 'docs' %}
</div>
{% endif %}

</header>
18 changes: 11 additions & 7 deletions _includes/primary-nav.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<ul class="primary-nav">
<li><a {% if page.id == 'home' %}class="active"{% endif %} href="/">Get Started</a></li>
<li><a {% if page.id == 'about' %}class="active"{% endif %} href="/about/">About</a></li>
<li><a {% if page.id == 'blog' %}class="active"{% endif %} href="/blog/">Blog</a></li>
<li><a {% if page.id == 'support' %}class="active"{% endif %} href="/support/">Support</a></li>
<li><a {% if page.id == 'tutorials' %}class="active"{% endif %} href="http://pytorch.org/tutorials/">Tutorials</a></li>
<li><a {% if page.id == 'apps' %}class="active"{% endif %} href="https://discuss.pytorch.org">Discuss</a></li>
</ul>
<li><a {% if page.id=='home' %}class="active" {% endif %} href="/">Get Started</a></li>
<li><a {% if page.id=='about' %}class="active" {% endif %} href="/about/">About</a></li>
<li><a {% if page.id=='blog' %}class="active" {% endif %} href="/blog/">Blog</a></li>
<li><a {% if page.id=='support' %}class="active" {% endif %} href="/support/">Support</a></li>
<li><a {% if page.id=='tutorials' %}class="active" {% endif %} href="http://pytorch.org/tutorials/">Tutorials</a></li>
<li><a {% if page.id=='apps' %}class="active" {% endif %} href="https://discuss.pytorch.org">Discuss</a></li>
<li class="icon"><a {% if page.id=='home' %}class="active" {% endif %} href="https://github.com/pytorch/pytorch"
target="_blank"><img src="/static/img/github.svg" height="20px" width="20px"></a></li>
<li class="icon"><a {% if page.id=='home' %}class="active" {% endif %} href="https://twitter.com/pytorch"
target="_blank"><img src="/static/img/twitter.svg" height="20px" width="20px"></a></li>
</ul>
49 changes: 22 additions & 27 deletions _layouts/about.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,31 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<title>{{ page.title }}</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">

<meta property="og:url" content="http://pytorch.org/about"/>
<meta property="og:title" content="About PyTorch"/>
<meta property="og:description"
content="Tensors and Dynamic neural networks in Python
with strong GPU acceleration."/>
<meta property="og:image" content="/static/img/logos/pytorch-logo-dark.png"/>

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:200,300,400,600,700">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<link rel="stylesheet" href="/static/css/main.css">
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/css/main.css">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta property="og:description" content="Tensors and Dynamic neural networks in Python with strong GPU acceleration.">
<meta property="og:image" content="/static/img/logos/pytorch-logo-dark.png">
<meta property="og:title" content="About PyTorch">
<meta property="og:url" content="http://pytorch.org/about">
<title>{{ page.title }}</title>
</head>

<body id="{{ page.id }}">

{% include header.html %}
{% include header.html %}

<section class="content wrap">
<div class="container">
{{ content }}
</div>
</section>
<section class="content wrap">
<div class="container">
{{ content }}
</div>
</section>

{% include footer.html %}
{% include footer.html %}

</body>
</html>

</html>
70 changes: 34 additions & 36 deletions _layouts/blog.html
Original file line number Diff line number Diff line change
@@ -1,47 +1,45 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">

<head>
<title>{{ page.title }}</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">

<meta property="og:url" content="http://pytorch.org/blog"/>
<meta property="og:title" content="PyTorch Blog"/>
<meta property="og:description" content="The latest PyTorch news."/>
<meta property="og:image" content="/static/img/logos/pytorch-logo-dark.png"/>

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:200,300,400,600,700">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<link rel="stylesheet" href="/static/css/main.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/css/main.css">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta property="og:description" content="The latest PyTorch news.">
<meta property="og:image" content="/static/img/logos/pytorch-logo-dark.png">
<meta property="og:title" content="PyTorch Blog">
<meta property="og:url" content="http://pytorch.org/blog">
<title>{{ page.title }}</title>
</head>

<body id="{{ page.id }}">

{% include header.html %}
{% include header.html %}

<section class="content wrap">
<div class="container">
<section class="content wrap">
<div class="container">

{{ content }}
{{ content }}

<ul>
{% for post in site.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
{{ post.excerpt }}
{% if post.picture %}
<img src="{{post.picture}}"></img>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</section>
<ul>
{% for post in site.posts %}
<li>
<h4><a href="{{ post.url }}">{{ post.title }}</a></h4>
<br>
{{ post.content | strip_html | truncatewords: 50 }}
{% if post.picture %}
<img src="{{post.picture}}"></img>
{% endif %}
</li><br>
{% endfor %}
</ul>
</div>
</section>

{% include footer.html %}
{% include footer.html %}

</body>
</html>

</html>
41 changes: 18 additions & 23 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<title>{{ page.title }}</title>
<meta property="og:title" content="PyTorch"/>
<meta property="og:description"
content="Tensors and Dynamic neural networks in Python
with strong GPU acceleration."/>
<meta property="og:image" content="/static/img/logos/pytorch-logo-dark.png"/>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:200,300,400,600,700">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<link rel="stylesheet" href="/static/css/main.css">

<head>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/css/main.css">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta property="og:description" content="Tensors and Dynamic neural networks in Python with strong GPU acceleration.">
<meta property="og:image" content="/static/img/logos/pytorch-logo-dark.png">
<meta property="og:title" content="PyTorch">
<title>{{ page.title }}</title>
</head>

<body id="{{ page.id }}">

{% include header.html %}
{% include header.html %}

{{ content }}
{{ content }}

{% include footer.html %}
{% include footer.html %}

</body>
</html>

</html>
Loading