Updated Hugo Academic theme to sync the upstream repo

Feb 27, 2017·
Yu Cheng 鄭嵎
Yu Cheng 鄭嵎
· 2 min read
blog

I just updated the Hugo-Academic theme from the upstream repo. The structure has been greatly changed. Now each section on the index.html is a widget. Changing Research Interests and Education is no longer inside the config.toml, but the about.md as metadata. I also added a Talk widget, and the Project widget now showcase my research in cards.

Below I would like to try out some new features:


Emojis!!!

Now the Hugo-Academic theme supports Emojis natively. Check here for a cheat-sheet of available Emojis.

😃 😪 🎾 👍 🀄 Tomorrow is Vicky’s defense! 📅


Blockquotes

This is not part of the theme. I updated the custom css file to achieve this effect.

We live in a society exquisitely dependent on science and technology, in which hardly anyone knows anything about science and technology.

Carl Sagan


Syntax highlighting using highlight.js

Python:

from pandas import Series, DataFrame, Panel
import gsw
import scipy.io as sio
fulllist=sorted(glob.glob('/raid60/kirtman/HRC07/ocn/mo_nc4/*.nc'))

months=pd.period_range('1951-01', '2002-12', freq='M') 
OHC300_HRC07=Series(OHC300,index=months)
OHC700_HRC07=Series(OHC700,index=months)
OHC2000_HRC07=Series(OHC2000,index=months)

Matlab:

MMend=str2num(end_date(6:7)); 
DDend=str2num(end_date(9:10));

for yrid=find(yyy==YYs):find(yyy==YYe)
 if (yrid==find(yyy==YYs))
   mstart=MMs;
 else
   mstart=1;
 end
 if (yrid==find(yyy==YYe))
   mend=MMend;
 else

For available languages and styles, check link


Twitter Tweet

Youtube video


Alerts

Note
It’s about time to sleep!
Warning
Hope this will help you.

Some more options in the Hugo-Academic Theme. That’s all for now. I guess the only thing I missed about Pelican was its plugin to embed ipython notebook cells to the post. Haven’t found a hugo-shortcode for that purpose yet. Or maybe a shortcode to embed an Instagram post?

Wow, there is a built-in shortcode for Instagram!

Yu Cheng 鄭嵎
Authors
Sustainability Data Scientist
Sustainability data scientist at MIT. Passionate about climate modeling, data engineering, and making sense of complex systems.