-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.xml
886 lines (590 loc) · 59.8 KB
/
index.xml
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Paolo Lucchino on Paolo Lucchino</title>
<link>http://paololucchino.com/index.xml</link>
<description>Recent content in Paolo Lucchino on Paolo Lucchino</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<copyright>&copy; 2017 Paolo Lucchino</copyright>
<lastBuildDate>Wed, 20 Apr 2016 00:00:00 +0000</lastBuildDate>
<atom:link href="/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Entrepreneurship, gender and the constraints of time: a randomised experiment on the role of access to light</title>
<link>http://paololucchino.com/publication/entrepreneurship-gender-and-the-constraints-of-time/</link>
<pubDate>Fri, 01 Sep 2017 21:53:36 +0200</pubDate>
<guid>http://paololucchino.com/publication/entrepreneurship-gender-and-the-constraints-of-time/</guid>
<description></description>
</item>
<item>
<title>Social enterprises: is there anything in this fuzzy concept?</title>
<link>http://paololucchino.com/publication/social-enterprises-is-there-anything-to-this-fuzzy-concept/</link>
<pubDate>Wed, 08 Feb 2017 14:37:28 +0200</pubDate>
<guid>http://paololucchino.com/publication/social-enterprises-is-there-anything-to-this-fuzzy-concept/</guid>
<description></description>
</item>
<item>
<title>Example Talk</title>
<link>http://paololucchino.com/talk/example-talk/</link>
<pubDate>Sun, 01 Jan 2017 00:00:00 +0000</pubDate>
<guid>http://paololucchino.com/talk/example-talk/</guid>
<description><p>Embed your slides or video here using <a href="https://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/" target="_blank">shortcodes</a>. Further details can easily be added using <em>Markdown</em> and $\rm \LaTeX$ math code.</p>
</description>
</item>
<item>
<title>Powering Education</title>
<link>http://paololucchino.com/publication/powering-education/</link>
<pubDate>Sat, 09 Jul 2016 21:45:54 +0200</pubDate>
<guid>http://paololucchino.com/publication/powering-education/</guid>
<description></description>
</item>
<item>
<title>Deep Learning</title>
<link>http://paololucchino.com/project/deep-learning/</link>
<pubDate>Wed, 27 Apr 2016 00:00:00 +0000</pubDate>
<guid>http://paololucchino.com/project/deep-learning/</guid>
<description><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi. Cras purus urna, suscipit quis sapien eu, pulvinar tempor diam. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida.</p>
<p>Nullam vel molestie justo. Curabitur vitae efficitur leo. In hac habitasse platea dictumst. Sed pulvinar mauris dui, eget varius purus congue ac. Nulla euismod, lorem vel elementum dapibus, nunc justo porta mi, sed tempus est est vel tellus. Nam et enim eleifend, laoreet sem sit amet, elementum sem. Morbi ut leo congue, maximus velit ut, finibus arcu. In et libero cursus, rutrum risus non, molestie leo. Nullam congue quam et volutpat malesuada. Sed risus tortor, pulvinar et dictum nec, sodales non mi. Phasellus lacinia commodo laoreet. Nam mollis, erat in feugiat consectetur, purus eros egestas tellus, in auctor urna odio at nibh. Mauris imperdiet nisi ac magna convallis, at rhoncus ligula cursus.</p>
<p>Cras aliquam rhoncus ipsum, in hendrerit nunc mattis vitae. Duis vitae efficitur metus, ac tempus leo. Cras nec fringilla lacus. Quisque sit amet risus at ipsum pharetra commodo. Sed aliquam mauris at consequat eleifend. Praesent porta, augue sed viverra bibendum, neque ante euismod ante, in vehicula justo lorem ac eros. Suspendisse augue libero, venenatis eget tincidunt ut, malesuada at lorem. Donec vitae bibendum arcu. Aenean maximus nulla non pretium iaculis. Quisque imperdiet, nulla in pulvinar aliquet, velit quam ultrices quam, sit amet fringilla leo sem vel nunc. Mauris in lacinia lacus.</p>
<p>Suspendisse a tincidunt lacus. Curabitur at urna sagittis, dictum ante sit amet, euismod magna. Sed rutrum massa id tortor commodo, vitae elementum turpis tempus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean purus turpis, venenatis a ullamcorper nec, tincidunt et massa. Integer posuere quam rutrum arcu vehicula imperdiet. Mauris ullamcorper quam vitae purus congue, quis euismod magna eleifend. Vestibulum semper vel augue eget tincidunt. Fusce eget justo sodales, dapibus odio eu, ultrices lorem. Duis condimentum lorem id eros commodo, in facilisis mauris scelerisque. Morbi sed auctor leo. Nullam volutpat a lacus quis pharetra. Nulla congue rutrum magna a ornare.</p>
<p>Aliquam in turpis accumsan, malesuada nibh ut, hendrerit justo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque sed erat nec justo posuere suscipit. Donec ut efficitur arcu, in malesuada neque. Nunc dignissim nisl massa, id vulputate nunc pretium nec. Quisque eget urna in risus suscipit ultricies. Pellentesque odio odio, tincidunt in eleifend sed, posuere a diam. Nam gravida nisl convallis semper elementum. Morbi vitae felis faucibus, vulputate orci placerat, aliquet nisi. Aliquam erat volutpat. Maecenas sagittis pulvinar purus, sed porta quam laoreet at.</p>
</description>
</item>
<item>
<title>External Project</title>
<link>http://paololucchino.com/project/example-external-project/</link>
<pubDate>Wed, 27 Apr 2016 00:00:00 +0000</pubDate>
<guid>http://paololucchino.com/project/example-external-project/</guid>
<description></description>
</item>
<item>
<title>Getting started with the Academic framework for Hugo</title>
<link>http://paololucchino.com/post/getting-started/</link>
<pubDate>Wed, 20 Apr 2016 12:00:00 +0000</pubDate>
<guid>http://paololucchino.com/post/getting-started/</guid>
<description>
<p>The Academic framework enables you to easily create a beautifully simple personal or academic website using the <a href="https://gohugo.io" target="_blank">Hugo</a> static site generator.</p>
<p>Key features:</p>
<ul>
<li>Easily manage your homepage, blog posts, publications, talks, and projects</li>
<li>Configurable widgets available for Biography, Publications, Projects, News/Blog, Talks, and Contact</li>
<li>Need a different section? Just use the Custom widget!</li>
<li>Write in <a href="http://paololucchino.com/post/writing-markdown-latex/" target="_blank">Markdown</a> for easy formatting and code highlighting, with <a href="https://en.wikibooks.org/wiki/LaTeX/Mathematics" target="_blank">LaTeX</a> for mathematical expressions</li>
<li>Social/academic network linking, <a href="https://analytics.google.com" target="_blank">Google Analytics</a>, and <a href="https://disqus.com" target="_blank">Disqus</a> comments</li>
<li>Responsive and mobile friendly</li>
<li>Simple and refreshing one page design</li>
<li>Easy to customize</li>
</ul>
<h2 id="installation">Installation</h2>
<ol>
<li><p><a href="https://georgecushen.com/create-your-website-with-hugo/#installing-hugo" target="_blank">Install Hugo</a> and create a new website by typing the following commands in your <em>Terminal</em> or <em>Command Prompt</em> app:</p>
<pre><code>hugo new site my_website
cd my_website
</code></pre></li>
<li><p>Install Academic with <a href="https://help.github.com/articles/set-up-git/" target="_blank">git</a>:</p>
<pre><code>git clone https://github.com/gcushen/hugo-academic.git themes/academic
</code></pre>
<p>Or alternatively, <a href="https://github.com/gcushen/hugo-academic/archive/master.zip" target="_blank">download Academic</a> and extract it into a <code>themes/academic</code> folder within your Hugo website.</p></li>
<li><p>If you are creating a new website, copy the contents of the <code>exampleSite</code> folder to your website root folder, overwriting existing files if necessary. The <code>exampleSite</code> folder contains an example config file and content to help you get started.</p>
<pre><code>cp -av themes/academic/exampleSite/* .
</code></pre></li>
<li><p>Start the Hugo server from your website root folder:</p>
<pre><code>hugo server --watch
</code></pre>
<p>Now you can go to <a href="http://localhost:1313" target="_blank">localhost:1313</a> and your new Academic powered website should appear.</p></li>
<li><p>Customize your website - refer to the <em>Getting Started</em> section below</p></li>
<li><p>Build your site by running the <code>hugo</code> command. Then <a href="https://georgecushen.com/create-your-website-with-hugo/" target="_blank">host it for free using Github Pages</a>. Or alternatively, copy the generated <code>public/</code> directory (by FTP, Rsync, etc.) to your production web server (such as your university&rsquo;s hosting service).</p></li>
</ol>
<h2 id="getting-started">Getting Started</h2>
<p>Assuming you created a new website with the example content following the installation steps above, this section explores just a few more steps in order to customize it.</p>
<h3 id="core-parameters">Core parameters</h3>
<p>The core parameters for the website can be edited in the <code>config.toml</code> configuration file:</p>
<ul>
<li>Set <code>baseurl</code> to your website URL (we recommend <a href="https://georgecushen.com/create-your-website-with-hugo/" target="_blank">GitHub Pages</a> for free hosting)</li>
<li>Set <code>title</code> to your desired website title such as your name</li>
<li>The example Disqus commenting variable should be cleared (e.g. <code>disqusShortname = &quot;&quot;</code>) or set to your own <a href="https://disqus.com/" target="_blank">Disqus</a> shortname to enable commenting</li>
<li>Edit your details under <code>[params]</code>; these will be displayed mainly in the homepage <em>about</em> and <em>contact</em> widgets (if used). To disable a contact field, simply clear the value to <code>&quot;&quot;</code>.</li>
<li>Place a square cropped portrait photo named <code>portrait.jpg</code> into the <code>static/img/</code> folder, overwriting any defaults. Alternatively, you can edit the <code>avatar</code> filepath to point to a different image name or clear the value to disable the avatar feature.</li>
<li>To enable LaTeX math for your site, set <code>math = true</code></li>
<li>Social/academic networking links are defined as multiples of <code>[[params.social]]</code>. They can be created or deleted as necessary.</li>
</ul>
<h3 id="introduce-yourself">Introduce yourself</h3>
<p>Edit your biography in the <em>about</em> widget <code>content/home/about.md</code> that you copied across from the <code>themes/academic/exampleSite/</code> folder. The research interests and qualifications are stored as <code>interests</code> and <code>education</code> variables. The academic qualifications are defined as multiples of <code>[[education.courses]]</code> and can be created or deleted as necessary. It&rsquo;s possible to completely hide the interests and education lists by deleting their respective variables.</p>
<h3 id="customize-the-homepage">Customize the homepage</h3>
<p>Refer to our guide on using <a href="http://paololucchino.com/post/widgets/" target="_blank">widgets</a> to customize your homepage.</p>
<h3 id="add-your-content">Add your content</h3>
<p>Refer to our guide on <a href="http://paololucchino.com/post/managing-content/" target="_blank">managing content</a> to create your own publications, blog posts, talks, and projects.</p>
<h3 id="remove-unused-widgets-and-pages">Remove unused widgets and pages</h3>
<p><a href="http://paololucchino.com/post/managing-content/#removing-content" target="_blank">How to remove unused widgets and content pages</a>.</p>
<h3 id="customization-upgrading">Customization &amp; Upgrading</h3>
<p>Continue reading below for advanced customization tips and instructions for keeping the framework up-to-date with any improvements that become available.</p>
<h2 id="advanced-customization">Advanced customization</h2>
<p>It is possible to carry out many customizations without touching any files in <code>themes/academic</code>, making it easier to upgrade the framework in the future.</p>
<h3 id="navigation-menu">Navigation menu</h3>
<p>The <code>[[menu.main]]</code> entries towards the bottom of <code>config.toml</code> define the navigation links at the top of the website. They can be added or removed as desired.</p>
<p>To create a dropdown sub-menu, add <code>identifier = &quot;something&quot;</code> to the parent item and <code>parent = &quot;something&quot;</code> to the child item.</p>
<h3 id="website-icon">Website icon</h3>
<p>Save your main icon and mobile icon as square PNG images named <code>icon.png</code> and <code>apple-touch-icon.png</code>, respectively. Place them in your root <code>static/img/</code> folder.</p>
<h3 id="theme-color-css">Theme color (CSS)</h3>
<p>You can link custom CSS assets (relative to your root <code>static/css</code>) from your <code>config.toml</code> using <code>custom_css = [&quot;custom.css&quot;]</code>.</p>
<p>For example, lets make a green theme. First, define <code>custom_css = [&quot;green.css&quot;]</code> in <code>config.toml</code>. Then we can download the example <a href="https://gist.github.com/gcushen/d5525a4506b9ccf83f2bce592a895495" target="_blank">green theme</a> and save it as <code>static/css/green.css</code>, relative to your website root (i.e. <strong>not</strong> in the <code>themes</code> directory).</p>
<h3 id="analytics">Analytics</h3>
<p>To enable <a href="http://www.google.com/analytics" target="_blank">Google Analytics</a>, add your tracking code in <code>config.toml</code> similarly to <code>googleAnalytics = &quot;UA-12345678-9&quot;</code>.</p>
<h3 id="third-party-and-local-scripts-js">Third party and local scripts (JS)</h3>
<p>To add a third party script, create a file named <code>head_custom.html</code> in a <code>layouts/partials/</code> folder at the root of your website (not in the <code>themes</code> folder). Any HTML code added to this file will be included within your website&rsquo;s <code>&lt;head&gt;</code>. Therefore, it&rsquo;s suitable for adding custom metadata or third party scripts specified with the <em>async</em> attribute.</p>
<p>Whereas for your own local scripts, you can link your local JS assets (relative to your root <code>static/js</code>) from your <code>config.toml</code> using <code>custom_js = [&quot;custom.js&quot;]</code>.</p>
<h3 id="language-and-translation">Language and translation</h3>
<p>The interface text (e.g. buttons) is stored in language files which are collected from Academic&rsquo;s <code>themes/academic/i18n/</code> folder, as well as an <code>i18n/</code> folder at the root of your project.</p>
<p>To edit the interface text, copy <code>themes/academic/i18n/en.yaml</code> to <code>i18n/en.yaml</code> (relative to the root of your website). Open the new file and make any desired changes to the text appearing after <code>translation:</code>. Note that the language files are formatted in YAML syntax.</p>
<p>To translate the interface text to another language, follow the above instructions, but name the new file in the form <code>i18n/X.yaml</code> where <code>X</code> is the appropriate <a href="http://www.w3schools.com/tags/ref_language_codes.asp" target="_blank">ISO/RFC5646 language identifier</a> for the translation. Then follow the brief instructions in the <em>Language</em> section at the bottom of your <code>config.toml</code>. To change the default language used by Academic, set <code>defaultContentLanguage</code> to the desired language identifier in your configuration file.</p>
<p>To translate the navigation bar, you can edit the default <code>[[menu.main]]</code> instances in <code>config.toml</code>. However, for a multilingual site, you will need to duplicate all of the <code>[[menu.main]]</code> instances and rename the new instances from <code>[[menu.main]]</code> to <code>[[languages.X.menu.main]]</code>, where <code>X</code> is the language identifier (e.g. <code>[[languages.zh.menu.main]]</code> for Simplified Chinese). Thus, the navigation bar can be displayed in multiple languages.</p>
<p>To translate a content file in your <code>content/</code> folder into another language, copy the file to <code>filename.X.md</code> where <code>filename</code> is your existing filename and <code>X</code> is the appropriate <a href="http://www.w3schools.com/tags/ref_language_codes.asp" target="_blank">ISO/RFC5646 language identifier</a> for the translation. Then translate the content in the new file to the specified language.</p>
<p>For further details on Hugo&rsquo;s internationalization and multilingual features, refer to the <a href="https://gohugo.io/content/multilingual/" target="_blank">associated Hugo documentation</a>.</p>
<h3 id="permalinks">Permalinks</h3>
<p><em>Permalinks</em>, or <em>permanent links</em>, are URLs to individual pages and posts on your website. They are permanent web addresses which can be used to link to your content. Using Hugo&rsquo;s <em>permalinks</em> option these can be easily customized. For example, the blog post URL can be changed to the form <em>yourURL/2016/05/01/my-post-slug</em> by adding the following near the top of your <code>config.toml</code> (before <code>[params]</code> settings):</p>
<pre><code>[permalinks]
post = &quot;/:year/:month/:day/:slug&quot;
</code></pre>
<p>Where <code>:slug</code> defaults to the filename of the post, excluding the file extension. However, slug may be overridden on a per post basis if desired, simply by setting <code>slug = &quot;my-short-post-title&quot;</code> in your post preamble.</p>
<h2 id="upgrading">Upgrading</h2>
<p>Feel free to <em>star</em> the project on <a href="https://github.com/gcushen/hugo-academic/" target="_blank">Github</a> and monitor the <a href="https://github.com/gcushen/hugo-academic/commits/master" target="_blank">commits</a> for updates.</p>
<p>Before upgrading the framework, it is recommended to make a backup of your entire website directory, or at least your <code>themes/academic</code> directory. You can also read about the <a href="https://github.com/gcushen/hugo-academic/releases" target="_blank">most recent milestones</a> (but this doesn&rsquo;t necessarily reflect the latest <em>master</em> release).</p>
<p>Before upgrading for the first time, the remote <em>origin</em> repository should be renamed to <em>upstream</em>:</p>
<pre><code>$ cd themes/academic
$ git remote rename origin upstream
</code></pre>
<p>To list available updates:</p>
<pre><code>$ cd themes/academic
$ git fetch upstream
$ git log --pretty=oneline --abbrev-commit --decorate HEAD..upstream/master
</code></pre>
<p>Then, upgrade by running:</p>
<pre><code>$ git pull upstream
</code></pre>
<p>If you have modified files in <code>themes/academic</code>, git will attempt to auto-merge changes. If conflicts are reported, you will need to manually edit the files with conflicts and add them back (<code>git add &lt;filename&gt;</code>).</p>
<p>If there are any issues after upgrading, you may wish to compare your site with the latest <a href="https://github.com/gcushen/hugo-academic/tree/master/exampleSite" target="_blank">example site</a> to check if any settings changed.</p>
<h2 id="feedback-contributing">Feedback &amp; Contributing</h2>
<p>Please use the <a href="https://github.com/gcushen/hugo-academic/issues" target="_blank">issue tracker</a> to let me know about any bugs or feature requests, or alternatively make a pull request.</p>
<p>For general questions about Hugo, there is a <a href="http://discuss.gohugo.io" target="_blank">Hugo discussion forum</a>.</p>
<h2 id="license">License</h2>
<p>Copyright 2016 <a href="https://georgecushen.com" target="_blank">George Cushen</a>.</p>
<p>Released under the <a href="https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md" target="_blank">MIT</a> license.</p>
</description>
</item>
<item>
<title>Customizing the homepage with widgets</title>
<link>http://paololucchino.com/post/widgets/</link>
<pubDate>Wed, 20 Apr 2016 11:00:00 +0000</pubDate>
<guid>http://paololucchino.com/post/widgets/</guid>
<description>
<p>Homepage widgets display as sections on the homepage. They can be enabled/disabled and configured as desired. Academic has the following widgets available to use:</p>
<ul>
<li>About/biography</li>
<li>Selected publications</li>
<li>Recent publications</li>
<li>Recent news/blog posts</li>
<li>Projects</li>
<li>Selected talks</li>
<li>Recent talks</li>
<li>Contact</li>
<li>Custom widget (demonstrated with the <em>teaching</em> example)</li>
</ul>
<p>The example site that you copied to create your site uses all the different types of widget (except talks), so you can generally just delete the widgets you don&rsquo;t need and customize the parameters of the widgets you wish to keep.</p>
<p>The parameters for each widget vary. They can be found in the preamble/frontmatter (between the pair of <code>+++</code>) for each widget installed in the <code>content/home/</code> folder.</p>
<div class="alert alert-note">
<p>By default, publications will be displayed in a simple list. If you prefer a more detailed list with abstract and image, you can enable the detailed publication list on the homepage by setting <code>detailed_list = true</code> in <code>content/home/publications.md</code>.</p>
</div>
<h2 id="add-a-widget-to-the-homepage">Add a widget to the homepage</h2>
<p>To add a widget manually, copy the relevant widget from <code>themes/academic/exampleSite/content/home/</code> to your <code>content/home/</code> folder.</p>
<p>Widget identifiers are set to their respective filenames, so a <code>content/home/about.md</code> widget can be linked from the navigation bar by setting the relevant URL as <code>&quot;#about&quot;</code> in <code>config.toml</code>.</p>
<p>This means that if you want to use multiple instances of a widget, each widget will be assigned a unique ID based on the filename that you set. You can then use that ID for linking, like in the above example.</p>
<h2 id="using-the-custom-widget">Using the custom widget</h2>
<p>You can use the custom widget to create your own home page sections.</p>
<p>Simply duplicate (copy/paste) and rename the example <em>teaching</em> file at <code>content/home/teaching.md</code>. Then edit the section title, weight (refer to <em>Ordering sections</em> below), and content as desired.</p>
<p>You may also wish to add a navigation link to the top of the page that points to the new section. This can be achieved by adding something similar to the following lines to your <code>config.toml</code>, where the URL will consist of the first title word in lowercase:</p>
<pre><code>[[menu.main]]
name = &quot;Research&quot;
url = &quot;#research&quot;
weight = 10
</code></pre>
<h2 id="remove-a-widget-from-the-homepage">Remove a widget from the homepage</h2>
<p>If you do not require a particular widget, you can simply delete any associated files from the <code>content/home/</code> folder.</p>
<p>To remove a navigation link from the top of the page, remove the associated <code>[[menu.main]]</code> entry in <code>config.toml</code>.</p>
<h2 id="ordering-widgets">Ordering widgets</h2>
<p>The order that the homepage widgets are displayed in is defined by the <code>weight</code> parameter in each of the files in the <code>content/home/</code> directory. The widgets are displayed in ascending order of their <code>weight</code>, so you can simply edit the <code>weight</code> parameters as desired.</p>
</description>
</item>
<item>
<title>Managing content</title>
<link>http://paololucchino.com/post/managing-content/</link>
<pubDate>Wed, 20 Apr 2016 11:00:00 +0000</pubDate>
<guid>http://paololucchino.com/post/managing-content/</guid>
<description><p>This is a brief guide to managing content with the Academic framework. Content can include publications, projects, talks, and news/blog articles. After you have read this guide about creating and managing content, you may also be interested to learn about <a href="http://paololucchino.com/post/writing-markdown-latex/" target="_blank">writing content with Markdown, LaTeX, and Shortcodes</a>.</p>
<p>To enable LaTeX math rendering for a page, you should include <code>math = true</code> in the page&rsquo;s <code>+++</code> preamble, as demonstrated in the included example site. Otherwise, to enable math on the homepage or for all pages, you must globally set <code>math = true</code> in <code>config.toml</code>.</p>
<p>To disable source code highlighting by default for all pages, set <code>highlight = false</code> in <code>config.toml</code>. You can then enable source code highlighting only on pages that need it by setting <code>highlight = true</code> in that page&rsquo;s preamble. See the <a href="http://paololucchino.com/post/writing-markdown-latex/#code-highlighting" target="_blank">code-highlighting docs</a> for more details.</p>
<p>To display a featured image in content page headers, the parameters below can be inserted towards the end of a page&rsquo;s <code>+++</code> preamble. It is assumed that the image is located in your <code>static/img/</code> folder, so the full path in the example below will be <code>static/img/headers/getting-started.png</code>. The <code>caption</code> parameter can be used to write an image caption or credit.</p>
<pre><code class="language-toml">[header]
image = &quot;headers/getting-started.png&quot;
caption = &quot;Image credit: [**Academic**](https://github.com/gcushen/hugo-academic/)&quot;
</code></pre>
<div class="alert alert-note">
<p>If you wish to prevent a featured image automatically being used for a post&rsquo;s thumbnail on the homepage, the <code>preview = false</code> parameter can be added to <code>[header]</code>.</p>
</div>
<h2 id="create-a-publication">Create a publication</h2>
<p>To create a new publication:</p>
<pre><code>hugo new publication/my-paper-name.md
</code></pre>
<p>Then edit the default variables at the top of <code>content/publication/my-paper-name.md</code> to include the details of your publication. The <code>url_</code> variables are used to generate links associated with your publication, such as for viewing PDFs of papers. Here is an example:</p>
<pre><code>+++
abstract = &quot;An abstract...&quot;
authors = [&quot;First author's name&quot;, &quot;Second author's name&quot;]
date = &quot;2013-07-01&quot;
image = &quot;&quot;
image_preview = &quot;&quot;
math = false
publication = &quot;The publishing part of the citation goes here. You may use *Markdown* for italics etc.&quot;
title = &quot;A publication title, such as title of a paper&quot;
url_code = &quot;&quot;
url_dataset = &quot;&quot;
url_pdf = &quot;pdf/my-paper-name.pdf&quot;
url_project = &quot;&quot;
url_slides = &quot;&quot;
url_video = &quot;&quot;
+++
Further details on your publication can be written here using *Markdown* for formatting. This text will be displayed on the Publication Detail page.
</code></pre>
<p>The <code>url_</code> links can either point to local or web content. Associated local publication content, such as PDFs, may be copied to a <code>static/pdf/</code> folder and referenced like <code>url_pdf = &quot;pdf/my-paper-name.pdf&quot;</code>.</p>
<p>You can also associate custom link buttons with the publication by adding the following block(s) within the variable preamble above, which is denoted by <code>+++</code>:</p>
<pre><code>[[url_custom]]
name = &quot;Custom Link&quot;
url = &quot;http://www.example.org&quot;
</code></pre>
<p>If you enabled <code>detailed_list</code> for publications in <code>config.toml</code>, then there are a few more optional variables that you can include in the publication page preamble. You may use <code>abstract_short = &quot;friendly summary of abstract&quot;</code> and <code>publication_short = &quot;abbreviated publication details&quot;</code> to display a friendly summary of the abstract and abbreviate the publication details, respectively. Furthermore, there is the option to display a different image on the homepage to the publication detail page by setting <code>image_preview = &quot;my-image.jpg&quot;</code>. This can be useful if you wish to scale down the image for the homepage or simply if you just wish to show a different image for the preview.</p>
<div class="alert alert-warning">
<p>Any double quotes (<code>&quot;</code>) or backslashes (e.g. LaTeX <code>\times</code>) occurring within the value of any frontmatter parameter (such as the <em>abstract</em>) should be escaped with a backslash (<code>\</code>). For example, the symbol <code>&quot;</code> and LaTeX text <code>\times</code> become <code>\&quot;</code> and <code>\\times</code>, respectively. Refer to the <a href="https://github.com/toml-lang/toml#user-content-string" target="_blank">TOML documentation</a> for more info.</p>
</div>
<h2 id="post-an-article">Post an article</h2>
<p>To create a blog/news article:</p>
<pre><code>hugo new post/my-article-name.md
</code></pre>
<p>Then edit the newly created file <code>content/post/my-article-name.md</code> with your full title and content.</p>
<p>Hugo will automatically generate summaries of posts that appear on the homepage. If you are dissatisfied with an automated summary, you can either limit the summary length by appropriately placing <code>&#60;&#33;&#45;&#45;more&#45;&#45;&#62;</code> in the article body, or completely override the automated summary by adding a <code>summary</code> parameter to the <code>+++</code> preamble such that:</p>
<pre><code>summary = &quot;Summary of my post.&quot;
</code></pre>
<p>To disable commenting for a specific post, you can add <code>disable_comments = true</code> to the post <code>+++</code> preamble. Or to disable commenting for all posts, you can either set <code>disqusShortname = &quot;&quot;</code> or <code>disable_comments = true</code> in <code>config.toml</code>.</p>
<h2 id="create-a-project">Create a project</h2>
<p>To create a project:</p>
<pre><code>hugo new project/my-project-name.md
</code></pre>
<p>Then edit the newly created file <code>content/project/my-project-name.md</code>. Either you can link the project to an external project website by setting the <code>external_link = &quot;http://external-project.com&quot;</code> variable at the top of the file, or you can add content (below the final <code>+++</code>) in order to render a project page on your website.</p>
<h2 id="create-a-talk">Create a talk</h2>
<p>To create a talk:</p>
<pre><code>hugo new talk/my-talk-name.md
</code></pre>
<p>Then edit the newly created file <code>content/talk/my-talk-name.md</code> with your full talk title and details. Note that many of the talk parameters are similar to the publication parameters.</p>
<h2 id="manage-node-index-pages">Manage node index pages</h2>
<p>The node index pages (e.g. <code>/post/</code>) are the special pages which list all of your content. They can exist for blog posts, publications, and talks. The homepage widgets will automatically link to the node index pages when you have more items of content than can be displayed in the widget. Therefore, if you don&rsquo;t have much content, you may not see the automatic links yet - but you can also manually link to them using a normal Markdown formatted link in your content.</p>
<p>You can edit the title and add your own content, such as an introduction, by creating and editing the following content files for the node indexes:</p>
<pre><code>hugo new post/_index.md
hugo new publication/_index.md
hugo new talk/_index.md
</code></pre>
<p>Then remove all parameters except for <code>title</code>, <code>math</code>, <code>highlight</code>, and <code>date</code>. Edit the <code>title</code> parameter as desired and add any content after the <code>+++</code> preamble/frontmatter ends. For example, you should have something similar to:</p>
<pre><code class="language-toml">+++
title = &quot;List of my posts&quot;
date = &quot;2017-01-01T00:00:00Z&quot;
math = false
highlight = false
+++
Below is an automatically generated list of all my blog posts!
</code></pre>
<h2 id="removing-content">Removing content</h2>
<p>Generally, to remove content, simply delete the relevant file from your <code>content/post</code>, <code>content/publication</code>, <code>content/project</code>, or <code>content/talk</code> folder.</p>
<h2 id="view-your-updated-site">View your updated site</h2>
<p>After you have made changes to your site, you can view it by running the <code>hugo server --watch</code> command and then opening <a href="http://localhost:1313" target="_blank">localhost:1313</a> in your web browser.</p>
<h2 id="deploy-your-site">Deploy your site</h2>
<p>Finally, you can build the static website to a <code>public/</code> folder ready for deployment using the <code>hugo</code> command.</p>
<p>You may then deploy your site by copying the <code>public/</code> directory (by FTP, SFTP, WebDAV, Rsync, git push, etc.) to your production web server.</p>
<p>Note that running <code>hugo</code> does not remove any previously generated files before building. Therefore, it&rsquo;s best practice to delete your <code>public/</code> directory prior to running <code>hugo</code> to ensure no old or interim files are deployed to your server.</p></description>
</item>
<item>
<title>Writing content with Markdown, LaTeX, and Shortcodes</title>
<link>http://paololucchino.com/post/writing-markdown-latex/</link>
<pubDate>Wed, 20 Apr 2016 10:00:00 +0000</pubDate>
<guid>http://paololucchino.com/post/writing-markdown-latex/</guid>
<description><p>Content can be written using <a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet" target="_blank">Markdown</a>, <a href="https://en.wikibooks.org/wiki/LaTeX/Mathematics" target="_blank">LaTeX math</a>, and <a href="http://gohugo.io/extras/shortcodes/" target="_blank">Hugo Shortcodes</a>. Additionally, HTML may be used for advanced formatting. This article gives an overview of the most common formatting options.</p>
<h2 id="sub-headings">Sub-headings</h2>
<pre><code>## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
</code></pre>
<h2 id="emphasis">Emphasis</h2>
<pre><code>Italics with *asterisks* or _underscores_.
Bold with **asterisks** or __underscores__.
Combined emphasis with **asterisks and _underscores_**.
Strikethrough with ~~two tildes~~.
</code></pre>
<h2 id="ordered-lists">Ordered lists</h2>
<pre><code>1. First item
2. Another item
</code></pre>
<h2 id="unordered-lists">Unordered lists</h2>
<pre><code>* First item
* Another item
</code></pre>
<h2 id="images">Images</h2>
<p>Images may be added to a page by placing them in your <code>static/img/</code> folder and referencing them using one of the following two notations:</p>
<p>A general image:</p>
<pre><code>![alternative text for search engines](/img/screenshot.png)
</code></pre>
<p>A numbered figure with caption:</p>
<pre><code>{{&lt; figure src=&quot;/img/screenshot.png&quot; title=&quot;Figure Caption&quot; &gt;}}
</code></pre>
<h2 id="links">Links</h2>
<pre><code>[I'm a link](https://www.google.com)
[A post]({{&lt; ref &quot;post/hi.md&quot; &gt;}})
[A publication]({{&lt; ref &quot;publication/hi.md&quot; &gt;}})
[A project]({{&lt; ref &quot;project/hi.md&quot; &gt;}})
[Another section]({{&lt; relref &quot;hi.md#who&quot; &gt;}})
</code></pre>
<h2 id="emojis">Emojis</h2>
<p>See the <a href="http://www.webpagefx.com/tools/emoji-cheat-sheet/" target="_blank">Emoji cheat sheet</a> for available emoticons. The following serves as an example, but you should remove the spaces between each emoji name and pair of semicolons:</p>
<pre><code>I : heart : Academic : smile :
</code></pre>
<p>I ❤️ Academic 😄</p>
<h2 id="blockquote">Blockquote</h2>
<pre><code>&gt; This is a blockquote.
</code></pre>
<blockquote>
<p>This is a blockquote.</p>
</blockquote>
<h2 id="footnotes">Footnotes</h2>
<pre><code>I have more [^1] to say.
[^1]: Footnote example.
</code></pre>
<p>I have more <sup class="footnote-ref" id="fnref:1"><a rel="footnote" href="#fn:1">1</a></sup> to say.</p>
<h2 id="code-highlighting">Code highlighting</h2>
<p>Pass the <em>language</em> of the code, such as <code>python</code>, as a parameter after three backticks:</p>
<pre><code>```python
# Example of code highlighting
input_string_var = input(&quot;Enter some data: &quot;)
print(&quot;You entered: {}&quot;.format(input_string_var))
```
</code></pre>
<p>Result:</p>
<pre><code class="language-python"># Example of code highlighting
input_string_var = input(&quot;Enter some data: &quot;)
print(&quot;You entered: {}&quot;.format(input_string_var))
</code></pre>
<h3 id="highlighting-options">Highlighting options</h3>
<p>The Academic theme uses <a href="https://highlightjs.org" target="_blank">highlight.js</a> for source code highlighting, and highlighting is enabled by default for all pages. However, several configuration options are supported that allow finer-grained control over highlight.js.</p>
<p>The following table lists the supported options for configuring highlight.js, along with their expected type and a short description. A &ldquo;yes&rdquo; in the <strong>config.toml</strong> column means the value can be set globally in <code>config.toml</code>, and a &ldquo;yes&rdquo; in the <strong>preamble</strong> column means that the value can be set locally in a particular page&rsquo;s preamble.</p>
<table>
<thead>
<tr>
<th>option</th>
<th>type</th>
<th>description</th>
<th>config.toml</th>
<th>preamble</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>highlight</code></td>
<td>boolean</td>
<td>enable/disable highlighting</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td><code>highlight_languages</code></td>
<td>slice</td>
<td>choose additional languages</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td><code>highlight_style</code></td>
<td>string</td>
<td>choose a highlighting style</td>
<td>yes</td>
<td>no</td>
</tr>
<tr>
<td><code>highlight_version</code></td>
<td>string</td>
<td>choose the highlight.js version</td>
<td>yes</td>
<td>no</td>
</tr>
</tbody>
</table>
<h4 id="option-highlight">Option <code>highlight</code></h4>
<p>The <code>highlight</code> option allows enabling or disabling the inclusion of highlight.js, either globally or for a particular page. If the option is unset, it has the same effect as if you had specified <code>highlight = true</code>. That is, the highlight.js javascript and css files will be included in every page. If you&rsquo;d like to only include highlight.js files on pages that actually require source code highlighting, you can set <code>highlight = false</code> in <code>config.toml</code>, and then override it by setting <code>highlight = true</code> in the preamble of any pages that require source code highlighting. Conversely, you could enable highlighting globally, and disable it locally for pages that do not require it. Here is a table that shows whether highlighting will be enabled for a page, based on the values of <code>highlight</code> set in <code>config.toml</code> and/or the page&rsquo;s preamble.</p>
<table>
<thead>
<tr>
<th>config.toml</th>
<th>page preamble</th>
<th>highlighting enabled for page?</th>
</tr>
</thead>
<tbody>
<tr>
<td>unset or true</td>
<td>unset or true</td>
<td>yes</td>
</tr>
<tr>
<td>unset or true</td>
<td>false</td>
<td>no</td>
</tr>
<tr>
<td>false</td>
<td>unset or false</td>
<td>no</td>
</tr>
<tr>
<td>false</td>
<td>true</td>
<td>yes</td>
</tr>
</tbody>
</table>
<h4 id="option-highlight-languages">Option <code>highlight_languages</code></h4>
<p>The <code>highlight_languages</code> option allows you to specify additional languages that are supported by highlight.js, but are not considered &ldquo;common&rdquo; and therefore are not supported by default. For example, if you want source code highlighting for Go and clojure in all pages, set <code>highlight_languages = [&quot;go&quot;, &quot;clojure&quot;]</code> in <code>config.toml</code>. If, on the other hand, you want to enable a language only for a specific page, you can set <code>highlight_languages</code> in that page&rsquo;s preamble.</p>
<p>The <code>highlight_languages</code> options specified in <code>config.toml</code> and in a page&rsquo;s preamble are additive. That is, if <code>config.toml</code> contains, <code>highlight_languages = [&quot;go&quot;]</code> and the page&rsquo;s preamble contains <code>highlight_languages = [&quot;ocaml&quot;]</code>, then javascript files for <em>both</em> go and ocaml will be included for that page.</p>
<p>If the <code>highlight_languages</code> option is set, then the corresponding javascript files will be served from the <a href="https://cdnjs.com/libraries/highlight.js/" target="_blank">cdnjs server</a>. To see a list of available languages, visit the <a href="https://cdnjs.com/libraries/highlight.js/" target="_blank">cdnjs page</a> and search for links with the word &ldquo;languages&rdquo;.</p>
<p>The <code>highlight_languages</code> option provides an easy and convenient way to include support for additional languages to be severed from a CDN. If serving unmodified files from cdnjs doesn&rsquo;t meet your needs, you can include javascript files for additional language support via one of the methods described in the <a href="http://paololucchino.com/post/getting-started/#third-party-and-local-scripts-js" target="_blank">getting started guide</a>.</p>
<h4 id="option-highlight-style">Option <code>highlight_style</code></h4>
<p>The <code>highlight_style</code> option allows you to select an alternate css style for highlighted code. For example, if you wanted to use the solarized-dark style, you could set <code>highlight_style = &quot;solarized-dark&quot;</code> in <code>config.toml</code>.</p>
<p>If the <code>highlight_style</code> option is unset, the default is to use the file <code>/css/highlight.min.css</code>, either the one provided by the Academic theme, or else the one in your local <code>static</code> directory. The <code>/css/highlight.min.css</code> file provided by Academic is equivalent to the <code>github</code> style from highlight.js.</p>
<p>If the <code>highlight_style</code> option <em>is</em> set, then <code>/css/highlight.min.css</code> is ignored, and the corresponding css file will be served from the <a href="https://cdnjs.com/libraries/highlight.js/" target="_blank">cdnjs server</a>. To see a list of available styles, visit the <a href="https://cdnjs.com/libraries/highlight.js/" target="_blank">cdnjs page</a> and search for links with the word &ldquo;styles&rdquo;.</p>
<p>See the <a href="https://highlightjs.org/static/demo/" target="_blank">highlight.js demo page</a> for examples of available styles.</p>
<div class="alert alert-note">
<p>Not all styles listed on the <a href="https://highlightjs.org/static/demo/" target="_blank">highlight.js demo page</a> are available from the <a href="https://cdnjs.com/libraries/highlight.js/" target="_blank">cdnjs server</a>. If you want to use a style that is not served by cdnjs, just leave <code>highlight_style</code> unset, and place the corresponding css file in <code>/static/css/highlight.min.css</code>.</p>
</div>
<div class="alert alert-note">
<p>If you don&rsquo;t want to change the default style that ships with Academic but you do want the style file served from the <a href="https://cdnjs.com/libraries/highlight.js/" target="_blank">cdnjs server</a>, set <code>highlight_style = &quot;github&quot;</code> in <code>config.toml</code>.</p>
</div>
<p>The <code>highlight_style</code> option is only recognized when set in <code>config.toml</code>. Setting <code>highlight_style</code> in your page&rsquo;s preamble has no effect.</p>
<h4 id="option-highlight-version">Option <code>highlight_version</code></h4>
<p>The <code>highlight_version</code> option, as the name implies, allows you to select the version of highlight.js you want to use. The default value is &ldquo;9.9.0&rdquo;. The <code>highlight_version</code> option is only recognized when set in <code>config.toml</code>. Setting <code>highlight_version</code> in your page&rsquo;s preamble has no effect.</p>
<h2 id="twitter-tweet">Twitter tweet</h2>
<p>To include a single tweet, pass the tweet’s ID from the tweet&rsquo;s URL as parameter to the shortcode:</p>
<pre><code>{{&lt; tweet 666616452582129664 &gt;}}
</code></pre>
<h2 id="youtube">Youtube</h2>
<pre><code>{{&lt; youtube w7Ft2ymGmfc &gt;}}
</code></pre>
<h2 id="vimeo">Vimeo</h2>
<pre><code>{{&lt; vimeo 146022717 &gt;}}
</code></pre>
<h2 id="github-gist">GitHub gist</h2>
<pre><code>{{&lt; gist USERNAME GIST-ID &gt;}}
</code></pre>
<h2 id="speaker-deck">Speaker Deck</h2>
<pre><code>{{&lt; speakerdeck 4e8126e72d853c0060001f97 &gt;}}
</code></pre>
<h2 id="rm-latex-math">$\rm \LaTeX$ math</h2>
<pre><code class="language-TeX">$$\left [ – \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$
</code></pre>
<p>$$\left [ – \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$</p>
<p>Alternatively, inline math can be written by wrapping the formula with only a single <code>$</code>:</p>
<pre><code>This is inline: $\mathbf{y} = \mathbf{X}\boldsymbol\beta + \boldsymbol\varepsilon$
</code></pre>
<p>This is inline: $\mathbf{y} = \mathbf{X}\boldsymbol\beta + \boldsymbol\varepsilon$</p>
<h2 id="table">Table</h2>
<p>Code:</p>
<pre><code class="language-Markdown">| Command | Description |
| ------------------| ------------------------------ |
| `hugo` | Build your website. |
| `hugo serve -w` | View your website. |
</code></pre>
<p>Result:</p>
<table>
<thead>
<tr>
<th>Command</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>hugo</code></td>
<td>Build your website.</td>
</tr>
<tr>
<td><code>hugo serve -w</code></td>
<td>View your website.</td>
</tr>
</tbody>
</table>
<h2 id="alerts">Alerts</h2>
<p>Alerts are a useful feature that add side content such as tips, notes, or warnings to your articles. They are especially handy when writing educational tutorial-style articles. Use the corresponding shortcodes to enable alerts inside your content:</p>
<pre><code>{{% alert note %}}
Here's a tip or note...
{{% /alert %}}
</code></pre>
<p>This will display the following <em>note</em> block:</p>
<div class="alert alert-note">
<p>Here&rsquo;s a tip or note&hellip;</p>
</div>
<pre><code>{{% alert warning %}}
Here's some important information...
{{% /alert %}}
</code></pre>
<p>This will display the following <em>warning</em> block:</p>
<div class="alert alert-warning">
<p>Here&rsquo;s some important information&hellip;</p>
</div>
<div class="footnotes">
<hr />
<ol>
<li id="fn:1">Footnote example.
<a class="footnote-return" href="#fnref:1"><sup>^</sup></a></li>
</ol>
</div></description>
</item>
<item>
<title>Explaining patterns in the school-to-work transition: An analysis using optimal matching</title>
<link>http://paololucchino.com/publication/explaining-patterns-in-the-school-to-work-transition-An-analysis-using-optimal-matching/</link>
<pubDate>Mon, 01 Dec 2014 22:05:49 +0200</pubDate>
<guid>http://paololucchino.com/publication/explaining-patterns-in-the-school-to-work-transition-An-analysis-using-optimal-matching/</guid>
<description></description>
</item>
<item>
<title>Migrate from Jekyll to Hugo</title>
<link>http://paololucchino.com/post/migrate-from-jekyll/</link>
<pubDate>Mon, 10 Mar 2014 00:00:00 +0000</pubDate>
<guid>http://paololucchino.com/post/migrate-from-jekyll/</guid>
<description>
<p>Here are a few tips for migrating an existing website from Jekyll to Hugo. These tips can be applied in conjunction with following Hugo Academic&rsquo;s <a href="http://paololucchino.com/post/getting-started/" target="_blank">getting started guide</a>.</p>
<h2 id="move-static-content-to-static">Move static content to <code>static</code></h2>
<p>Jekyll has a rule that any directory not starting with <code>_</code> will be copied as-is to the <code>_site</code> output. Hugo keeps all static content under <code>static</code>. You should therefore move it all there.
With Jekyll, something that looked like</p>
<pre><code>▾ &lt;root&gt;/
▾ images/
logo.png
</code></pre>
<p>should become</p>
<pre><code>▾ &lt;root&gt;/
▾ static/
▾ images/
logo.png
</code></pre>
<p>Additionally, you&rsquo;ll want any files that should reside at the root (such as <code>CNAME</code>) to be moved to <code>static</code>.</p>
<h2 id="fix-content">Fix content</h2>
<p>Depending on the amount of customization that was done for each post in Jekyll, this step will require more or less effort. There are no hard and fast rules here except that <code>hugo server --watch</code> and the Hugo Academic example site are your friends. Test your changes and fix errors as needed.</p>
<h2 id="publish">Publish</h2>
<p>The default is for Jekyll to publish the website to a <code>_site</code> directory, whereas Hugo publishes to a <code>public</code> directory.</p>
<h2 id="a-practical-example">A practical example</h2>
<p>Alexandre Normand migrated his website from Jekyll to Hugo in less than a day. You can see all his changes by looking at this GitHub <a href="https://github.com/alexandre-normand/alexandre-normand/compare/869d69435bd2665c3fbf5b5c78d4c22759d7613a...b7f6605b1265e83b4b81495423294208cc74d610" target="_blank">diff</a>. However, bear in mind that this example is <strong>not specific to the Academic theme nor does it use the latest version of Hugo</strong>.</p>
</description>
</item>
</channel>
</rss>