Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit 1304b8c

Browse files
committed
another attempt - this time a revel copy
1 parent 0eccd0a commit 1304b8c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1855
-5648
lines changed

_includes/disqus_comments.html

-21
This file was deleted.

_includes/footer.html

-1
This file was deleted.

_includes/head.html

+8-64
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,8 @@
1-
<meta charset="utf-8">
2-
<title>{% if page.title %}{{ page.title }} &#8211; {% endif %}{{ site.title }}</title>
3-
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
4-
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
5-
6-
{% if site.owner.twitter %}<!-- Twitter Cards -->
7-
{% if page.image.feature %}<meta name="twitter:card" content="summary_large_image">
8-
<meta name="twitter:image" content="{{ site.url }}/images/{{ page.image.feature }}">
9-
{% else %}<meta name="twitter:card" content="summary">
10-
<meta name="twitter:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}">{% endif %}
11-
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
12-
<meta name="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
13-
<meta name="twitter:creator" content="@{{ site.owner.twitter }}">{% endif %}
14-
15-
<!-- Open Graph -->
16-
<meta property="og:locale" content="en_US">
17-
<meta property="og:type" content="article">
18-
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
19-
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
20-
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
21-
<meta property="og:site_name" content="{{ site.title }}">
22-
23-
{% if site.google_verify %}<meta name="google-site-verification" content="{{ site.google_verify }}">{% endif %}
24-
{% if site.bing_verify %}<meta name="msvalidate.01" content="{{ site.bing_verify }}">{% endif %}
25-
26-
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
27-
<link rel="canonical" href="{{ canonical }}">
28-
<link href="{{ site.url }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
29-
{% if site.owner.google_plus %}<link rel="author" href="{{ site.owner.google_plus }}?rel=author">{% endif %}
30-
31-
<!-- http://t.co/dKP3o1e -->
32-
<meta name="HandheldFriendly" content="True">
33-
<meta name="MobileOptimized" content="320">
34-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
35-
36-
<!-- For all browsers -->
37-
<link rel="stylesheet" href="{{ site.url }}/assets/css/main.min.css">
38-
<!-- Webfonts -->
39-
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic" rel="stylesheet" type="text/css">
40-
41-
<meta http-equiv="cleartype" content="on">
42-
43-
<!-- Load Modernizr -->
44-
<script src="{{ site.url }}/assets/js/vendor/modernizr-2.6.2.custom.min.js"></script>
45-
46-
<!-- Icons -->
47-
<!-- 16x16 -->
48-
<link rel="shortcut icon" href="{{ site.url }}/favicon.ico">
49-
<!-- 32x32 -->
50-
<link rel="shortcut icon" href="{{ site.url }}/favicon.png">
51-
<!-- 57x57 (precomposed) for iPhone 3GS, pre-2011 iPod Touch and older Android devices -->
52-
<link rel="apple-touch-icon-precomposed" href="{{ site.url }}/images/apple-touch-icon-precomposed.png">
53-
<!-- 72x72 (precomposed) for 1st generation iPad, iPad 2 and iPad mini -->
54-
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ site.url }}/images/apple-touch-icon-72x72-precomposed.png">
55-
<!-- 114x114 (precomposed) for iPhone 4, 4S, 5 and post-2011 iPod Touch -->
56-
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ site.url }}/images/apple-touch-icon-114x114-precomposed.png">
57-
<!-- 144x144 (precomposed) for iPad 3rd and 4th generation -->
58-
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.url }}/images/apple-touch-icon-144x144-precomposed.png">
59-
60-
{% if page.image.background or site.background %}
61-
{% capture background %}{% if page.image.background %}{{ page.image.background }}{% else %}{{ site.background }}{% endif %}{% endcapture %}
62-
{% unless background contains 'http://' or background contains 'https://' %}{% capture background %}{{ site.url }}/images/{{ background }}{% endcapture %}{% endunless %}
63-
<style type="text/css">body {background-image:url({{ background }});}</style>
64-
{% endif %}
1+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2+
<meta charset="utf-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
4+
<title>{% if page.title %}{{ page.title }}{% else %}Go database/sql tutorial{% endif %}</title>
5+
<link href="{{ page.root }}/css/bootstrap.min.css" rel="stylesheet">
6+
<link href="{{ page.root }}/css/journal.min.css" rel="stylesheet">
7+
<link href="{{ page.root }}/css/site.css" rel="stylesheet">
8+
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,700" rel="stylesheet" type="text/css">

_includes/leftnav.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<div class="leftnav">
2+
<ul class="nav nav-list">
3+
{% for group in page.nav %}
4+
<li class="nav-header">{{ group.name }}</li>
5+
{% for node in group.articles %}
6+
{% capture node_url %}/{{ page.name }}/{{ node.url }}{% endcapture %}
7+
{% if page.url == node_url %}
8+
<li class="active"><a href="{{node.url}}">{{node.title}}</a></li>
9+
{% else %}
10+
<li><a href="{{node.url}}">{{node.title}}</a></li>
11+
{% endif %}
12+
{% endfor %}
13+
{% endfor %}
14+
</ul>
15+
</div>

_includes/navigation.html

-55
This file was deleted.

_includes/scripts.html

-21
This file was deleted.

_includes/toc.md

-10
This file was deleted.

_layouts/article.html

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
root: ..
3+
name: article
4+
nav:
5+
-
6+
name: Overview
7+
articles:
8+
-
9+
title: Overview of Go's database/sql Package
10+
url: overview.html
11+
-
12+
title: Importing a Database Driver
13+
url: importing.html
14+
-
15+
title: Accessing the Database
16+
url: accessing.html
17+
-
18+
title: Retrieving Result Sets
19+
url: retrieving.html
20+
-
21+
title: Modifying Data and Using Transactions
22+
url: modifying.html
23+
-
24+
title: Working with NULLs
25+
url: nulls.html
26+
-
27+
title: Working with Unknown Columns
28+
url: varcols.html
29+
-
30+
title: The Connection Pool
31+
url: connection-pool.html
32+
-
33+
title: Surprises, Antipatterns and Limitations
34+
url: surprises.html
35+
-
36+
title: Related Reading and Resources
37+
url: references.html
38+
---
39+
<!DOCTYPE html>
40+
<html lang="en">
41+
<head>
42+
{% include head.html %}
43+
<link href="{{ page.root }}/css/prettify.css" type="text/css" rel="stylesheet" />
44+
<script src="{{ page.root }}/js/prettify.js" type="text/javascript"></script>
45+
<script src="{{ page.root }}/js/lang-go-rich.js" type="text/javascript"></script>
46+
</head>
47+
<body onload="prettyPrint()">
48+
<div class="container">
49+
<div class="row">
50+
<div class="span2">
51+
{% include leftnav.html %}
52+
</div>
53+
54+
<div class="span10">
55+
<div class="page-header">
56+
<h1>{{ page.title }}</h1>
57+
<a href="https://github.com/VividCortex/go-database-sql-tutorial/edit/gh-pages/{{ page.path }}" class="improve-page btn btn-info" target="_blank">Improve this page</a>
58+
</div>
59+
{{ content }}
60+
</div>
61+
</div>
62+
</div>
63+
</body>
64+
</html>

_layouts/page.html

-56
This file was deleted.

_layouts/post-index.html

-42
This file was deleted.

0 commit comments

Comments
 (0)