changeset 88:45d807d2bfcc kai

Revisit index start page.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Mon, 17 Oct 2016 18:39:05 +0200
parents 1752b8520622
children c7c9825fbdf8
files css/octave.css index.md
diffstat 2 files changed, 42 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/css/octave.css	Mon Oct 17 18:38:41 2016 +0200
+++ b/css/octave.css	Mon Oct 17 18:39:05 2016 +0200
@@ -4,6 +4,7 @@
   width: 16px;
   height: 16px;
   padding: 2px;
+  vertical-align: middle;
 }
 
 svg.octicon-stop-octave {
@@ -14,6 +15,20 @@
   margin-right: 10px;
 }
 
+svg.octicon-book-manual {
+  width: 18pt;
+  height: 18pt;
+  fill: #0790c0;
+  vertical-align: text-bottom;
+}
+
+svg.octicon-pdf-manual {
+  width: 18pt;
+  height: 18pt;
+  fill: #d00a0a;
+  vertical-align: text-bottom;
+}
+
 svg.octicon-topnav {
   height: 18px;
   fill: #ffffff;
@@ -30,6 +45,7 @@
 div.alert {
   border: 2px solid #ff0000;
   padding: 5px;
+  min-height: 18pt;
 }
 
 div#logo {
@@ -58,10 +74,8 @@
   background: #ffffff;
   color: #000000;
   margin: 0 auto;
-  margin-left: 10%;
-  margin-right: 10%;
   padding: 0;
-  width: auto;
+  width: 800px;
 }
 
 a, a:link {
@@ -140,6 +154,14 @@
   display: none;
 }
 
+@media screen and (max-width:1000px) and (min-width:650px) {
+  body {
+    margin-left: 10%;
+    margin-right: 10%;
+    width: auto;
+  }
+}
+
 @media screen and (max-width:650px) {
   ul.topnav li:not(:first-child) {
     display: none;
@@ -167,6 +189,7 @@
   body {
     margin-left: 15px;
     margin-right: 15px;
+    width: auto;
   }
   img {
     max-width: 100%;
--- a/index.md	Mon Oct 17 18:38:41 2016 +0200
+++ b/index.md	Mon Oct 17 18:39:05 2016 +0200
@@ -1,5 +1,7 @@
 ---
 layout: default
+title: Home
+menu: false
 ---
 
 **[GNU Octave][1]** is a high-level interpreted language,
@@ -9,16 +11,18 @@
 several scientific and engineering applications.
 The GNU Octave language is quite similar to [Matlab][3]
 so that most programs are easily portable.
+[Read more][4].
 
 Octave is distributed under the terms of the
-[GNU General Public License][4].
+[GNU General Public License][5].
 
-[![GNU Octave 4.0.3 - Licensed under CC BY-SA 3.0][screen-small]][screen]
+[![GNU Octave 4.0.3 Screenshot][screen-small]][screen]
 
 [1]: http://www.octave.org
 [2]: http://octave.sourceforge.net/packages.php
 [3]: https://www.mathworks.com/matlab
-[4]: {{ "license.html" | relative_url }}
+[4]: {{ "about.html" | relative_url }}
+[5]: {{ "license.html" | relative_url }}
 [screen]: {{ "/img/screenshot-2016.png" | relative_url }}
 [screen-small]: {{ "/img/screenshot-2016-small.png" | relative_url }}
 
@@ -29,7 +33,7 @@
 # [{% octicon rss class:"octicon-rss-octave" %}][Feed] [News]
 
 {% for post in site.posts limit:3 %}
-- [{{ post.title }}]({{ post.url | relative_url }})
+- [**{{ post.title }}**]({{ post.url | relative_url }})
   ({{ post.date | date: "%b %-d, %Y" }})
 
   <div class="news-content">
@@ -53,21 +57,20 @@
 A = [ 3 4 5;
       1 3 1;
       3 5 9 ];
-x = A \ b     % Solve $Ax = b$ by inverting A
+x = A \ b      % Solve $Ax = b$ by inverting A
 {% endhighlight %}
 
 - Visualize data with **high-level plot commands** in 2D and 3D:
 
 {% highlight octave %}
-% Create an evenly-spaced vector from -10 to 10
-x = -10:0.1:10;
-y = sin(x);     % y is also a vector
-plot(x,y);
-title("Simple 2-D Plot");
-xlabel("x");
-ylabel("sin (x)");
+x = -10:0.1:10; % Create an evenly-spaced vector from -10 to 10
+y = sin (x);    % y is also a vector
+plot (x,y);
+title ("Simple 2-D Plot");
+xlabel ("x");
+ylabel ("sin (x)");
 {% endhighlight %}
 
 [![Sine plot][plot]][plot]
 
-[plot]: {{ "/img/plot.png" | relative_url }}
+[plot]: {{ "/img/example-plot.png" | relative_url }}