-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
239 lines (135 loc) · 8.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta property="og:title" content="Hugo Bootstrap v4 Blog" />
<meta property="og:description" content="A simple Hugo theme based on the Bootstrap v4 blog example." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://example.org/" />
<meta property="og:updated_time" content="2014-09-28T00:00:00+00:00" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Hugo Bootstrap v4 Blog"/>
<meta name="twitter:description" content="A simple Hugo theme based on the Bootstrap v4 blog example."/>
<meta name="generator" content="Hugo 0.89.4" />
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Blog",
"headline": "Hugo Bootstrap v4 Blog",
"url" : "https://example.org/",
"author": {
"@type": "Person",
"name": "Your Name"
},
"dateModified": "2014-09-28T00:00:00+00:00",
"keywords": "development, golang, development, go, golang, hugo, templates, themes",
"description":"A simple Hugo theme based on the Bootstrap v4 blog example."
}
</script>
<link rel="canonical" href="https://example.org/">
<title>Hugo Bootstrap v4 Blog</title>
<!-- combined, minified CSS -->
<link href="https://example.org/css/style.876bbe11cfbbf3aedf883f4804dc283a275cd7f8b4ed0b540812126132c20313.css" rel="stylesheet" integrity="sha256-h2u+Ec+7867fiD9IBNwoOidc1/i07QtUCBISYTLCAxM=" crossorigin="anonymous">
<!-- minified Font Awesome for SVG icons -->
<script defer src="https://example.org/js/fontawesome.min.a290d22177f491b8a83b0ee7eb739224c57ab052d8fab69d8f52aab860e42027.js" integrity="sha256-opDSIXf0kbioOw7n63OSJMV6sFLY+radj1KquGDkICc=" crossorigin="anonymous"></script>
<!-- RSS 2.0 feed -->
<link rel="alternate" type="application/rss+xml" href="https://example.org/index.xml" title="Hugo Bootstrap v4 Blog" />
</head>
<body>
<div class="blog-masthead">
<div class="container">
<nav class="nav blog-nav">
<a class="nav-link active" href="https://example.org/">Home</a>
</nav>
</div>
</div>
<header class="blog-header">
<div class="container">
<h1 class="blog-title" dir="auto"><a href="https://example.org/" rel="home">Hugo Bootstrap v4 Blog</a></h1>
<p class="lead blog-description" dir="auto">A simple Hugo theme based on the Bootstrap v4 blog example.</p>
</div>
</header>
<div class="container">
<div class="row">
<div class="col-sm-8 blog-main">
<article class="blog-post">
<header>
<h2 class="blog-post-title" dir="auto"><a href="https://example.org/2014/09/creating-a-new-theme/">Creating a New Theme</a></h2>
<p class="blog-post-meta"><time datetime="2014-09-28T00:00:00Z">Sun Sep 28, 2014</time> by Michael Henderson</p>
</header>
Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I’ll explain how Hugo uses templates and how you can organize your templates to create a theme.
<a href='https://example.org/2014/09/creating-a-new-theme/'>Read more →</a>
</article>
<article class="blog-post">
<header>
<h2 class="blog-post-title" dir="auto"><a href="https://example.org/2014/03/migrate-to-hugo-from-jekyll/">Migrate to Hugo from Jekyll</a></h2>
<p class="blog-post-meta"><time datetime="2014-03-10T00:00:00Z">Mon Mar 10, 2014</time> by Your Name</p>
</header>
Move static content to static Jekyll has a rule that any directory not starting with _ will be copied as-is to the _site output. Hugo keeps all static content under static. You should therefore move it all there. With Jekyll, something that looked like
▾ <root>/▾ images/logo.png should become
<a href='https://example.org/2014/03/migrate-to-hugo-from-jekyll/'>Read more →</a>
</article>
<article class="blog-post">
<header>
<h2 class="blog-post-title" dir="auto"><a href="https://example.org/2014/04/hugo-template-primer/">(Hu)go Template Primer</a></h2>
<p class="blog-post-meta"><time datetime="2014-04-02T00:00:00Z">Wed Apr 02, 2014</time> by Your Name in
<span class="fas fa-folder" aria-hidden="true"></span> <a href="/categories/development/" rel="category tag">Development</a>, <a href="/categories/golang/" rel="category tag">golang</a>
<span class="fas fa-tag" aria-hidden="true"></span> <a href="/tags/go/" rel="tag">go</a>, <a href="/tags/golang/" rel="tag">golang</a>, <a href="/tags/templates/" rel="tag">templates</a>, <a href="/tags/themes/" rel="tag">themes</a>, <a href="/tags/development/" rel="tag">development</a>
</p>
</header>
Hugo uses the excellent go html/template library for its template engine. It is an extremely lightweight engine that provides a very small amount of logic. In our experience that it is just the right amount of logic to be able to create a good static website. If you have used other template systems from different languages or frameworks you will find a lot of similarities in go templates.
<a href='https://example.org/2014/04/hugo-template-primer/'>Read more →</a>
</article>
<article class="blog-post">
<header>
<h2 class="blog-post-title" dir="auto"><a href="https://example.org/2014/04/getting-started-with-hugo/">Getting Started with Hugo</a></h2>
<p class="blog-post-meta"><time datetime="2014-04-02T00:00:00Z">Wed Apr 02, 2014</time> by Your Name in
<span class="fas fa-folder" aria-hidden="true"></span> <a href="/categories/development/" rel="category tag">Development</a>, <a href="/categories/golang/" rel="category tag">golang</a>
<span class="fas fa-tag" aria-hidden="true"></span> <a href="/tags/go/" rel="tag">go</a>, <a href="/tags/golang/" rel="tag">golang</a>, <a href="/tags/hugo/" rel="tag">hugo</a>, <a href="/tags/development/" rel="tag">development</a>
</p>
</header>
Step 1. Install Hugo Goto hugo releases and download the appropriate version for your os and architecture.
Save it somewhere specific as we will be using it in the next step.
More complete instructions are available at installing hugo
Step 2. Build the Docs Hugo has its own example site which happens to also be the documentation site you are reading right now.
<a href='https://example.org/2014/04/getting-started-with-hugo/'>Read more →</a>
</article>
</div> <!-- /.blog-main -->
<aside class="col-sm-3 ml-auto blog-sidebar">
<section class="sidebar-module sidebar-module-inset">
<h4>About</h4>
<p dir="auto">A simple Hugo theme based on the <a href="http://v4-alpha.getbootstrap.com/examples/blog/">Bootstrap v4 blog example</a>.</p>
</section>
<section class="sidebar-module">
<h4>Recent Posts</h4>
<ol class="list-unstyled">
<li><a href="/2014/09/creating-a-new-theme/">Creating a New Theme</a></li>
<li><a href="/2014/03/migrate-to-hugo-from-jekyll/">Migrate to Hugo from Jekyll</a></li>
<li><a href="/2014/04/hugo-template-primer/">(Hu)go Template Primer</a></li>
<li><a href="/2014/04/getting-started-with-hugo/">Getting Started with Hugo</a></li>
</ol>
</section>
<section class="sidebar-module">
<h4>Links</h4>
<ol class="list-unstyled">
<li><a href="https://example.com">Link 1</a></li>
<li><a href="https://example.org">Link 2</a></li>
</ol>
</section>
</aside>
</div> <!-- /.row -->
</div> <!-- /.container -->
<footer class="blog-footer">
<p dir="auto">
Blog template created by <a href="https://twitter.com/mdo">@mdo</a>, ported to Hugo by <a href='https://twitter.com/mralanorth'>@mralanorth</a>.
</p>
<p>
<a href="#">Back to top</a>
</p>
</footer>
</body>
</html>