Initial commit
192
config.toml
Normal file
@@ -0,0 +1,192 @@
|
||||
baseurl = "https://cwpearson.github.io"
|
||||
title = "Carl Pearson"
|
||||
copyright = "© 2017 Carl Pearson"
|
||||
theme = "hugo-academic-master"
|
||||
enableEmoji = true
|
||||
footnotereturnlinkcontents = "<sup>^</sup>"
|
||||
|
||||
# Enable comments by entering your Disqus shortname
|
||||
disqusShortname = ""
|
||||
|
||||
# Enable analytics by entering your Google Analytics tracking ID
|
||||
googleAnalytics = ""
|
||||
|
||||
# Default language to use (if you setup multilingual support)
|
||||
defaultContentLanguage = "en"
|
||||
defaultContentLanguageInSubdir = false
|
||||
|
||||
[blackfriday]
|
||||
hrefTargetBlank = true
|
||||
|
||||
[params]
|
||||
name = "Carl Pearson"
|
||||
role = "PhD Candidate"
|
||||
organization = "University of Illinois Urbana-Champaign"
|
||||
organization_url = ""
|
||||
avatar = "portrait.jpg"
|
||||
email = "<my last name> @illinois.edu"
|
||||
address = ""
|
||||
office_hours = ""
|
||||
phone = ""
|
||||
skype = ""
|
||||
telegram = ""
|
||||
|
||||
# Enable Keybase in Contact section by entering your keybase.io username.
|
||||
keybase = ""
|
||||
|
||||
# Date format (refer to Go's date format: http://flippinggodateformat.com )
|
||||
# Examples: "Mon, Jan 2, 2006" or "2006-01-02"
|
||||
date_format = "Mon, Jan 2, 2006"
|
||||
|
||||
# Enable global LaTeX math rendering?
|
||||
# If false, you can enable it locally on a per page basis.
|
||||
math = false
|
||||
|
||||
# Highlight.js options
|
||||
# highlight
|
||||
# Enable global source code highlighting? If false, you can
|
||||
# override it for a particular page in that page's preamble.
|
||||
#
|
||||
# Example: highlight = true
|
||||
#
|
||||
# highlight_languages
|
||||
# Add support for highlighting additional languages. Support for
|
||||
# languages mentioned here will be included in all pages. You
|
||||
# can also set this variable for a particular page in that
|
||||
# page's preamble.
|
||||
#
|
||||
# Example: highlight_languages = ["go", "lisp", "ocaml"]
|
||||
#
|
||||
# highlight_style
|
||||
# Choose a different CSS style for highlighting source
|
||||
# code. Setting this option in a page's preamble has no
|
||||
# effect.
|
||||
#
|
||||
# Example: highlight_style = "github-gist"
|
||||
#
|
||||
# highlight_version
|
||||
# Choose the version of highlight.js you want. Setting this
|
||||
# option in a page's preamble has no effect.
|
||||
#
|
||||
# Example: highlight_version = "9.9.0"
|
||||
#
|
||||
# For the list of supported languages, styles, and versions, see:
|
||||
# https://cdnjs.com/libraries/highlight.js/
|
||||
#
|
||||
# For more info on the highlighting options, see:
|
||||
# https://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/#highlighting-options
|
||||
highlight = true
|
||||
highlight_languages = []
|
||||
# highlight_style = "github"
|
||||
# highlight_version = "9.9.0"
|
||||
|
||||
# Enable native social sharing buttons?
|
||||
sharing = true
|
||||
|
||||
# Link custom CSS and JS assets
|
||||
# (relative to /static/css and /static/js respectively)
|
||||
custom_css = []
|
||||
custom_js = []
|
||||
|
||||
# Publication types.
|
||||
# Used to categorize publications.
|
||||
# The index of the publication type in the list is used as its unique numerical identifier.
|
||||
# The numeric ID is used in a publication's frontmatter to categorize it.
|
||||
# The language can be edited below.
|
||||
# For multi-lingual sites, copy this block to each language section at the end of this file.
|
||||
publication_types = [
|
||||
'Uncategorized', # 0
|
||||
'Conference proceedings', # 1
|
||||
'Journal', # 2
|
||||
'Work in progress', # 3
|
||||
'Technical report', # 4
|
||||
'Book', # 5
|
||||
'Book chapter' # 6
|
||||
]
|
||||
|
||||
# Social/Academic Networking
|
||||
#
|
||||
# Icon pack "fa" includes the following social network icons:
|
||||
#
|
||||
# twitter, weibo, linkedin, github, facebook, pinterest, google-plus,
|
||||
# youtube, instagram, soundcloud
|
||||
#
|
||||
# For email icon, use "fa" icon pack, "envelope" icon, and
|
||||
# "mailto:your@email.com" as the link.
|
||||
#
|
||||
# Full list: https://fortawesome.github.io/Font-Awesome/icons/
|
||||
#
|
||||
# Icon pack "ai" includes the following academic network icons:
|
||||
#
|
||||
# google-scholar, arxiv, orcid, researchgate, mendeley
|
||||
#
|
||||
# Full list: https://jpswalsh.github.io/academicons/
|
||||
|
||||
# [[params.social]]
|
||||
# icon = "envelope"
|
||||
# icon_pack = "fa"
|
||||
# link = "mailto:test@example.org"
|
||||
|
||||
[[params.social]]
|
||||
icon = "twitter"
|
||||
icon_pack = "fa"
|
||||
link = "//twitter.com/GeorgeCushen"
|
||||
|
||||
[[params.social]]
|
||||
icon = "google-scholar"
|
||||
icon_pack = "ai"
|
||||
link = "https://scholar.google.co.uk/citations?user=sIwtMXoAAAAJ"
|
||||
|
||||
[[params.social]]
|
||||
icon = "github"
|
||||
icon_pack = "fa"
|
||||
link = "//github.com/cwpearson"
|
||||
|
||||
|
||||
# Navigation Links
|
||||
# To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
|
||||
# desired widget in your `content/home/` folder.
|
||||
# The weight parameter defines the order that the links will appear in.
|
||||
|
||||
[[menu.main]]
|
||||
name = "Home"
|
||||
url = "#about"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "Publications"
|
||||
url = "#publications_selected"
|
||||
weight = 2
|
||||
|
||||
[[menu.main]]
|
||||
name = "Posts"
|
||||
url = "#posts"
|
||||
weight = 3
|
||||
|
||||
[[menu.main]]
|
||||
name = "Projects"
|
||||
url = "#projects"
|
||||
weight = 4
|
||||
|
||||
[[menu.main]]
|
||||
name = "Teaching"
|
||||
url = "#teaching"
|
||||
weight = 5
|
||||
|
||||
[[menu.main]]
|
||||
name = "Contact"
|
||||
url = "#contact"
|
||||
weight = 6
|
||||
|
||||
# Taxonomies.
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
category = "categories"
|
||||
publication_type = "publication_types"
|
||||
|
||||
# Languages
|
||||
# Create a [languages.X] block for each language you want, where X is the language ID.
|
||||
|
||||
# Configure the English version of the website.
|
||||
[languages.en]
|
||||
languageCode = "en-us"
|
34
content/home/about.md
Normal file
@@ -0,0 +1,34 @@
|
||||
+++
|
||||
# About/Biography widget.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
widget = "about"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 1
|
||||
|
||||
# List your academic interests.
|
||||
[interests]
|
||||
interests = [
|
||||
"High Performance Computing",
|
||||
"Compilers",
|
||||
"Cognitive Computing"
|
||||
]
|
||||
|
||||
# List your qualifications (such as academic degrees).
|
||||
[[education.courses]]
|
||||
course = "BS in Engineering"
|
||||
institution = "Harvey Mudd College"
|
||||
year = 2013
|
||||
|
||||
+++
|
||||
|
||||
# Biography
|
||||
|
||||
I am a PhD candidate in the Electrical and Computer Engineering department at the University of Illinois at Urbana-Champaign and a member of the IMPACT Research Group led by Wen-Mei Hwu.
|
||||
|
||||
I am working on developing CAB (Cognitive Application Builder) as part of the joint UIUC / IBM C3SR cognitive computing systems research center. CAB will allow cognitive application developers to quickly write and debug high-performance scalable cogntitive computing applications.
|
||||
|
||||
I am also actively involved in high-performance application studies through the PAID-IME program and industry research collaborations with IBM and Huawei. The focus of these activities is to apply tools and techniques developed in the IMPACT group to improve the performance of real-world applications.
|
18
content/home/contact.md
Normal file
@@ -0,0 +1,18 @@
|
||||
+++
|
||||
# Contact widget.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Contact"
|
||||
subtitle = ""
|
||||
widget = "contact"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 70
|
||||
|
||||
# Automatically link email and phone?
|
||||
autolink = true
|
||||
|
||||
+++
|
||||
|
22
content/home/posts.md
Normal file
@@ -0,0 +1,22 @@
|
||||
+++
|
||||
# Recent Posts widget.
|
||||
# Note: this widget will only display if `content/post/` contains posts.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Recent Posts"
|
||||
subtitle = ""
|
||||
widget = "posts"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 40
|
||||
|
||||
# Show posts that contain the following tags. Default to any tags.
|
||||
tags = []
|
||||
|
||||
# Number of posts to list.
|
||||
count = 5
|
||||
|
||||
+++
|
||||
|
37
content/home/projects.md
Normal file
@@ -0,0 +1,37 @@
|
||||
+++
|
||||
# Projects widget.
|
||||
# Note: this widget will only display if `content/project/` contains projects.
|
||||
|
||||
date = "2017-03-12T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Projects"
|
||||
subtitle = ""
|
||||
widget = "projects"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 50
|
||||
|
||||
# View.
|
||||
# Customize how projects are displayed.
|
||||
# Legend: 0 = list, 1 = cards.
|
||||
view = 1
|
||||
|
||||
# Filter toolbar.
|
||||
# Add or remove as many filters (`[[filter]]` instances) as you like.
|
||||
# Use "*" tag to show all projects or an existing tag prefixed with "." to filter by specific tag.
|
||||
# To remove toolbar, delete/comment all instances of `[[filter]]` below.
|
||||
[[filter]]
|
||||
name = "All"
|
||||
tag = "*"
|
||||
|
||||
[[filter]]
|
||||
name = "C3SR"
|
||||
tag = ".c3sr"
|
||||
|
||||
[[filter]]
|
||||
name = "Other"
|
||||
tag = ".other"
|
||||
|
||||
+++
|
||||
|
22
content/home/publications.md
Normal file
@@ -0,0 +1,22 @@
|
||||
+++
|
||||
# Recent Publications widget.
|
||||
# Note: this widget will only display if `content/publication/` contains publications.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Recent Publications"
|
||||
subtitle = ""
|
||||
widget = "publications"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 20
|
||||
|
||||
# Number of publications to list.
|
||||
count = 10
|
||||
|
||||
# Show publication details (such as abstract)? (true/false)
|
||||
detailed_list = false
|
||||
|
||||
+++
|
||||
|
20
content/home/publications_selected.md
Normal file
@@ -0,0 +1,20 @@
|
||||
+++
|
||||
# Selected Publications widget.
|
||||
# Note: this widget will only display if `content/publication/` contains publications
|
||||
# with `selected = true` in their `+++` preamble.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Selected Publications"
|
||||
subtitle = ""
|
||||
widget = "publications_selected"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 10
|
||||
|
||||
# Show publication details (such as abstract)? (true/false)
|
||||
detailed_list = true
|
||||
|
||||
+++
|
||||
|
21
content/home/talks.md
Normal file
@@ -0,0 +1,21 @@
|
||||
+++
|
||||
# Recent and Upcoming Talks widget.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Recent & Upcoming Talks"
|
||||
subtitle = ""
|
||||
widget = "talks"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 30
|
||||
|
||||
# Number of talks to list.
|
||||
count = 10
|
||||
|
||||
# Show talk details (such as abstract)? (true/false)
|
||||
detailed_list = false
|
||||
|
||||
+++
|
||||
|
21
content/home/teaching.md
Normal file
@@ -0,0 +1,21 @@
|
||||
+++
|
||||
# An example of using the custom widget to create your own homepage section.
|
||||
# To create more sections, duplicate this file and edit the values below as desired.
|
||||
|
||||
date = "2017-03-12T21:15:00"
|
||||
draft = false
|
||||
|
||||
title = "Teaching"
|
||||
subtitle = ""
|
||||
widget = "custom"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 60
|
||||
|
||||
+++
|
||||
|
||||
I have been a teaching assistant for the following courses
|
||||
|
||||
- ECE408/CS483: Heterogeneous Parallel Programming at the University of Illinois
|
||||
|
||||
I have also been a teaching assistant for the PUMPS Summer School in Barcelona.
|
12
content/post/_index.md
Normal file
@@ -0,0 +1,12 @@
|
||||
+++
|
||||
title = "Posts"
|
||||
date = "2017-01-01T00:00:00Z"
|
||||
math = false
|
||||
highlight = false
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
caption = ""
|
||||
|
||||
+++
|
15
content/project/cab.md
Normal file
@@ -0,0 +1,15 @@
|
||||
+++
|
||||
highlight = true
|
||||
external_link = ""
|
||||
image_preview = ""
|
||||
summary = "Summary text"
|
||||
tags = ["c3sr"]
|
||||
date = "2017-03-12T21:24:51-05:00"
|
||||
title = "cab"
|
||||
math = false
|
||||
|
||||
[header]
|
||||
caption = ""
|
||||
image = ""
|
||||
|
||||
+++
|
23
content/publication/2014chen.md
Normal file
@@ -0,0 +1,23 @@
|
||||
+++
|
||||
draft = false
|
||||
|
||||
date = "2014-01-01"
|
||||
title = "Adaptive Cache Bypass and Insertion for Many-Core Accelerators"
|
||||
authors = ["Xuhao Chen", "Shengzhao Wu", "Li-Wen Chang", "Wei-Sheng Huang", "Carl Pearson", "Wen-mei Hwu"]
|
||||
|
||||
abstract = "An abstract..."
|
||||
|
||||
image = ""
|
||||
image_preview = ""
|
||||
math = false
|
||||
publication = "The publishing part of the citation goes here. You may use *Markdown* for italics etc."
|
||||
|
||||
url_code = ""
|
||||
url_dataset = ""
|
||||
url_pdf = "pdf/2014chen.pdf"
|
||||
url_project = ""
|
||||
url_slides = ""
|
||||
url_video = ""
|
||||
|
||||
selected = false
|
||||
+++
|
23
content/publication/2016dakkak.md
Normal file
@@ -0,0 +1,23 @@
|
||||
+++
|
||||
draft = false
|
||||
|
||||
date = "2016-01-01"
|
||||
title = "WebGPU: A Scalable Online Development Platform for GPU Programming Courses"
|
||||
authors = ["Adbul Dakkak", "Carl Pearson", "Cheng Li"]
|
||||
|
||||
abstract = "An abstract..."
|
||||
|
||||
image = ""
|
||||
image_preview = ""
|
||||
math = false
|
||||
publication = "The publishing part of the citation goes here. You may use *Markdown* for italics etc."
|
||||
|
||||
url_code = ""
|
||||
url_dataset = ""
|
||||
url_pdf = "pdf/2016dakkak.pdf"
|
||||
url_project = ""
|
||||
url_slides = ""
|
||||
url_video = ""
|
||||
|
||||
selected = true
|
||||
+++
|
12
content/publication/_index.md
Normal file
@@ -0,0 +1,12 @@
|
||||
+++
|
||||
title = "Publications"
|
||||
date = "2017-01-01T00:00:00Z"
|
||||
math = false
|
||||
highlight = false
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
caption = ""
|
||||
|
||||
+++
|
14
content/tags/academic/_index.md
Normal file
@@ -0,0 +1,14 @@
|
||||
+++
|
||||
title = "Content tagged as 'Academic'"
|
||||
date = "2017-01-01T00:00:00"
|
||||
math = false
|
||||
highlight = false
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = "headers/bubbles-wide.jpg"
|
||||
caption = ""
|
||||
|
||||
+++
|
||||
|
||||
Here is a list of all the content that has been tagged as *academic*.
|
12
content/talk/_index.md
Normal file
@@ -0,0 +1,12 @@
|
||||
+++
|
||||
title = "Recent & Upcoming Talks"
|
||||
date = "2017-01-01T00:00:00Z"
|
||||
math = false
|
||||
highlight = false
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
caption = ""
|
||||
|
||||
+++
|
BIN
static/img/boards.jpg
Normal file
After Width: | Height: | Size: 227 KiB |
BIN
static/img/bubbles.jpg
Normal file
After Width: | Height: | Size: 109 KiB |
BIN
static/img/headers/bubbles-wide.jpg
Normal file
After Width: | Height: | Size: 304 KiB |
BIN
static/img/headers/getting-started.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
static/img/portrait.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
static/pdf/2014chen.pdf
Normal file
BIN
static/pdf/2016dakkak.pdf
Normal file
17
themes/hugo-academic-master/.editorconfig
Normal file
@@ -0,0 +1,17 @@
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.toml]
|
||||
max_line_length = 100
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
20
themes/hugo-academic-master/LICENSE.md
Normal file
@@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 George Cushen
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
82
themes/hugo-academic-master/README.md
Normal file
@@ -0,0 +1,82 @@
|
||||
# Academic: the personal website framework for [Hugo](https://gohugo.io)
|
||||
|
||||
**Academic** is a framework to help you create a beautiful website quickly. Perfect for personal, student, or academic websites. [Check out the latest demo](http://gcushen.github.io/hugo-academic-demo/) of what you'll get in less than 10 minutes.
|
||||
|
||||
[](https://github.com/gcushen/hugo-academic/)
|
||||
|
||||
Key features:
|
||||
|
||||
- Easily manage your homepage, blog posts, publications, talks, and projects
|
||||
- Configurable widgets available for Biography, Publications, Projects, News/Blog, Talks, and Contact
|
||||
- Need a different section? Just use the Custom widget!
|
||||
- Write in [Markdown](http://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/) for easy formatting and code highlighting, with [LaTeX](https://en.wikibooks.org/wiki/LaTeX/Mathematics) for mathematical expressions
|
||||
- Social/academic network linking, [Google Analytics](https://analytics.google.com), and [Disqus](https://disqus.com) comments
|
||||
- Responsive and mobile friendly
|
||||
- Simple and refreshing one page design
|
||||
- Easy to customize
|
||||
|
||||
## Getting Started
|
||||
|
||||
1. [Install Hugo](https://georgecushen.com/create-your-website-with-hugo/#installing-hugo) and create a new website by typing the following commands in your *Terminal* or *Command Prompt* app:
|
||||
|
||||
hugo new site my_website
|
||||
cd my_website
|
||||
|
||||
2. Install Academic with [git](https://help.github.com/articles/set-up-git/):
|
||||
|
||||
git clone https://github.com/gcushen/hugo-academic.git themes/academic
|
||||
|
||||
Or alternatively, [download Academic](https://github.com/gcushen/hugo-academic/archive/master.zip) and extract it into a `themes/academic` folder within your Hugo website.
|
||||
|
||||
3. If you are creating a new website, copy the contents of the `exampleSite` folder to your website root folder, overwriting existing files if necessary. The `exampleSite` folder contains an example config file and content to help you get started.
|
||||
|
||||
cp -av themes/academic/exampleSite/* .
|
||||
|
||||
4. Start the Hugo server from your website root folder:
|
||||
|
||||
hugo server --watch
|
||||
|
||||
Now you can go to [localhost:1313](http://localhost:1313) and your new Academic powered website should appear.
|
||||
|
||||
5. [Customize your website](http://gcushen.github.io/hugo-academic-demo/post/getting-started/#getting-started) and [add your content](http://gcushen.github.io/hugo-academic-demo/post/managing-content/) by referring to the Academic documentation
|
||||
|
||||
6. Build your site by running the `hugo` command. Then [host it for free using Github Pages](https://georgecushen.com/create-your-website-with-hugo/). Or alternatively, copy the generated `public/` directory (by FTP, Rsync, etc.) to your production web server (such as your university's hosting service).
|
||||
|
||||
## Upgrading
|
||||
|
||||
Feel free to *star* the project on [Github](https://github.com/gcushen/hugo-academic/) and monitor the [commits](https://github.com/gcushen/hugo-academic/commits/master) for updates. [Release notes](https://github.com/gcushen/hugo-academic/wiki/Release-Notes) for notable updates are also available to aid upgrading your site.
|
||||
|
||||
Before upgrading Academic, it is recommended to make a backup of your entire website directory, or at least your `themes/academic` directory.
|
||||
|
||||
Before upgrading for the first time, the remote *origin* repository should be renamed to *upstream*:
|
||||
|
||||
$ cd themes/academic
|
||||
$ git remote rename origin upstream
|
||||
|
||||
To list available updates:
|
||||
|
||||
$ cd themes/academic
|
||||
$ git fetch upstream
|
||||
$ git log --pretty=oneline --abbrev-commit --decorate HEAD..upstream/master
|
||||
|
||||
Then, upgrade by running:
|
||||
|
||||
$ git pull upstream
|
||||
|
||||
If you have modified files in `themes/academic`, 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 (`git add <filename>`).
|
||||
|
||||
If there are any issues after upgrading, you may wish to compare your site with the latest [example site](https://github.com/gcushen/hugo-academic/tree/master/exampleSite) to check if any settings changed.
|
||||
|
||||
## Feedback & Contributing
|
||||
|
||||
Please use the [issue tracker](https://github.com/gcushen/hugo-academic/issues) to let me know about any bugs or feature requests, or alternatively make a pull request.
|
||||
|
||||
For general questions about Hugo, there is a [Hugo discussion forum](http://discuss.gohugo.io).
|
||||
|
||||
## License
|
||||
|
||||
Copyright 2017 [George Cushen](https://georgecushen.com).
|
||||
|
||||
Released under the [MIT](https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md) license.
|
||||
|
||||
[](https://github.com/igrigorik/ga-beacon)
|
BIN
themes/hugo-academic-master/academic.png
Normal file
After Width: | Height: | Size: 216 KiB |
2
themes/hugo-academic-master/archetypes/default.md
Normal file
@@ -0,0 +1,2 @@
|
||||
+++
|
||||
+++
|
6
themes/hugo-academic-master/archetypes/home.md
Normal file
@@ -0,0 +1,6 @@
|
||||
+++
|
||||
subtitle = ""
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 100
|
||||
+++
|
11
themes/hugo-academic-master/archetypes/post.md
Normal file
@@ -0,0 +1,11 @@
|
||||
+++
|
||||
math = false
|
||||
highlight = true
|
||||
tags = []
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
caption = ""
|
||||
|
||||
+++
|
26
themes/hugo-academic-master/archetypes/project.md
Normal file
@@ -0,0 +1,26 @@
|
||||
+++
|
||||
# Tags: can be used for filtering projects.
|
||||
# Example: `tags = ["machine-learning", "deep-learning"]`
|
||||
tags = []
|
||||
|
||||
# Project summary to display on homepage.
|
||||
summary = ""
|
||||
|
||||
# Optional image to display on homepage.
|
||||
image_preview = ""
|
||||
|
||||
# Optional external URL for project (replaces project detail page).
|
||||
external_link = ""
|
||||
|
||||
# Does the project detail page use math formatting?
|
||||
math = false
|
||||
|
||||
# Does the project detail page use source code highlighting?
|
||||
highlight = true
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
caption = ""
|
||||
|
||||
+++
|
50
themes/hugo-academic-master/archetypes/publication.md
Normal file
@@ -0,0 +1,50 @@
|
||||
+++
|
||||
|
||||
# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`.
|
||||
authors = [""]
|
||||
|
||||
# Publication type.
|
||||
# Legend:
|
||||
# 0 = Uncategorized
|
||||
# 1 = Conference proceedings
|
||||
# 2 = Journal
|
||||
# 3 = Work in progress
|
||||
# 4 = Technical report
|
||||
# 5 = Book
|
||||
# 6 = Book chapter
|
||||
publication_types = ["0"]
|
||||
|
||||
# Publication name and optional abbreviated version.
|
||||
publication = ""
|
||||
publication_short = ""
|
||||
|
||||
# Abstract and optional shortened version.
|
||||
abstract = ""
|
||||
abstract_short = ""
|
||||
|
||||
# Does this page contain LaTeX math? (true/false)
|
||||
math = false
|
||||
|
||||
# Does this page require source code highlighting? (true/false)
|
||||
highlight = true
|
||||
|
||||
# Featured image thumbnail (optional)
|
||||
image_preview = ""
|
||||
|
||||
# Is this a selected publication? (true/false)
|
||||
selected = false
|
||||
|
||||
# Links (optional)
|
||||
url_pdf = ""
|
||||
url_code = ""
|
||||
url_dataset = ""
|
||||
url_project = ""
|
||||
url_slides = ""
|
||||
url_video = ""
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
caption = ""
|
||||
|
||||
+++
|
22
themes/hugo-academic-master/archetypes/talk.md
Normal file
@@ -0,0 +1,22 @@
|
||||
+++
|
||||
title = ""
|
||||
abstract = ""
|
||||
abstract_short = ""
|
||||
event = ""
|
||||
event_url = ""
|
||||
location = ""
|
||||
|
||||
selected = false
|
||||
math = false
|
||||
highlight = true
|
||||
|
||||
url_pdf = ""
|
||||
url_slides = ""
|
||||
url_video = ""
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
caption = ""
|
||||
|
||||
+++
|
192
themes/hugo-academic-master/exampleSite/config.toml
Normal file
@@ -0,0 +1,192 @@
|
||||
baseurl = "https://example.com"
|
||||
title = "Academic"
|
||||
copyright = "© 2016 Your Name"
|
||||
theme = "academic"
|
||||
enableEmoji = true
|
||||
footnotereturnlinkcontents = "<sup>^</sup>"
|
||||
|
||||
# Enable comments by entering your Disqus shortname
|
||||
disqusShortname = ""
|
||||
|
||||
# Enable analytics by entering your Google Analytics tracking ID
|
||||
googleAnalytics = ""
|
||||
|
||||
# Default language to use (if you setup multilingual support)
|
||||
defaultContentLanguage = "en"
|
||||
defaultContentLanguageInSubdir = false
|
||||
|
||||
[blackfriday]
|
||||
hrefTargetBlank = true
|
||||
|
||||
[params]
|
||||
name = "Lena Smith"
|
||||
role = "Professor of Artificial Intelligence"
|
||||
organization = "Stanford University"
|
||||
organization_url = ""
|
||||
avatar = "portrait.jpg"
|
||||
email = "test@example.org"
|
||||
address = "Building 1 Room 1, Stanford University, California, 90210, USA"
|
||||
office_hours = "Monday 10:00 to 13:00 or email for appointment"
|
||||
phone = "888 888 88 88"
|
||||
skype = "echo123"
|
||||
telegram = ""
|
||||
|
||||
# Enable Keybase in Contact section by entering your keybase.io username.
|
||||
keybase = ""
|
||||
|
||||
# Date format (refer to Go's date format: http://flippinggodateformat.com )
|
||||
# Examples: "Mon, Jan 2, 2006" or "2006-01-02"
|
||||
date_format = "Mon, Jan 2, 2006"
|
||||
|
||||
# Enable global LaTeX math rendering?
|
||||
# If false, you can enable it locally on a per page basis.
|
||||
math = false
|
||||
|
||||
# Highlight.js options
|
||||
# highlight
|
||||
# Enable global source code highlighting? If false, you can
|
||||
# override it for a particular page in that page's preamble.
|
||||
#
|
||||
# Example: highlight = true
|
||||
#
|
||||
# highlight_languages
|
||||
# Add support for highlighting additional languages. Support for
|
||||
# languages mentioned here will be included in all pages. You
|
||||
# can also set this variable for a particular page in that
|
||||
# page's preamble.
|
||||
#
|
||||
# Example: highlight_languages = ["go", "lisp", "ocaml"]
|
||||
#
|
||||
# highlight_style
|
||||
# Choose a different CSS style for highlighting source
|
||||
# code. Setting this option in a page's preamble has no
|
||||
# effect.
|
||||
#
|
||||
# Example: highlight_style = "github-gist"
|
||||
#
|
||||
# highlight_version
|
||||
# Choose the version of highlight.js you want. Setting this
|
||||
# option in a page's preamble has no effect.
|
||||
#
|
||||
# Example: highlight_version = "9.9.0"
|
||||
#
|
||||
# For the list of supported languages, styles, and versions, see:
|
||||
# https://cdnjs.com/libraries/highlight.js/
|
||||
#
|
||||
# For more info on the highlighting options, see:
|
||||
# https://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/#highlighting-options
|
||||
highlight = true
|
||||
highlight_languages = []
|
||||
# highlight_style = "github"
|
||||
# highlight_version = "9.9.0"
|
||||
|
||||
# Enable native social sharing buttons?
|
||||
sharing = true
|
||||
|
||||
# Link custom CSS and JS assets
|
||||
# (relative to /static/css and /static/js respectively)
|
||||
custom_css = []
|
||||
custom_js = []
|
||||
|
||||
# Publication types.
|
||||
# Used to categorize publications.
|
||||
# The index of the publication type in the list is used as its unique numerical identifier.
|
||||
# The numeric ID is used in a publication's frontmatter to categorize it.
|
||||
# The language can be edited below.
|
||||
# For multi-lingual sites, copy this block to each language section at the end of this file.
|
||||
publication_types = [
|
||||
'Uncategorized', # 0
|
||||
'Conference proceedings', # 1
|
||||
'Journal', # 2
|
||||
'Work in progress', # 3
|
||||
'Technical report', # 4
|
||||
'Book', # 5
|
||||
'Book chapter' # 6
|
||||
]
|
||||
|
||||
# Social/Academic Networking
|
||||
#
|
||||
# Icon pack "fa" includes the following social network icons:
|
||||
#
|
||||
# twitter, weibo, linkedin, github, facebook, pinterest, google-plus,
|
||||
# youtube, instagram, soundcloud
|
||||
#
|
||||
# For email icon, use "fa" icon pack, "envelope" icon, and
|
||||
# "mailto:your@email.com" as the link.
|
||||
#
|
||||
# Full list: https://fortawesome.github.io/Font-Awesome/icons/
|
||||
#
|
||||
# Icon pack "ai" includes the following academic network icons:
|
||||
#
|
||||
# google-scholar, arxiv, orcid, researchgate, mendeley
|
||||
#
|
||||
# Full list: https://jpswalsh.github.io/academicons/
|
||||
|
||||
[[params.social]]
|
||||
icon = "envelope"
|
||||
icon_pack = "fa"
|
||||
link = "mailto:test@example.org"
|
||||
|
||||
[[params.social]]
|
||||
icon = "twitter"
|
||||
icon_pack = "fa"
|
||||
link = "//twitter.com/GeorgeCushen"
|
||||
|
||||
[[params.social]]
|
||||
icon = "google-scholar"
|
||||
icon_pack = "ai"
|
||||
link = "https://scholar.google.co.uk/citations?user=sIwtMXoAAAAJ"
|
||||
|
||||
[[params.social]]
|
||||
icon = "github"
|
||||
icon_pack = "fa"
|
||||
link = "//github.com/gcushen"
|
||||
|
||||
|
||||
# Navigation Links
|
||||
# To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
|
||||
# desired widget in your `content/home/` folder.
|
||||
# The weight parameter defines the order that the links will appear in.
|
||||
|
||||
[[menu.main]]
|
||||
name = "Home"
|
||||
url = "#about"
|
||||
weight = 1
|
||||
|
||||
[[menu.main]]
|
||||
name = "Publications"
|
||||
url = "#publications_selected"
|
||||
weight = 2
|
||||
|
||||
[[menu.main]]
|
||||
name = "Posts"
|
||||
url = "#posts"
|
||||
weight = 3
|
||||
|
||||
[[menu.main]]
|
||||
name = "Projects"
|
||||
url = "#projects"
|
||||
weight = 4
|
||||
|
||||
[[menu.main]]
|
||||
name = "Teaching"
|
||||
url = "#teaching"
|
||||
weight = 5
|
||||
|
||||
[[menu.main]]
|
||||
name = "Contact"
|
||||
url = "#contact"
|
||||
weight = 6
|
||||
|
||||
# Taxonomies.
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
category = "categories"
|
||||
publication_type = "publication_types"
|
||||
|
||||
# Languages
|
||||
# Create a [languages.X] block for each language you want, where X is the language ID.
|
||||
|
||||
# Configure the English version of the website.
|
||||
[languages.en]
|
||||
languageCode = "en-us"
|
@@ -0,0 +1,42 @@
|
||||
+++
|
||||
# About/Biography widget.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
widget = "about"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 1
|
||||
|
||||
# List your academic interests.
|
||||
[interests]
|
||||
interests = [
|
||||
"Artificial Intelligence",
|
||||
"Computational Linguistics",
|
||||
"Information Retrieval"
|
||||
]
|
||||
|
||||
# List your qualifications (such as academic degrees).
|
||||
[[education.courses]]
|
||||
course = "PhD in Artificial Intelligence"
|
||||
institution = "Stanford University"
|
||||
year = 2012
|
||||
|
||||
[[education.courses]]
|
||||
course = "MEng in Artificial Intelligence"
|
||||
institution = "Massachusetts Institute of Technology"
|
||||
year = 2009
|
||||
|
||||
[[education.courses]]
|
||||
course = "BSc in Artificial Intelligence"
|
||||
institution = "Massachusetts Institute of Technology"
|
||||
year = 2008
|
||||
|
||||
+++
|
||||
|
||||
# Biography
|
||||
|
||||
Lena Smith is a professor of artificial intelligence at the Stanford AI Lab. Her research interests include distributed robotics, mobile computing and programmable matter. She leads the Robotic Neurobiology group, which develops self-reconfiguring robots, systems of self-organizing robots, and mobile sensor networks.
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.
|
@@ -0,0 +1,18 @@
|
||||
+++
|
||||
# Contact widget.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Contact"
|
||||
subtitle = ""
|
||||
widget = "contact"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 70
|
||||
|
||||
# Automatically link email and phone?
|
||||
autolink = true
|
||||
|
||||
+++
|
||||
|
@@ -0,0 +1,22 @@
|
||||
+++
|
||||
# Recent Posts widget.
|
||||
# Note: this widget will only display if `content/post/` contains posts.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Recent Posts"
|
||||
subtitle = ""
|
||||
widget = "posts"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 40
|
||||
|
||||
# Show posts that contain the following tags. Default to any tags.
|
||||
tags = []
|
||||
|
||||
# Number of posts to list.
|
||||
count = 5
|
||||
|
||||
+++
|
||||
|
@@ -0,0 +1,37 @@
|
||||
+++
|
||||
# Projects widget.
|
||||
# Note: this widget will only display if `content/project/` contains projects.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Projects"
|
||||
subtitle = ""
|
||||
widget = "projects"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 50
|
||||
|
||||
# View.
|
||||
# Customize how projects are displayed.
|
||||
# Legend: 0 = list, 1 = cards.
|
||||
view = 1
|
||||
|
||||
# Filter toolbar.
|
||||
# Add or remove as many filters (`[[filter]]` instances) as you like.
|
||||
# Use "*" tag to show all projects or an existing tag prefixed with "." to filter by specific tag.
|
||||
# To remove toolbar, delete/comment all instances of `[[filter]]` below.
|
||||
[[filter]]
|
||||
name = "All"
|
||||
tag = "*"
|
||||
|
||||
[[filter]]
|
||||
name = "Deep Learning"
|
||||
tag = ".deep-learning"
|
||||
|
||||
[[filter]]
|
||||
name = "Other"
|
||||
tag = ".demo"
|
||||
|
||||
+++
|
||||
|
@@ -0,0 +1,22 @@
|
||||
+++
|
||||
# Recent Publications widget.
|
||||
# Note: this widget will only display if `content/publication/` contains publications.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Recent Publications"
|
||||
subtitle = ""
|
||||
widget = "publications"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 20
|
||||
|
||||
# Number of publications to list.
|
||||
count = 10
|
||||
|
||||
# Show publication details (such as abstract)? (true/false)
|
||||
detailed_list = false
|
||||
|
||||
+++
|
||||
|
@@ -0,0 +1,20 @@
|
||||
+++
|
||||
# Selected Publications widget.
|
||||
# Note: this widget will only display if `content/publication/` contains publications
|
||||
# with `selected = true` in their `+++` preamble.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Selected Publications"
|
||||
subtitle = ""
|
||||
widget = "publications_selected"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 10
|
||||
|
||||
# Show publication details (such as abstract)? (true/false)
|
||||
detailed_list = true
|
||||
|
||||
+++
|
||||
|
@@ -0,0 +1,21 @@
|
||||
+++
|
||||
# Recent and Upcoming Talks widget.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Recent & Upcoming Talks"
|
||||
subtitle = ""
|
||||
widget = "talks"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 30
|
||||
|
||||
# Number of talks to list.
|
||||
count = 10
|
||||
|
||||
# Show talk details (such as abstract)? (true/false)
|
||||
detailed_list = false
|
||||
|
||||
+++
|
||||
|
@@ -0,0 +1,27 @@
|
||||
+++
|
||||
# An example of using the custom widget to create your own homepage section.
|
||||
# To create more sections, duplicate this file and edit the values below as desired.
|
||||
|
||||
date = "2016-04-20T00:00:00"
|
||||
draft = false
|
||||
|
||||
title = "Teaching"
|
||||
subtitle = ""
|
||||
widget = "custom"
|
||||
|
||||
# Order that this section will appear in.
|
||||
weight = 60
|
||||
|
||||
+++
|
||||
|
||||
This is an example of using the *custom* widget to create your own homepage section.
|
||||
|
||||
I am a teaching instructor for the following courses at University X:
|
||||
|
||||
- CS101: An intro to computer science
|
||||
- CS102: An intro to computer science
|
||||
- CS103: An intro to computer science
|
||||
- CS104: An intro to computer science
|
||||
- CS105: An intro to computer science
|
||||
- CS106: An intro to computer science
|
||||
- CS107: An intro to computer science
|
@@ -0,0 +1,12 @@
|
||||
+++
|
||||
title = "Posts"
|
||||
date = "2017-01-01T00:00:00Z"
|
||||
math = false
|
||||
highlight = false
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
caption = ""
|
||||
|
||||
+++
|
@@ -0,0 +1,186 @@
|
||||
+++
|
||||
date = "2016-04-20T12:00:00"
|
||||
draft = false
|
||||
tags = ["academic", "hugo"]
|
||||
title = "Getting started with the Academic framework for Hugo"
|
||||
math = true
|
||||
summary = """
|
||||
Create a beautifully simple personal or academic website in under 10 minutes.
|
||||
"""
|
||||
|
||||
[header]
|
||||
image = "headers/getting-started.png"
|
||||
caption = "Image credit: [**Academic**](https://github.com/gcushen/hugo-academic/)"
|
||||
|
||||
+++
|
||||
|
||||
The Academic framework enables you to easily create a beautifully simple personal or academic website using the [Hugo](https://gohugo.io) static site generator.
|
||||
|
||||
Key features:
|
||||
|
||||
- Easily manage your homepage, blog posts, publications, talks, and projects
|
||||
- Configurable widgets available for Biography, Publications, Projects, News/Blog, Talks, and Contact
|
||||
- Need a different section? Just use the Custom widget!
|
||||
- Write in [Markdown]({{< ref "post/writing-markdown-latex.md" >}}) for easy formatting and code highlighting, with [LaTeX](https://en.wikibooks.org/wiki/LaTeX/Mathematics) for mathematical expressions
|
||||
- Social/academic network linking, [Google Analytics](https://analytics.google.com), and [Disqus](https://disqus.com) comments
|
||||
- Responsive and mobile friendly
|
||||
- Simple and refreshing one page design
|
||||
- Easy to customize
|
||||
|
||||
## Installation
|
||||
|
||||
1. [Install Hugo](https://georgecushen.com/create-your-website-with-hugo/#installing-hugo) and create a new website by typing the following commands in your *Terminal* or *Command Prompt* app:
|
||||
|
||||
hugo new site my_website
|
||||
cd my_website
|
||||
|
||||
2. Install Academic with [git](https://help.github.com/articles/set-up-git/):
|
||||
|
||||
git clone https://github.com/gcushen/hugo-academic.git themes/academic
|
||||
|
||||
Or alternatively, [download Academic](https://github.com/gcushen/hugo-academic/archive/master.zip) and extract it into a `themes/academic` folder within your Hugo website.
|
||||
|
||||
3. If you are creating a new website, copy the contents of the `exampleSite` folder to your website root folder, overwriting existing files if necessary. The `exampleSite` folder contains an example config file and content to help you get started.
|
||||
|
||||
cp -av themes/academic/exampleSite/* .
|
||||
|
||||
4. Start the Hugo server from your website root folder:
|
||||
|
||||
hugo server --watch
|
||||
|
||||
Now you can go to [localhost:1313](http://localhost:1313) and your new Academic powered website should appear.
|
||||
|
||||
5. Customize your website - refer to the *Getting Started* section below
|
||||
|
||||
6. Build your site by running the `hugo` command. Then [host it for free using Github Pages](https://georgecushen.com/create-your-website-with-hugo/). Or alternatively, copy the generated `public/` directory (by FTP, Rsync, etc.) to your production web server (such as your university's hosting service).
|
||||
|
||||
|
||||
## Getting Started
|
||||
|
||||
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.
|
||||
|
||||
### Core parameters
|
||||
|
||||
The core parameters for the website can be edited in the `config.toml` configuration file:
|
||||
|
||||
- Set `baseurl` to your website URL (we recommend [GitHub Pages](https://georgecushen.com/create-your-website-with-hugo/) for free hosting)
|
||||
- Set `title` to your desired website title such as your name
|
||||
- The example Disqus commenting variable should be cleared (e.g. `disqusShortname = ""`) or set to your own [Disqus](https://disqus.com/) shortname to enable commenting
|
||||
- Edit your details under `[params]`; these will be displayed mainly in the homepage *about* and *contact* widgets (if used). To disable a contact field, simply clear the value to `""`.
|
||||
- Place a square cropped portrait photo named `portrait.jpg` into the `static/img/` folder, overwriting any defaults. Alternatively, you can edit the `avatar` filepath to point to a different image name or clear the value to disable the avatar feature.
|
||||
- To enable LaTeX math for your site, set `math = true`
|
||||
- Social/academic networking links are defined as multiples of `[[params.social]]`. They can be created or deleted as necessary.
|
||||
|
||||
### Introduce yourself
|
||||
|
||||
Edit your biography in the *about* widget `content/home/about.md` that you copied across from the `themes/academic/exampleSite/` folder. The research interests and qualifications are stored as `interests` and `education` variables. The academic qualifications are defined as multiples of `[[education.courses]]` and can be created or deleted as necessary. It's possible to completely hide the interests and education lists by deleting their respective variables.
|
||||
|
||||
### Customize the homepage
|
||||
|
||||
Refer to our guide on using [widgets]({{< ref "post/widgets.md" >}}) to customize your homepage.
|
||||
|
||||
### Add your content
|
||||
|
||||
Refer to our guide on [managing content]({{< ref "post/managing-content.md" >}}) to create your own publications, blog posts, talks, and projects.
|
||||
|
||||
### Remove unused widgets and pages
|
||||
|
||||
[How to remove unused widgets and content pages]({{< ref "post/managing-content.md#removing-content" >}}).
|
||||
|
||||
### Customization & Upgrading
|
||||
|
||||
Continue reading below for advanced customization tips and instructions for keeping the framework up-to-date with any improvements that become available.
|
||||
|
||||
|
||||
## Advanced customization
|
||||
|
||||
It is possible to carry out many customizations without touching any files in `themes/academic`, making it easier to upgrade the framework in the future.
|
||||
|
||||
### Navigation menu
|
||||
|
||||
The `[[menu.main]]` entries towards the bottom of `config.toml` define the navigation links at the top of the website. They can be added or removed as desired.
|
||||
|
||||
To create a dropdown sub-menu, add `identifier = "something"` to the parent item and `parent = "something"` to the child item.
|
||||
|
||||
### Website icon
|
||||
|
||||
Save your main icon and mobile icon as square PNG images named `icon.png` and `apple-touch-icon.png`, respectively. Place them in your root `static/img/` folder.
|
||||
|
||||
### Theme color (CSS)
|
||||
|
||||
You can link custom CSS assets (relative to your root `static/css`) from your `config.toml` using `custom_css = ["custom.css"]`.
|
||||
|
||||
For example, lets make a green theme. First, define `custom_css = ["green.css"]` in `config.toml`. Then we can download the example [green theme](https://gist.github.com/gcushen/d5525a4506b9ccf83f2bce592a895495) and save it as `static/css/green.css`, relative to your website root (i.e. **not** in the `themes` directory).
|
||||
|
||||
### Analytics
|
||||
|
||||
To enable [Google Analytics](http://www.google.com/analytics), add your tracking code in `config.toml` similarly to `googleAnalytics = "UA-12345678-9"`.
|
||||
|
||||
### Third party and local scripts (JS)
|
||||
|
||||
To add a third party script, create a file named `head_custom.html` in a `layouts/partials/` folder at the root of your website (not in the `themes` folder). Any HTML code added to this file will be included within your website's `<head>`. Therefore, it's suitable for adding custom metadata or third party scripts specified with the *async* attribute.
|
||||
|
||||
Whereas for your own local scripts, you can link your local JS assets (relative to your root `static/js`) from your `config.toml` using `custom_js = ["custom.js"]`.
|
||||
|
||||
### Language and translation
|
||||
|
||||
The interface text (e.g. buttons) is stored in language files which are collected from Academic's `themes/academic/i18n/` folder, as well as an `i18n/` folder at the root of your project.
|
||||
|
||||
To edit the interface text, copy `themes/academic/i18n/en.yaml` to `i18n/en.yaml` (relative to the root of your website). Open the new file and make any desired changes to the text appearing after `translation:`. Note that the language files are formatted in YAML syntax.
|
||||
|
||||
To translate the interface text to another language, follow the above instructions, but name the new file in the form `i18n/X.yaml` where `X` is the appropriate [ISO/RFC5646 language identifier](http://www.w3schools.com/tags/ref_language_codes.asp) for the translation. Then follow the brief instructions in the *Language* section at the bottom of your `config.toml`. To change the default language used by Academic, set `defaultContentLanguage` to the desired language identifier in your configuration file.
|
||||
|
||||
To translate the navigation bar, you can edit the default `[[menu.main]]` instances in `config.toml`. However, for a multilingual site, you will need to duplicate all of the `[[menu.main]]` instances and rename the new instances from `[[menu.main]]` to `[[languages.X.menu.main]]`, where `X` is the language identifier (e.g. `[[languages.zh.menu.main]]` for Simplified Chinese). Thus, the navigation bar can be displayed in multiple languages.
|
||||
|
||||
To translate a content file in your `content/` folder into another language, copy the file to `filename.X.md` where `filename` is your existing filename and `X` is the appropriate [ISO/RFC5646 language identifier](http://www.w3schools.com/tags/ref_language_codes.asp) for the translation. Then translate the content in the new file to the specified language.
|
||||
|
||||
For further details on Hugo's internationalization and multilingual features, refer to the [associated Hugo documentation](https://gohugo.io/content/multilingual/).
|
||||
|
||||
### Permalinks
|
||||
|
||||
*Permalinks*, or *permanent links*, 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's *permalinks* option these can be easily customized. For example, the blog post URL can be changed to the form *yourURL/2016/05/01/my-post-slug* by adding the following near the top of your `config.toml` (before `[params]` settings):
|
||||
|
||||
[permalinks]
|
||||
post = "/:year/:month/:day/:slug"
|
||||
|
||||
Where `:slug` 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 `slug = "my-short-post-title"` in your post preamble.
|
||||
|
||||
|
||||
## Upgrading
|
||||
|
||||
Feel free to *star* the project on [Github](https://github.com/gcushen/hugo-academic/) and monitor the [commits](https://github.com/gcushen/hugo-academic/commits/master) for updates.
|
||||
|
||||
Before upgrading the framework, it is recommended to make a backup of your entire website directory, or at least your `themes/academic` directory. You can also read about the [most recent milestones](https://github.com/gcushen/hugo-academic/releases) (but this doesn't necessarily reflect the latest *master* release).
|
||||
|
||||
Before upgrading for the first time, the remote *origin* repository should be renamed to *upstream*:
|
||||
|
||||
$ cd themes/academic
|
||||
$ git remote rename origin upstream
|
||||
|
||||
To list available updates:
|
||||
|
||||
$ cd themes/academic
|
||||
$ git fetch upstream
|
||||
$ git log --pretty=oneline --abbrev-commit --decorate HEAD..upstream/master
|
||||
|
||||
Then, upgrade by running:
|
||||
|
||||
$ git pull upstream
|
||||
|
||||
If you have modified files in `themes/academic`, 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 (`git add <filename>`).
|
||||
|
||||
If there are any issues after upgrading, you may wish to compare your site with the latest [example site](https://github.com/gcushen/hugo-academic/tree/master/exampleSite) to check if any settings changed.
|
||||
|
||||
|
||||
## Feedback & Contributing
|
||||
|
||||
Please use the [issue tracker](https://github.com/gcushen/hugo-academic/issues) to let me know about any bugs or feature requests, or alternatively make a pull request.
|
||||
|
||||
For general questions about Hugo, there is a [Hugo discussion forum](http://discuss.gohugo.io).
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Copyright 2016 [George Cushen](https://georgecushen.com).
|
||||
|
||||
Released under the [MIT](https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md) license.
|
@@ -0,0 +1,141 @@
|
||||
+++
|
||||
date = "2016-04-20T11:00:00"
|
||||
draft = false
|
||||
tags = ["academic", "hugo"]
|
||||
title = "Managing content"
|
||||
math = false
|
||||
+++
|
||||
|
||||
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 [writing content with Markdown, LaTeX, and Shortcodes]({{< ref "post/writing-markdown-latex.md" >}}).<!--more-->
|
||||
|
||||
To enable LaTeX math rendering for a page, you should include `math = true` in the page's `+++` preamble, as demonstrated in the included example site. Otherwise, to enable math on the homepage or for all pages, you must globally set `math = true` in `config.toml`.
|
||||
|
||||
To disable source code highlighting by default for all pages, set `highlight = false` in `config.toml`. You can then enable source code highlighting only on pages that need it by setting `highlight = true` in that page's preamble. See the [code-highlighting docs]({{< ref "post/writing-markdown-latex.md#code-highlighting" >}}) for more details.
|
||||
|
||||
To display a featured image in content page headers, the parameters below can be inserted towards the end of a page's `+++` preamble. It is assumed that the image is located in your `static/img/` folder, so the full path in the example below will be `static/img/headers/getting-started.png`. The `caption` parameter can be used to write an image caption or credit.
|
||||
|
||||
```toml
|
||||
[header]
|
||||
image = "headers/getting-started.png"
|
||||
caption = "Image credit: [**Academic**](https://github.com/gcushen/hugo-academic/)"
|
||||
|
||||
```
|
||||
|
||||
{{% alert note %}}
|
||||
If you wish to prevent a featured image automatically being used for a post's thumbnail on the homepage, the `preview = false` parameter can be added to `[header]`.
|
||||
{{% /alert %}}
|
||||
|
||||
## Create a publication
|
||||
|
||||
To create a new publication:
|
||||
|
||||
hugo new publication/my-paper-name.md
|
||||
|
||||
Then edit the default variables at the top of `content/publication/my-paper-name.md` to include the details of your publication. The `url_` variables are used to generate links associated with your publication, such as for viewing PDFs of papers. Here is an example:
|
||||
|
||||
```
|
||||
+++
|
||||
abstract = "An abstract..."
|
||||
authors = ["First author's name", "Second author's name"]
|
||||
date = "2013-07-01"
|
||||
image = ""
|
||||
image_preview = ""
|
||||
math = false
|
||||
publication = "The publishing part of the citation goes here. You may use *Markdown* for italics etc."
|
||||
title = "A publication title, such as title of a paper"
|
||||
url_code = ""
|
||||
url_dataset = ""
|
||||
url_pdf = "pdf/my-paper-name.pdf"
|
||||
url_project = ""
|
||||
url_slides = ""
|
||||
url_video = ""
|
||||
+++
|
||||
|
||||
Further details on your publication can be written here using *Markdown* for formatting. This text will be displayed on the Publication Detail page.
|
||||
```
|
||||
|
||||
The `url_` links can either point to local or web content. Associated local publication content, such as PDFs, may be copied to a `static/pdf/` folder and referenced like `url_pdf = "pdf/my-paper-name.pdf"`.
|
||||
|
||||
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 `+++`:
|
||||
|
||||
```
|
||||
[[url_custom]]
|
||||
name = "Custom Link"
|
||||
url = "http://www.example.org"
|
||||
```
|
||||
|
||||
If you enabled `detailed_list` for publications in `config.toml`, then there are a few more optional variables that you can include in the publication page preamble. You may use `abstract_short = "friendly summary of abstract"` and `publication_short = "abbreviated publication details"` 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 `image_preview = "my-image.jpg"`. 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.
|
||||
|
||||
{{% alert warning %}}
|
||||
Any double quotes (`"`) or backslashes (e.g. LaTeX `\times`) occurring within the value of any frontmatter parameter (such as the *abstract*) should be escaped with a backslash (`\`). For example, the symbol `"` and LaTeX text `\times` become `\"` and `\\times`, respectively. Refer to the [TOML documentation](https://github.com/toml-lang/toml#user-content-string) for more info.
|
||||
{{% /alert %}}
|
||||
|
||||
## Post an article
|
||||
|
||||
To create a blog/news article:
|
||||
|
||||
hugo new post/my-article-name.md
|
||||
|
||||
Then edit the newly created file `content/post/my-article-name.md` with your full title and content.
|
||||
|
||||
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><!--more--></code> in the article body, or completely override the automated summary by adding a `summary` parameter to the `+++` preamble such that:
|
||||
|
||||
summary = "Summary of my post."
|
||||
|
||||
To disable commenting for a specific post, you can add `disable_comments = true` to the post `+++` preamble. Or to disable commenting for all posts, you can either set `disqusShortname = ""` or `disable_comments = true` in `config.toml`.
|
||||
|
||||
## Create a project
|
||||
|
||||
To create a project:
|
||||
|
||||
hugo new project/my-project-name.md
|
||||
|
||||
Then edit the newly created file `content/project/my-project-name.md`. Either you can link the project to an external project website by setting the `external_link = "http://external-project.com"` variable at the top of the file, or you can add content (below the final `+++`) in order to render a project page on your website.
|
||||
|
||||
## Create a talk
|
||||
|
||||
To create a talk:
|
||||
|
||||
hugo new talk/my-talk-name.md
|
||||
|
||||
Then edit the newly created file `content/talk/my-talk-name.md` with your full talk title and details. Note that many of the talk parameters are similar to the publication parameters.
|
||||
|
||||
## Manage node index pages
|
||||
|
||||
The node index pages (e.g. `/post/`) 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'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.
|
||||
|
||||
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:
|
||||
|
||||
hugo new post/_index.md
|
||||
hugo new publication/_index.md
|
||||
hugo new talk/_index.md
|
||||
|
||||
Then remove all parameters except for `title`, `math`, `highlight`, and `date`. Edit the `title` parameter as desired and add any content after the `+++` preamble/frontmatter ends. For example, you should have something similar to:
|
||||
|
||||
```toml
|
||||
+++
|
||||
title = "List of my posts"
|
||||
date = "2017-01-01T00:00:00Z"
|
||||
math = false
|
||||
highlight = false
|
||||
+++
|
||||
|
||||
Below is an automatically generated list of all my blog posts!
|
||||
|
||||
```
|
||||
|
||||
## Removing content
|
||||
|
||||
Generally, to remove content, simply delete the relevant file from your `content/post`, `content/publication`, `content/project`, or `content/talk` folder.
|
||||
|
||||
## View your updated site
|
||||
|
||||
After you have made changes to your site, you can view it by running the `hugo server --watch` command and then opening [localhost:1313](http://localhost:1313) in your web browser.
|
||||
|
||||
## Deploy your site
|
||||
|
||||
Finally, you can build the static website to a `public/` folder ready for deployment using the `hugo` command.
|
||||
|
||||
You may then deploy your site by copying the `public/` directory (by FTP, SFTP, WebDAV, Rsync, git push, etc.) to your production web server.
|
||||
|
||||
Note that running `hugo` does not remove any previously generated files before building. Therefore, it's best practice to delete your `public/` directory prior to running `hugo` to ensure no old or interim files are deployed to your server.
|
@@ -0,0 +1,38 @@
|
||||
+++
|
||||
date = "2014-03-10T00:00:00"
|
||||
draft = false
|
||||
tags = ["jekyll"]
|
||||
title = "Migrate from Jekyll to Hugo"
|
||||
summary = """
|
||||
Learn how to migrate an existing website from Jekyll to Hugo.
|
||||
"""
|
||||
math = false
|
||||
+++
|
||||
|
||||
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's [getting started guide]({{< ref "post/getting-started.md" >}}).
|
||||
|
||||
## 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
|
||||
|
||||
▾ <root>/
|
||||
▾ static/
|
||||
▾ images/
|
||||
logo.png
|
||||
|
||||
Additionally, you'll want any files that should reside at the root (such as `CNAME`) to be moved to `static`.
|
||||
|
||||
## Fix content
|
||||
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 `hugo server --watch` and the Hugo Academic example site are your friends. Test your changes and fix errors as needed.
|
||||
|
||||
## Publish
|
||||
The default is for Jekyll to publish the website to a `_site` directory, whereas Hugo publishes to a `public` directory.
|
||||
|
||||
## A practical example
|
||||
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 [diff](https://github.com/alexandre-normand/alexandre-normand/compare/869d69435bd2665c3fbf5b5c78d4c22759d7613a...b7f6605b1265e83b4b81495423294208cc74d610). However, bear in mind that this example is **not specific to the Academic theme nor does it use the latest version of Hugo**.
|
@@ -0,0 +1,61 @@
|
||||
+++
|
||||
date = "2016-04-20T11:00:00"
|
||||
draft = false
|
||||
tags = ["academic", "hugo"]
|
||||
title = "Customizing the homepage with widgets"
|
||||
math = false
|
||||
summary = """
|
||||
Enable/disable and configure widgets to customize your homepage.
|
||||
"""
|
||||
+++
|
||||
|
||||
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:
|
||||
|
||||
- About/biography
|
||||
- Selected publications
|
||||
- Recent publications
|
||||
- Recent news/blog posts
|
||||
- Projects
|
||||
- Selected talks
|
||||
- Recent talks
|
||||
- Contact
|
||||
- Custom widget (demonstrated with the *teaching* example)
|
||||
|
||||
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't need and customize the parameters of the widgets you wish to keep.
|
||||
|
||||
The parameters for each widget vary. They can be found in the preamble/frontmatter (between the pair of `+++`) for each widget installed in the `content/home/` folder.
|
||||
|
||||
{{% alert note %}}
|
||||
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 `detailed_list = true` in `content/home/publications.md`.
|
||||
{{% /alert %}}
|
||||
|
||||
## Add a widget to the homepage
|
||||
|
||||
To add a widget manually, copy the relevant widget from `themes/academic/exampleSite/content/home/` to your `content/home/` folder.
|
||||
|
||||
Widget identifiers are set to their respective filenames, so a `content/home/about.md` widget can be linked from the navigation bar by setting the relevant URL as `"#about"` in `config.toml`.
|
||||
|
||||
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.
|
||||
|
||||
## Using the custom widget
|
||||
|
||||
You can use the custom widget to create your own home page sections.
|
||||
|
||||
Simply duplicate (copy/paste) and rename the example *teaching* file at `content/home/teaching.md`. Then edit the section title, weight (refer to *Ordering sections* below), and content as desired.
|
||||
|
||||
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 `config.toml`, where the URL will consist of the first title word in lowercase:
|
||||
|
||||
[[menu.main]]
|
||||
name = "Research"
|
||||
url = "#research"
|
||||
weight = 10
|
||||
|
||||
## Remove a widget from the homepage
|
||||
|
||||
If you do not require a particular widget, you can simply delete any associated files from the `content/home/` folder.
|
||||
|
||||
To remove a navigation link from the top of the page, remove the associated `[[menu.main]]` entry in `config.toml`.
|
||||
|
||||
## Ordering widgets
|
||||
|
||||
The order that the homepage widgets are displayed in is defined by the `weight` parameter in each of the files in the `content/home/` directory. The widgets are displayed in ascending order of their `weight`, so you can simply edit the `weight` parameters as desired.
|
@@ -0,0 +1,235 @@
|
||||
+++
|
||||
date = "2016-04-20T10:00:00"
|
||||
draft = false
|
||||
tags = []
|
||||
title = "Writing content with Markdown, LaTeX, and Shortcodes"
|
||||
math = true
|
||||
+++
|
||||
|
||||
Content can be written using [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet), [LaTeX math](https://en.wikibooks.org/wiki/LaTeX/Mathematics), and [Hugo Shortcodes](http://gohugo.io/extras/shortcodes/). Additionally, HTML may be used for advanced formatting.<!--more--> This article gives an overview of the most common formatting options.
|
||||
|
||||
## Sub-headings
|
||||
|
||||
## Heading 2
|
||||
### Heading 3
|
||||
#### Heading 4
|
||||
##### Heading 5
|
||||
###### Heading 6
|
||||
|
||||
## Emphasis
|
||||
|
||||
Italics with *asterisks* or _underscores_.
|
||||
|
||||
Bold with **asterisks** or __underscores__.
|
||||
|
||||
Combined emphasis with **asterisks and _underscores_**.
|
||||
|
||||
Strikethrough with ~~two tildes~~.
|
||||
|
||||
## Ordered lists
|
||||
|
||||
1. First item
|
||||
2. Another item
|
||||
|
||||
## Unordered lists
|
||||
|
||||
* First item
|
||||
* Another item
|
||||
|
||||
## Images
|
||||
|
||||
Images may be added to a page by placing them in your `static/img/` folder and referencing them using one of the following two notations:
|
||||
|
||||
A general image:
|
||||
|
||||

|
||||
|
||||
A numbered figure with caption:
|
||||
|
||||
{{</* figure src="/img/screenshot.png" title="Figure Caption" */>}}
|
||||
|
||||
## Links
|
||||
|
||||
[I'm a link](https://www.google.com)
|
||||
[A post]({{</* ref "post/hi.md" */>}})
|
||||
[A publication]({{</* ref "publication/hi.md" */>}})
|
||||
[A project]({{</* ref "project/hi.md" */>}})
|
||||
[Another section]({{</* relref "hi.md#who" */>}})
|
||||
|
||||
## Emojis
|
||||
|
||||
See the [Emoji cheat sheet](http://www.webpagefx.com/tools/emoji-cheat-sheet/) for available emoticons. The following serves as an example, but you should remove the spaces between each emoji name and pair of semicolons:
|
||||
|
||||
I : heart : Academic : smile :
|
||||
|
||||
I :heart: Academic :smile:
|
||||
|
||||
## Blockquote
|
||||
|
||||
> This is a blockquote.
|
||||
|
||||
> This is a blockquote.
|
||||
|
||||
## Footnotes
|
||||
|
||||
I have more [^1] to say.
|
||||
|
||||
[^1]: Footnote example.
|
||||
|
||||
I have more [^1] to say.
|
||||
[^1]: Footnote example.
|
||||
|
||||
## Code highlighting
|
||||
|
||||
Pass the *language* of the code, such as `python`, as a parameter after three backticks:
|
||||
|
||||
```python
|
||||
# Example of code highlighting
|
||||
input_string_var = input("Enter some data: ")
|
||||
print("You entered: {}".format(input_string_var))
|
||||
```
|
||||
Result:
|
||||
|
||||
```python
|
||||
# Example of code highlighting
|
||||
input_string_var = input("Enter some data: ")
|
||||
print("You entered: {}".format(input_string_var))
|
||||
```
|
||||
|
||||
### Highlighting options
|
||||
|
||||
The Academic theme uses [highlight.js](https://highlightjs.org) 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.
|
||||
|
||||
The following table lists the supported options for configuring highlight.js, along with their expected type and a short description. A "yes" in the **config.toml** column means the value can be set globally in `config.toml`, and a "yes" in the **preamble** column means that the value can be set locally in a particular page's preamble.
|
||||
|
||||
option | type | description | config.toml | preamble
|
||||
----------------------|---------|---------------------------------|-------------|---------
|
||||
`highlight` | boolean | enable/disable highlighting | yes | yes
|
||||
`highlight_languages` | slice | choose additional languages | yes | yes
|
||||
`highlight_style` | string | choose a highlighting style | yes | no
|
||||
`highlight_version` | string | choose the highlight.js version | yes | no
|
||||
|
||||
|
||||
#### Option `highlight`
|
||||
|
||||
The `highlight` 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 `highlight = true`. That is, the highlight.js javascript and css files will be included in every page. If you'd like to only include highlight.js files on pages that actually require source code highlighting, you can set `highlight = false` in `config.toml`, and then override it by setting `highlight = true` 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 `highlight` set in `config.toml` and/or the page's preamble.
|
||||
|
||||
config.toml | page preamble | highlighting enabled for page?
|
||||
--------------|----------------|-------------------------------
|
||||
unset or true | unset or true | yes
|
||||
unset or true | false | no
|
||||
false | unset or false | no
|
||||
false | true | yes
|
||||
|
||||
#### Option `highlight_languages`
|
||||
|
||||
The `highlight_languages` option allows you to specify additional languages that are supported by highlight.js, but are not considered "common" and therefore are not supported by default. For example, if you want source code highlighting for Go and clojure in all pages, set `highlight_languages = ["go", "clojure"]` in `config.toml`. If, on the other hand, you want to enable a language only for a specific page, you can set `highlight_languages` in that page's preamble.
|
||||
|
||||
The `highlight_languages` options specified in `config.toml` and in a page's preamble are additive. That is, if `config.toml` contains, `highlight_languages = ["go"]` and the page's preamble contains `highlight_languages = ["ocaml"]`, then javascript files for *both* go and ocaml will be included for that page.
|
||||
|
||||
If the `highlight_languages` option is set, then the corresponding javascript files will be served from the [cdnjs server](https://cdnjs.com/libraries/highlight.js/). To see a list of available languages, visit the [cdnjs page](https://cdnjs.com/libraries/highlight.js/) and search for links with the word "languages".
|
||||
|
||||
The `highlight_languages` 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't meet your needs, you can include javascript files for additional language support via one of the methods described in the [getting started guide]({{< ref "post/getting-started.md#third-party-and-local-scripts-js" >}}).
|
||||
|
||||
#### Option `highlight_style`
|
||||
|
||||
The `highlight_style` 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 `highlight_style = "solarized-dark"` in `config.toml`.
|
||||
|
||||
If the `highlight_style` option is unset, the default is to use the file `/css/highlight.min.css`, either the one provided by the Academic theme, or else the one in your local `static` directory. The `/css/highlight.min.css` file provided by Academic is equivalent to the `github` style from highlight.js.
|
||||
|
||||
If the `highlight_style` option *is* set, then `/css/highlight.min.css` is ignored, and the corresponding css file will be served from the [cdnjs server](https://cdnjs.com/libraries/highlight.js/). To see a list of available styles, visit the [cdnjs page](https://cdnjs.com/libraries/highlight.js/) and search for links with the word "styles".
|
||||
|
||||
See the [highlight.js demo page](https://highlightjs.org/static/demo/) for examples of available styles.
|
||||
|
||||
{{% alert note %}}
|
||||
Not all styles listed on the [highlight.js demo page](https://highlightjs.org/static/demo/) are available from the [cdnjs server](https://cdnjs.com/libraries/highlight.js/). If you want to use a style that is not served by cdnjs, just leave `highlight_style` unset, and place the corresponding css file in `/static/css/highlight.min.css`.
|
||||
{{% /alert %}}
|
||||
|
||||
{{% alert note %}}
|
||||
If you don't want to change the default style that ships with Academic but you do want the style file served from the [cdnjs server](https://cdnjs.com/libraries/highlight.js/), set `highlight_style = "github"` in `config.toml`.
|
||||
{{% /alert %}}
|
||||
|
||||
The `highlight_style` option is only recognized when set in `config.toml`. Setting `highlight_style` in your page's preamble has no effect.
|
||||
|
||||
#### Option `highlight_version`
|
||||
|
||||
The `highlight_version` option, as the name implies, allows you to select the version of highlight.js you want to use. The default value is "9.9.0". The `highlight_version` option is only recognized when set in `config.toml`. Setting `highlight_version` in your page's preamble has no effect.
|
||||
|
||||
## Twitter tweet
|
||||
|
||||
To include a single tweet, pass the tweet’s ID from the tweet's URL as parameter to the shortcode:
|
||||
|
||||
{{</* tweet 666616452582129664 */>}}
|
||||
|
||||
## Youtube
|
||||
|
||||
{{</* youtube w7Ft2ymGmfc */>}}
|
||||
|
||||
## Vimeo
|
||||
|
||||
{{</* vimeo 146022717 */>}}
|
||||
|
||||
## GitHub gist
|
||||
|
||||
{{</* gist USERNAME GIST-ID */>}}
|
||||
|
||||
## Speaker Deck
|
||||
|
||||
{{</* speakerdeck 4e8126e72d853c0060001f97 */>}}
|
||||
|
||||
## $\rm \LaTeX$ math
|
||||
|
||||
```TeX
|
||||
$$\left [ – \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$
|
||||
```
|
||||
|
||||
$$\left [ – \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$
|
||||
|
||||
Alternatively, inline math can be written by wrapping the formula with only a single `$`:
|
||||
|
||||
This is inline: $\mathbf{y} = \mathbf{X}\boldsymbol\beta + \boldsymbol\varepsilon$
|
||||
|
||||
This is inline: $\mathbf{y} = \mathbf{X}\boldsymbol\beta + \boldsymbol\varepsilon$
|
||||
|
||||
## Table
|
||||
|
||||
Code:
|
||||
|
||||
```Markdown
|
||||
| Command | Description |
|
||||
| ------------------| ------------------------------ |
|
||||
| `hugo` | Build your website. |
|
||||
| `hugo serve -w` | View your website. |
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
| Command | Description |
|
||||
| ------------------| ------------------------------ |
|
||||
| `hugo` | Build your website. |
|
||||
| `hugo serve -w` | View your website. |
|
||||
|
||||
|
||||
## Alerts
|
||||
|
||||
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:
|
||||
|
||||
{{%/* alert note */%}}
|
||||
Here's a tip or note...
|
||||
{{%/* /alert */%}}
|
||||
|
||||
This will display the following *note* block:
|
||||
|
||||
{{% alert note %}}
|
||||
Here's a tip or note...
|
||||
{{% /alert %}}
|
||||
|
||||
{{%/* alert warning */%}}
|
||||
Here's some important information...
|
||||
{{%/* /alert */%}}
|
||||
|
||||
This will display the following *warning* block:
|
||||
|
||||
{{% alert warning %}}
|
||||
Here's some important information...
|
||||
{{% /alert %}}
|
@@ -0,0 +1,39 @@
|
||||
+++
|
||||
# Date this page was created.
|
||||
date = "2016-04-27"
|
||||
|
||||
# Project title.
|
||||
title = "Deep Learning"
|
||||
|
||||
# Project summary to display on homepage.
|
||||
summary = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
||||
|
||||
# Optional image to display on homepage (relative to `static/img/` folder).
|
||||
image_preview = "bubbles.jpg"
|
||||
|
||||
# Tags: can be used for filtering projects.
|
||||
# Example: `tags = ["machine-learning", "deep-learning"]`
|
||||
tags = ["deep-learning"]
|
||||
|
||||
# Optional external URL for project (replaces project detail page).
|
||||
external_link = ""
|
||||
|
||||
# Does the project detail page use math formatting?
|
||||
math = false
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = "headers/bubbles-wide.jpg"
|
||||
caption = "My caption :smile:"
|
||||
|
||||
+++
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
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.
|
@@ -0,0 +1,25 @@
|
||||
+++
|
||||
# Date this page was created.
|
||||
date = "2016-04-27"
|
||||
|
||||
# Project title.
|
||||
title = "External Project"
|
||||
|
||||
# Project summary to display on homepage.
|
||||
summary = "An example of linking directly to an external project website using `external_link`."
|
||||
|
||||
# Optional image to display on homepage (relative to `static/img/` folder).
|
||||
image_preview = "boards.jpg"
|
||||
|
||||
# Tags: can be used for filtering projects.
|
||||
# Example: `tags = ["machine-learning", "deep-learning"]`
|
||||
tags = ["demo"]
|
||||
|
||||
# Optional external URL for project (replaces project detail page).
|
||||
external_link = "http://example.org"
|
||||
|
||||
# Does the project detail page use math formatting?
|
||||
math = false
|
||||
|
||||
+++
|
||||
|
@@ -0,0 +1,12 @@
|
||||
+++
|
||||
title = "Publications"
|
||||
date = "2017-01-01T00:00:00Z"
|
||||
math = false
|
||||
highlight = false
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
caption = ""
|
||||
|
||||
+++
|
@@ -0,0 +1,31 @@
|
||||
+++
|
||||
abstract = "We present a mobile visual clothing search system whereby a smart phone user can either choose a social networking photo or take a new photo of a person wearing clothing of interest and search for similar clothing in a retail database. From the query image, the person is detected, clothing is segmented, and clothing features are extracted and quantized. The information is sent from the phone client to a server, where the feature vector of the query image is used to retrieve similar clothing products from online databases. The phone's GPS location is used to re-rank results by retail store location. State of the art work focuses primarily on the recognition of a diverse range of clothing offline and pays little attention to practical applications. Evaluated on a challenging dataset, the system is relatively fast and achieves promising results."
|
||||
abstract_short = "A mobile visual clothing search system is presented whereby a smart phone user can either choose a social networking image or capture a new photo of a person wearing clothing of interest and search for similar clothing in a large cloud-based ecommerce database. The phone's GPS location is used to re-rank results by retail store location, to inform the user of local stores where similar clothing items can be tried on."
|
||||
authors = ["GA Cushen", "MS Nixon"]
|
||||
date = "2013-07-01"
|
||||
image_preview = ""
|
||||
math = true
|
||||
publication_types = ["1"]
|
||||
publication = "In *International Conference on Multimedia and Expo Workshops (ICMEW)*, IEEE."
|
||||
publication_short = "In *ICMEW*"
|
||||
selected = true
|
||||
title = "Mobile visual clothing search"
|
||||
url_code = "#"
|
||||
url_dataset = "#"
|
||||
url_pdf = "http://eprints.soton.ac.uk/352095/1/Cushen-IMV2013.pdf"
|
||||
url_project = "project/deep-learning/"
|
||||
url_slides = "#"
|
||||
url_video = "#"
|
||||
|
||||
[[url_custom]]
|
||||
name = "Custom Link"
|
||||
url = "http://www.example.org"
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = "headers/bubbles-wide.jpg"
|
||||
caption = "My caption :smile:"
|
||||
|
||||
+++
|
||||
|
||||
More detail can easily be written here using *Markdown* and $\rm \LaTeX$ math code.
|
@@ -0,0 +1,22 @@
|
||||
+++
|
||||
abstract = "Person re-identification is a critical security task for recognizing a person across spatially disjoint sensors. Previous work can be computationally intensive and is mainly based on low-level cues extracted from RGB data and implemented on a PC for a fixed sensor network (such as traditional CCTV). We present a practical and efficient framework for mobile devices (such as smart phones and robots) where high-level semantic soft biometrics are extracted from RGB and depth data. By combining these cues, our approach attempts to provide robustness to noise, illumination, and minor variations in clothing. This mobile approach may be particularly useful for the identification of persons in areas ill-served by fixed sensors or for tasks where the sensor position and direction need to dynamically adapt to a target. Results on the BIWI dataset are preliminary but encouraging. Further evaluation and demonstration of the system will be available on our website."
|
||||
abstract_short = ""
|
||||
authors = ["GA Cushen"]
|
||||
date = "2015-09-01"
|
||||
image_preview = ""
|
||||
math = true
|
||||
publication_types = ["2"]
|
||||
publication = "In *Signal Image Technology & Internet Systems (SITIS)*, IEEE."
|
||||
publication_short = ""
|
||||
selected = false
|
||||
title = "A Person Re-Identification System For Mobile Devices"
|
||||
url_code = ""
|
||||
url_dataset = ""
|
||||
url_pdf = "http://arxiv.org/pdf/1512.04133v1"
|
||||
url_project = "project/deep-learning/"
|
||||
url_slides = ""
|
||||
url_video = ""
|
||||
|
||||
+++
|
||||
|
||||
More detail can easily be written here using *Markdown* and $\rm \LaTeX$ math code.
|
@@ -0,0 +1,14 @@
|
||||
+++
|
||||
title = "Content tagged as 'Academic'"
|
||||
date = "2017-01-01T00:00:00"
|
||||
math = false
|
||||
highlight = false
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = "headers/bubbles-wide.jpg"
|
||||
caption = ""
|
||||
|
||||
+++
|
||||
|
||||
Here is a list of all the content that has been tagged as *academic*.
|
@@ -0,0 +1,12 @@
|
||||
+++
|
||||
title = "Recent & Upcoming Talks"
|
||||
date = "2017-01-01T00:00:00Z"
|
||||
math = false
|
||||
highlight = false
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = ""
|
||||
caption = ""
|
||||
|
||||
+++
|
@@ -0,0 +1,24 @@
|
||||
+++
|
||||
date = "2017-01-01T00:00:00"
|
||||
title = "Example Talk"
|
||||
abstract = ""
|
||||
abstract_short = ""
|
||||
event = "Hugo Academic Theme Conference"
|
||||
event_url = "https://example.org"
|
||||
location = "London, United Kingdom"
|
||||
|
||||
selected = false
|
||||
math = true
|
||||
|
||||
url_pdf = ""
|
||||
url_slides = ""
|
||||
url_video = ""
|
||||
|
||||
# Optional featured image (relative to `static/img/` folder).
|
||||
[header]
|
||||
image = "headers/bubbles-wide.jpg"
|
||||
caption = "My caption :smile:"
|
||||
|
||||
+++
|
||||
|
||||
Embed your slides or video here using [shortcodes](https://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/). Further details can easily be added using *Markdown* and $\rm \LaTeX$ math code.
|
BIN
themes/hugo-academic-master/exampleSite/static/img/boards.jpg
Normal file
After Width: | Height: | Size: 227 KiB |
BIN
themes/hugo-academic-master/exampleSite/static/img/bubbles.jpg
Normal file
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 304 KiB |
After Width: | Height: | Size: 4.4 KiB |
BIN
themes/hugo-academic-master/exampleSite/static/img/portrait.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
89
themes/hugo-academic-master/i18n/de.yaml
Normal file
@@ -0,0 +1,89 @@
|
||||
# Navigation
|
||||
|
||||
- id: toggle_navigation
|
||||
translation: Zur Navigation
|
||||
|
||||
# Buttons
|
||||
|
||||
- id: btn_details
|
||||
translation: Details
|
||||
|
||||
- id: btn_pdf
|
||||
translation: PDF
|
||||
|
||||
- id: btn_slides
|
||||
translation: Folien
|
||||
|
||||
- id: btn_video
|
||||
translation: Video
|
||||
|
||||
- id: btn_code
|
||||
translation: Code
|
||||
|
||||
- id: btn_dataset
|
||||
translation: Datensatz
|
||||
|
||||
- id: btn_project
|
||||
translation: Projekt
|
||||
|
||||
# About widget
|
||||
|
||||
- id: interests
|
||||
translation: Interessen
|
||||
|
||||
- id: education
|
||||
translation: Ausbildung
|
||||
|
||||
# Publications widget
|
||||
|
||||
- id: more_publications
|
||||
translation: Weitere Publikationen
|
||||
|
||||
# Posts widget
|
||||
|
||||
- id: continue_reading
|
||||
translation: WEITERLESEN
|
||||
|
||||
- id: more_posts
|
||||
translation: Weitere Blogeinträge
|
||||
|
||||
# Talks widget
|
||||
|
||||
- id: more_talks
|
||||
translation: Weitere Vorträge
|
||||
|
||||
# Publication/Talk details
|
||||
|
||||
- id: abstract
|
||||
translation: Zusammenfassung
|
||||
|
||||
- id: publication
|
||||
translation: Publikation
|
||||
|
||||
- id: publication_type
|
||||
translation: Typ
|
||||
|
||||
- id: date
|
||||
translation: Datum
|
||||
|
||||
- id: links
|
||||
translation: Links
|
||||
|
||||
- id: event
|
||||
translation: Veranstaltung
|
||||
|
||||
- id: location
|
||||
translation: Ort
|
||||
|
||||
# Filtering
|
||||
|
||||
- id: filter_by_type
|
||||
translation: Filter nach Typ
|
||||
|
||||
- id: filter_all
|
||||
translation: Alle
|
||||
|
||||
# Project details
|
||||
|
||||
- id: open_project_site
|
||||
translation: Zur Projektseite
|
100
themes/hugo-academic-master/i18n/en.yaml
Normal file
@@ -0,0 +1,100 @@
|
||||
# Navigation
|
||||
|
||||
- id: toggle_navigation
|
||||
translation: Toggle navigation
|
||||
|
||||
# Buttons
|
||||
|
||||
- id: btn_details
|
||||
translation: Details
|
||||
|
||||
- id: btn_pdf
|
||||
translation: PDF
|
||||
|
||||
- id: btn_slides
|
||||
translation: Slides
|
||||
|
||||
- id: btn_video
|
||||
translation: Video
|
||||
|
||||
- id: btn_code
|
||||
translation: Code
|
||||
|
||||
- id: btn_dataset
|
||||
translation: Dataset
|
||||
|
||||
- id: btn_project
|
||||
translation: Project
|
||||
|
||||
# About widget
|
||||
|
||||
- id: interests
|
||||
translation: Interests
|
||||
|
||||
- id: education
|
||||
translation: Education
|
||||
|
||||
# Publications widget
|
||||
|
||||
- id: more_publications
|
||||
translation: More Publications
|
||||
|
||||
# Posts widget
|
||||
|
||||
- id: continue_reading
|
||||
translation: CONTINUE READING
|
||||
|
||||
- id: more_posts
|
||||
translation: More Posts
|
||||
|
||||
# Talks widget
|
||||
|
||||
- id: more_talks
|
||||
translation: More Talks
|
||||
|
||||
# Publication/Talk details
|
||||
|
||||
- id: abstract
|
||||
translation: Abstract
|
||||
|
||||
- id: publication
|
||||
translation: Publication
|
||||
|
||||
- id: publication_type
|
||||
translation: Type
|
||||
|
||||
- id: date
|
||||
translation: Date
|
||||
|
||||
- id: links
|
||||
translation: Links
|
||||
|
||||
- id: event
|
||||
translation: Event
|
||||
|
||||
- id: location
|
||||
translation: Location
|
||||
|
||||
# Filtering
|
||||
|
||||
- id: filter_by_type
|
||||
translation: Filter by type
|
||||
|
||||
- id: filter_all
|
||||
translation: All
|
||||
|
||||
# Project details
|
||||
|
||||
- id: open_project_site
|
||||
translation: Go to Project Site
|
||||
|
||||
# Default node titles
|
||||
|
||||
- id: posts
|
||||
translation: Posts
|
||||
|
||||
- id: publications
|
||||
translation: Publications
|
||||
|
||||
- id: talks
|
||||
translation: Talks
|
100
themes/hugo-academic-master/i18n/es.yaml
Normal file
@@ -0,0 +1,100 @@
|
||||
# Navigation
|
||||
|
||||
- id: toggle_navigation
|
||||
translation: Barra de navegación
|
||||
|
||||
# Buttons
|
||||
|
||||
- id: btn_details
|
||||
translation: Detalles
|
||||
|
||||
- id: btn_pdf
|
||||
translation: PDF
|
||||
|
||||
- id: btn_slides
|
||||
translation: Diapositivas
|
||||
|
||||
- id: btn_video
|
||||
translation: Vídeo
|
||||
|
||||
- id: btn_code
|
||||
translation: Código
|
||||
|
||||
- id: btn_dataset
|
||||
translation: Datos
|
||||
|
||||
- id: btn_project
|
||||
translation: Proyecto
|
||||
|
||||
# About widget
|
||||
|
||||
- id: interests
|
||||
translation: Interés
|
||||
|
||||
- id: education
|
||||
translation: Educación
|
||||
|
||||
# Publications widget
|
||||
|
||||
- id: more_publications
|
||||
translation: Más Publicaciones
|
||||
|
||||
# Posts widget
|
||||
|
||||
- id: continue_reading
|
||||
translation: CONTINÚA LEYENDO
|
||||
|
||||
- id: more_posts
|
||||
translation: Más Posts
|
||||
|
||||
# Talks widget
|
||||
|
||||
- id: more_talks
|
||||
translation: Más charlas
|
||||
|
||||
# Publication/Talk details
|
||||
|
||||
- id: abstract
|
||||
translation: Resumen
|
||||
|
||||
- id: publication
|
||||
translation: Publicación
|
||||
|
||||
- id: publication_type
|
||||
translation: Tipo
|
||||
|
||||
- id: date
|
||||
translation: Fecha
|
||||
|
||||
- id: links
|
||||
translation: Links
|
||||
|
||||
- id: event
|
||||
translation: Evento
|
||||
|
||||
- id: location
|
||||
translation: Localización
|
||||
|
||||
# Filtering
|
||||
|
||||
- id: filter_by_type
|
||||
translation: Filtro por tipo
|
||||
|
||||
- id: filter_all
|
||||
translation: Todo
|
||||
|
||||
# Project details
|
||||
|
||||
- id: open_project_site
|
||||
translation: Ir al sitio del proyecto
|
||||
|
||||
# Default node titles
|
||||
|
||||
- id: posts
|
||||
translation: Posts
|
||||
|
||||
- id: publications
|
||||
translation: Publicaciones
|
||||
|
||||
- id: talks
|
||||
translation: Charlas
|
100
themes/hugo-academic-master/i18n/eu.yaml
Normal file
@@ -0,0 +1,100 @@
|
||||
# Navigation
|
||||
|
||||
- id: toggle_navigation
|
||||
translation: Txandakatu nabigazioa
|
||||
|
||||
# Buttons
|
||||
|
||||
- id: btn_details
|
||||
translation: Xehetasunak
|
||||
|
||||
- id: btn_pdf
|
||||
translation: PDF
|
||||
|
||||
- id: btn_slides
|
||||
translation: Diapositibak
|
||||
|
||||
- id: btn_video
|
||||
translation: Bideoa
|
||||
|
||||
- id: btn_code
|
||||
translation: Kodea
|
||||
|
||||
- id: btn_dataset
|
||||
translation: Datu-sorta
|
||||
|
||||
- id: btn_project
|
||||
translation: Proiektua
|
||||
|
||||
# About widget
|
||||
|
||||
- id: interests
|
||||
translation: Interesak
|
||||
|
||||
- id: education
|
||||
translation: Ikasketak
|
||||
|
||||
# Publications widget
|
||||
|
||||
- id: more_publications
|
||||
translation: Argitalpen gehiago
|
||||
|
||||
# Posts widget
|
||||
|
||||
- id: continue_reading
|
||||
translation: JARRAITU IRAKURTZEN
|
||||
|
||||
- id: more_posts
|
||||
translation: Bidalketa gehiago
|
||||
|
||||
# Talks widget
|
||||
|
||||
- id: more_talks
|
||||
translation: Hitzaldi gehiago
|
||||
|
||||
# Publication/Talk details
|
||||
|
||||
- id: abstract
|
||||
translation: Laburpena
|
||||
|
||||
- id: publication
|
||||
translation: Non argitaratua
|
||||
|
||||
- id: publication_type
|
||||
translation: Mota
|
||||
|
||||
- id: date
|
||||
translation: Data
|
||||
|
||||
- id: links
|
||||
translation: Loturak
|
||||
|
||||
- id: event
|
||||
translation: Ekitaldia
|
||||
|
||||
- id: location
|
||||
translation: Kokalekua
|
||||
|
||||
# Filtering
|
||||
|
||||
- id: filter_by_type
|
||||
translation: Iragazi motaren arabera
|
||||
|
||||
- id: filter_all
|
||||
translation: Denak
|
||||
|
||||
# Project details
|
||||
|
||||
- id: open_project_site
|
||||
translation: Joan proiektuaren webgunera
|
||||
|
||||
# Default node titles
|
||||
|
||||
- id: posts
|
||||
translation: Bidalketak
|
||||
|
||||
- id: publications
|
||||
translation: Argitalpenak
|
||||
|
||||
- id: talks
|
||||
translation: Hitzaldiak
|
100
themes/hugo-academic-master/i18n/fr.yaml
Normal file
@@ -0,0 +1,100 @@
|
||||
# Navigation
|
||||
|
||||
- id: toggle_navigation
|
||||
translation: Ouvrir la barre de navigation
|
||||
|
||||
# Buttons
|
||||
|
||||
- id: btn_details
|
||||
translation: Renseignements
|
||||
|
||||
- id: btn_pdf
|
||||
translation: PDF
|
||||
|
||||
- id: btn_slides
|
||||
translation: Diapositives
|
||||
|
||||
- id: btn_video
|
||||
translation: Vidéo
|
||||
|
||||
- id: btn_code
|
||||
translation: Code
|
||||
|
||||
- id: btn_dataset
|
||||
translation: Jeu de données
|
||||
|
||||
- id: btn_project
|
||||
translation: Projet
|
||||
|
||||
# About widget
|
||||
|
||||
- id: interests
|
||||
translation: Intérêts
|
||||
|
||||
- id: education
|
||||
translation: Formation
|
||||
|
||||
# Publications widget
|
||||
|
||||
- id: more_publications
|
||||
translation: Plus de Publications
|
||||
|
||||
# Posts widget
|
||||
|
||||
- id: continue_reading
|
||||
translation: CONTINUER DE LIRE
|
||||
|
||||
- id: more_posts
|
||||
translation: Plus de Posts
|
||||
|
||||
# Talks widget
|
||||
|
||||
- id: more_talks
|
||||
translation: Plus de Présentations
|
||||
|
||||
# Publication/Talk details
|
||||
|
||||
- id: abstract
|
||||
translation: Résumé
|
||||
|
||||
- id: publication
|
||||
translation: Publication
|
||||
|
||||
- id: publication_type
|
||||
translation: Type
|
||||
|
||||
- id: date
|
||||
translation: Date
|
||||
|
||||
- id: links
|
||||
translation: Lien
|
||||
|
||||
- id: event
|
||||
translation: Événement
|
||||
|
||||
- id: location
|
||||
translation: Lieu
|
||||
|
||||
# Filtering
|
||||
|
||||
- id: filter_by_type
|
||||
translation: Filtré par type
|
||||
|
||||
- id: filter_all
|
||||
translation: Tout
|
||||
|
||||
# Project details
|
||||
|
||||
- id: open_project_site
|
||||
translation: Aller sur le site du projet
|
||||
|
||||
# Default node titles
|
||||
|
||||
- id: posts
|
||||
translation: Posts
|
||||
|
||||
- id: publications
|
||||
translation: Publications
|
||||
|
||||
- id: talks
|
||||
translation: Présentations
|
100
themes/hugo-academic-master/i18n/ru.yaml
Normal file
@@ -0,0 +1,100 @@
|
||||
# Navigation
|
||||
|
||||
- id: toggle_navigation
|
||||
translation: Переключить навигацию
|
||||
|
||||
# Buttons
|
||||
|
||||
- id: btn_details
|
||||
translation: Подробнее
|
||||
|
||||
- id: btn_pdf
|
||||
translation: PDF
|
||||
|
||||
- id: btn_slides
|
||||
translation: Слайды
|
||||
|
||||
- id: btn_video
|
||||
translation: Видео
|
||||
|
||||
- id: btn_code
|
||||
translation: Код
|
||||
|
||||
- id: btn_dataset
|
||||
translation: Набор данных
|
||||
|
||||
- id: btn_project
|
||||
translation: Проект
|
||||
|
||||
# About widget
|
||||
|
||||
- id: interests
|
||||
translation: Интересы
|
||||
|
||||
- id: education
|
||||
translation: Образование
|
||||
|
||||
# Publications widget
|
||||
|
||||
- id: more_publications
|
||||
translation: Больше публикаций
|
||||
|
||||
# Posts widget
|
||||
|
||||
- id: continue_reading
|
||||
translation: Читать далее
|
||||
|
||||
- id: more_posts
|
||||
translation: Больше статей
|
||||
|
||||
# Talks widget
|
||||
|
||||
- id: more_talks
|
||||
translation: Больше выступлений
|
||||
|
||||
# Publication/Talk details
|
||||
|
||||
- id: abstract
|
||||
translation: Аннотация
|
||||
|
||||
- id: publication
|
||||
translation: Публикация
|
||||
|
||||
- id: publication_type
|
||||
translation: Тип
|
||||
|
||||
- id: date
|
||||
translation: Дата
|
||||
|
||||
- id: links
|
||||
translation: Ссылки
|
||||
|
||||
- id: event
|
||||
translation: Событие
|
||||
|
||||
- id: location
|
||||
translation: Место
|
||||
|
||||
# Filtering
|
||||
|
||||
- id: filter_by_type
|
||||
translation: Фильтровать по типу
|
||||
|
||||
- id: filter_all
|
||||
translation: Все
|
||||
|
||||
# Project details
|
||||
|
||||
- id: open_project_site
|
||||
translation: Перейти на сайт проекта
|
||||
|
||||
# Section titles
|
||||
|
||||
- id: posts
|
||||
translation: Статьи
|
||||
|
||||
- id: publications
|
||||
translation: Публикации
|
||||
|
||||
- id: talks
|
||||
translation: Выступления
|
100
themes/hugo-academic-master/i18n/tr.yaml
Normal file
@@ -0,0 +1,100 @@
|
||||
# Navigation
|
||||
|
||||
- id: toggle_navigation
|
||||
translation: Arayüz yönünü değiştir
|
||||
|
||||
# Buttons
|
||||
|
||||
- id: btn_details
|
||||
translation: Daha fazla ayrıntı
|
||||
|
||||
- id: btn_pdf
|
||||
translation: PDF
|
||||
|
||||
- id: btn_slides
|
||||
translation: Slaytlar
|
||||
|
||||
- id: btn_video
|
||||
translation: Video
|
||||
|
||||
- id: btn_code
|
||||
translation: Kod
|
||||
|
||||
- id: btn_dataset
|
||||
translation: Veri kümesi
|
||||
|
||||
- id: btn_project
|
||||
translation: Proje
|
||||
|
||||
# About widget
|
||||
|
||||
- id: interests
|
||||
translation: İlgi alanları
|
||||
|
||||
- id: education
|
||||
translation: Eğitim
|
||||
|
||||
# Publications widget
|
||||
|
||||
- id: more_publications
|
||||
translation: Daha fazla yayınlar
|
||||
|
||||
# Posts widget
|
||||
|
||||
- id: continue_reading
|
||||
translation: OKUMAYA DEVAM ET
|
||||
|
||||
- id: more_posts
|
||||
translation: Daha fazla blog içeriği
|
||||
|
||||
# Talks widget
|
||||
|
||||
- id: more_talks
|
||||
translation: Daha fazla konuşma
|
||||
|
||||
# Publication/Talk details
|
||||
|
||||
- id: abstract
|
||||
translation: Özet
|
||||
|
||||
- id: publication
|
||||
translation: Yayın
|
||||
|
||||
- id: publication_type
|
||||
translation: Yayın tipi
|
||||
|
||||
- id: date
|
||||
translation: Tarih
|
||||
|
||||
- id: links
|
||||
translation: Bağlantılar
|
||||
|
||||
- id: event
|
||||
translation: Etkinlikler
|
||||
|
||||
- id: location
|
||||
translation: Adres
|
||||
|
||||
# Filtering
|
||||
|
||||
- id: filter_by_type
|
||||
translation: Yayın tipine göre sırala
|
||||
|
||||
- id: filter_all
|
||||
translation: Hepsi
|
||||
|
||||
# Project details
|
||||
|
||||
- id: open_project_site
|
||||
translation: Projenin sayfasına git
|
||||
|
||||
# Default node titles
|
||||
|
||||
- id: posts
|
||||
translation: Blog içerikleri
|
||||
|
||||
- id: publications
|
||||
translation: Yayınlar
|
||||
|
||||
- id: talks
|
||||
translation: Konuşmalar
|
BIN
themes/hugo-academic-master/images/screenshot.png
Normal file
After Width: | Height: | Size: 102 KiB |
BIN
themes/hugo-academic-master/images/tn.png
Normal file
After Width: | Height: | Size: 60 KiB |
24
themes/hugo-academic-master/layouts/404.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
<div class="container">
|
||||
|
||||
<h1>Page not found</h1>
|
||||
<p>Maybe you were looking for one of these?</p>
|
||||
|
||||
<h2>Recent Posts</h2>
|
||||
{{ range last 20 (where .Data.Pages "Section" "=" "post") }}
|
||||
<ul>
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
<h2>Recent Publications</h2>
|
||||
{{ range last 20 (where .Data.Pages "Section" "=" "publication") }}
|
||||
<ul>
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
{{ partial "footer.html" . }}
|
37
themes/hugo-academic-master/layouts/_default/list.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
{{ if .Params.header.image }}
|
||||
<div class="article-header">
|
||||
<img src="{{ "/img/" | relURL }}/{{ .Params.header.image }}" class="article-banner" itemprop="image">
|
||||
{{ with .Params.header.caption }}<span class="article-header-caption">{{ . | markdownify | emojify }}</span>{{ end }}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<div class="universal-wrapper">
|
||||
|
||||
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
||||
|
||||
{{ with .Content }}
|
||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
||||
{{ end }}
|
||||
|
||||
{{ $paginator := .Paginate .Data.Pages }}
|
||||
{{ range $paginator.Pages }}
|
||||
<div>
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
<div class="article-style">
|
||||
{{ if .Params.summary }}
|
||||
{{ printf "%s" .Params.summary | markdownify }}
|
||||
{{ else if .Truncated }}
|
||||
{{ printf "%s" .Summary | markdownify }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
{{ partial "footer.html" . }}
|
32
themes/hugo-academic-master/layouts/_default/single.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<article class="article" itemscope itemtype="http://schema.org/Article">
|
||||
|
||||
{{ if .Params.header.image }}
|
||||
<div class="article-header">
|
||||
<img src="{{ "/img/" | relURL }}/{{ .Params.header.image }}" class="article-banner" itemprop="image">
|
||||
{{ with .Params.header.caption }}<span class="article-header-caption">{{ . | markdownify | emojify }}</span>{{ end }}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<div class="article-container">
|
||||
<h1 itemprop="name">{{ .Title }}</h1>
|
||||
{{ partial "article_metadata" (dict "content" . "is_list" 0) }}
|
||||
<div class="article-style" itemprop="articleBody">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
<div class="container">
|
||||
{{ partial "section_pager.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="article-container">
|
||||
{{ partial "comments.html" . }}
|
||||
</div>
|
||||
|
||||
{{ partial "footer_container.html" . }}
|
||||
{{ partial "footer.html" . }}
|
0
themes/hugo-academic-master/layouts/home/list.html
Normal file
20
themes/hugo-academic-master/layouts/index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<!-- Flag for jQuery -->
|
||||
<span id="homepage" style="display: none"></span>
|
||||
|
||||
<!-- Widgets -->
|
||||
{{ range $index, $page := where .Data.Pages "Type" "home" }}
|
||||
{{ $params := dict "root" $ "page" $page }}
|
||||
{{ $widget := printf "widgets/%s.html" ( or $page.Params.widget "custom" ) }}
|
||||
<section id="{{ $page.File.TranslationBaseName }}" class="home-section">
|
||||
<div class="container">
|
||||
{{ partial $widget $params }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<!-- Page Footer -->
|
||||
{{ partial "footer_container.html" . }}
|
||||
{{ partial "footer.html" . }}
|
@@ -0,0 +1,41 @@
|
||||
{{ $is_list := .is_list }}
|
||||
{{ $ := .content }}
|
||||
<div class="article-metadata">
|
||||
|
||||
<span class="article-date">
|
||||
<time datetime="{{ $.Date }}" itemprop="datePublished">
|
||||
{{ $.Date.Format $.Site.Params.date_format }}
|
||||
</time>
|
||||
</span>
|
||||
|
||||
{{ if isset $.Params "categories" }}
|
||||
{{ $categoriesLen := len $.Params.categories }}
|
||||
{{ if gt $categoriesLen 0 }}
|
||||
<span class="article-categories">
|
||||
<i class="fa fa-folder"></i>
|
||||
{{ range $k, $v := $.Params.categories }}
|
||||
<a href="{{ "/categories/" | relLangURL }}{{ . | urlize | lower }}">{{ . }}</a
|
||||
>{{ if lt $k (sub $categoriesLen 1) }}, {{ end }}
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if isset $.Params "tags" }}
|
||||
{{ $tagsLen := len $.Params.tags }}
|
||||
{{ if gt $tagsLen 0 }}
|
||||
<span class="article-tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
{{ range $k, $v := $.Params.tags }}
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize | lower }}">{{ . }}</a
|
||||
>{{ if lt $k (sub $tagsLen 1) }}, {{ end }}
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if ne $is_list 1 }}
|
||||
{{ partial "share.html" $ }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
@@ -0,0 +1,7 @@
|
||||
{{ if and .Site.DisqusShortname (not (or .Site.Params.disable_comments .Params.disable_comments)) }}
|
||||
<section id="comments">
|
||||
<div id="disqus_thread">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
63
themes/hugo-academic-master/layouts/partials/footer.html
Normal file
@@ -0,0 +1,63 @@
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.4/TweenMax.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/ScrollToPlugin.min.js"></script>
|
||||
<script src="{{ "/js/jquery-1.12.3.min.js" | relURL }}"></script>
|
||||
<script src="{{ "/js/bootstrap.min.js" | relURL }}"></script>
|
||||
<script src="{{ "/js/isotope.pkgd.min.js" | relURL }}"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/4.1.1/imagesloaded.pkgd.min.js"></script>
|
||||
<script src="{{ "/js/hugo-academic.js" | relURL }}"></script>
|
||||
{{ range .Site.Params.custom_js }}
|
||||
<script src="{{ "/js/" | relURL }}{{ . }}"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.GoogleAnalytics }}
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', '{{ . }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
/* Send outbound link click events */
|
||||
var links = document.querySelectorAll('a');
|
||||
Array.prototype.map.call(links, function(item) {
|
||||
if (item.host != document.location.host) {
|
||||
item.addEventListener('click', function() {
|
||||
var action = item.getAttribute('data-action') || 'follow';
|
||||
ga('send', 'event', 'outbound', action, item.href);
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
<!-- Code highlighting -->
|
||||
{{ if $.Scratch.Get "highlight_enabled" }}
|
||||
{{ $v := .Site.Params.highlight_version | default "9.9.0" }}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/highlight.min.js"></script>
|
||||
|
||||
{{ range .Site.Params.highlight_languages }}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/languages/{{ . }}.min.js"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ range .Params.highlight_languages }}
|
||||
{{/* Do not double-include languages that are in both .Site.Params and .Params.
|
||||
If Hugo ever grows a "union" function for set union, this range clause can be merged with the one above. */}}
|
||||
{{ if not (in $.Site.Params.highlight_languages .) }}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/languages/{{ . }}.min.js"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
{{ end }}
|
||||
|
||||
<!-- LaTeX math rendering -->
|
||||
{{ if or .Params.math .Site.Params.math }}
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
|
||||
</script>
|
||||
<script async src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"></script>
|
||||
{{ end }}
|
||||
|
||||
</body>
|
||||
</html>
|
@@ -0,0 +1,20 @@
|
||||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
<p class="powered-by">
|
||||
|
||||
{{ with .Site.Copyright }}{{ . | markdownify}} · {{ end }}
|
||||
|
||||
Powered by the <a href="https://github.com/gcushen/hugo-academic" target="_blank">Academic
|
||||
theme</a> for <a href="http://gohugo.io" target="_blank">Hugo</a>.
|
||||
|
||||
<span class="pull-right" aria-hidden="true">
|
||||
<a href="#" id="back_to_top">
|
||||
<span class="button_icon">
|
||||
<i class="fa fa-chevron-up fa-2x"></i>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
51
themes/hugo-academic-master/layouts/partials/header.html
Normal file
@@ -0,0 +1,51 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="theme" content="hugo-academic">
|
||||
{{ .Hugo.Generator }}
|
||||
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.role }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
|
||||
{{/* Default to enabling highlighting, but allow the user to override it in .Params or .Site.Params.
|
||||
Use $.Scratch to store "highlight_enabled", so that we can read it again in footer.html. */}}
|
||||
{{ $.Scratch.Set "highlight_enabled" true }}
|
||||
{{ if isset .Params "highlight" }}
|
||||
{{ $.Scratch.Set "highlight_enabled" .Params.highlight }}
|
||||
{{ else if isset .Site.Params "highlight" }}
|
||||
{{ $.Scratch.Set "highlight_enabled" .Site.Params.highlight }}
|
||||
{{ end }}
|
||||
{{ if $.Scratch.Get "highlight_enabled" }}
|
||||
{{ $v := .Site.Params.highlight_version | default "9.9.0" }}
|
||||
{{ with .Site.Params.highlight_style }}
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/styles/{{ . }}.min.css">
|
||||
{{ else }}
|
||||
<link rel="stylesheet" href="{{ "/css/highlight.min.css" | relURL }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<link rel="stylesheet" href="{{ "/css/bootstrap.min.css" | relURL }}">
|
||||
<link rel="stylesheet" href="{{ "/css/font-awesome.min.css" | relURL }}">
|
||||
<link rel="stylesheet" href="{{ "/css/academicons.min.css" | relURL }}">
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:400,700|Merriweather|Roboto+Mono">
|
||||
<link rel="stylesheet" href="{{ "/css/hugo-academic.css" | relURL }}">
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
|
||||
{{ end }}
|
||||
|
||||
<link rel="alternate" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
<link rel="feed" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
|
||||
<link rel="icon" type="image/png" href="{{ "/img/icon.png" | relURL }}">
|
||||
<link rel="apple-touch-icon" type="image/png" href="{{ "/img/apple-touch-icon.png" | relURL }}">
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
{{ partial "head_custom" . }}
|
||||
|
||||
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
||||
|
||||
</head>
|
||||
<body id="top" data-spy="scroll" data-target="#navbar-main" data-offset="71">
|
56
themes/hugo-academic-master/layouts/partials/navbar.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<nav class="navbar navbar-default navbar-fixed-top" id="navbar-main">
|
||||
<div class="container">
|
||||
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
|
||||
data-target=".navbar-collapse" aria-expanded="false">
|
||||
<span class="sr-only">{{ i18n "toggle_navigation" }}</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="{{ "/" | relLangURL }}">{{ .Site.Title }}</a>
|
||||
</div>
|
||||
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse">
|
||||
|
||||
<!-- Left Nav Bar -->
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{{ range .Site.Menus.main }}
|
||||
|
||||
{{ if .HasChildren }}
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">
|
||||
{{ .Name }}
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
{{ range .Children }}
|
||||
<li class="nav-item">
|
||||
<a href="{{ .URL | relLangURL }}"{{ if $.IsHome }} data-target="{{ .URL }}"{{ end }}>
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
{{ else }}
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="{{ .URL | relLangURL }}"{{ if $.IsHome }} data-target="{{ .URL }}"{{ end }}>
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
</div><!-- /.navbar-collapse -->
|
||||
</div><!-- /.container -->
|
||||
</nav>
|
12
themes/hugo-academic-master/layouts/partials/pagination.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
<nav>
|
||||
<ul class="pager">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li><a href="{{ .Site.BaseURL }}{{ .Paginator.Prev.URL }}">« Previous</a></li>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li><a href="{{ .Site.BaseURL }}{{ .Paginator.Next.URL }}">Next »</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
{{ end }}
|
29
themes/hugo-academic-master/layouts/partials/post_li.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{{ $post := .post }}
|
||||
{{ $page := .page }}
|
||||
|
||||
<div class="article-list-item" itemscope itemprop="blogPost">
|
||||
{{ $preview := $post.Params.header.preview | default true }}
|
||||
{{ if and $post.Params.header.image $preview }}
|
||||
<a href="{{ $post.Permalink }}">
|
||||
<img src="{{ "/img/" | relURL }}{{ $post.Params.header.image }}" class="article-banner" itemprop="image">
|
||||
</a>
|
||||
{{end}}
|
||||
<h3 class="article-title" itemprop="name">
|
||||
<a href="{{ $post.Permalink }}" itemprop="url">{{ $post.Title }}</a>
|
||||
</h3>
|
||||
{{ partial "article_metadata" (dict "content" $post "is_list" 1) }}
|
||||
<div class="article-style" itemprop="articleBody">
|
||||
{{ if $post.Params.summary }}
|
||||
<p>{{ printf "%s" $post.Params.summary | markdownify }}</p>
|
||||
{{ else if $post.Truncated }}
|
||||
{{ $post.Summary }}
|
||||
{{ else }}
|
||||
{{ $post.Content }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<p class="read-more">
|
||||
<a href="{{ $post.Permalink }}" class="btn btn-primary btn-outline">
|
||||
{{ i18n "continue_reading" }}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
@@ -0,0 +1,61 @@
|
||||
<div class="pub-list-item" itemscope itemtype="http://schema.org/CreativeWork">
|
||||
<div class="row">
|
||||
|
||||
{{ if .Params.image_preview }}
|
||||
|
||||
<div class="col-md-12">
|
||||
<a href="{{ .Permalink }}">
|
||||
<img src="{{ "/img/" | relURL }}{{ .Params.image_preview }}" class="pub-banner"
|
||||
itemprop="image">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
{{ else if .Params.header.image}}
|
||||
|
||||
<div class="col-md-12">
|
||||
<a href="{{ .Permalink }}">
|
||||
<img src="{{ "/img/" | relURL }}{{ .Params.header.image }}" class="pub-banner" itemprop="image">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
{{ else }}
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
{{ end }}
|
||||
|
||||
<h3 class="article-title" itemprop="name">
|
||||
<a href="{{ .Permalink }}" itemprop="url">{{ .Title }}</a>
|
||||
</h3>
|
||||
|
||||
<div class="pub-abstract" itemprop="text">
|
||||
{{ if .Params.abstract_short }}
|
||||
{{ .Params.abstract_short }}
|
||||
{{ else }}
|
||||
{{ .Params.abstract }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pub-authors" itemprop="author">
|
||||
{{ with .Params.authors }}
|
||||
{{ delimit . ", " | markdownify }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pub-publication">
|
||||
{{ if .Params.publication_short }}
|
||||
{{ .Params.publication_short | markdownify }}
|
||||
{{ else }}
|
||||
{{ .Params.publication | markdownify }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pub-links">
|
||||
{{ partial "publication_links" (dict "content" . "is_list" 1) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,5 @@
|
||||
<li itemscope itemtype="http://schema.org/CreativeWork">
|
||||
<i class="fa-li fa fa-file-text-o pub-icon" aria-hidden="true"></i>
|
||||
<span itemprop="name">{{ .Title }}</span>
|
||||
<p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
|
||||
</li>
|
@@ -0,0 +1,43 @@
|
||||
{{ $is_list := .is_list }}
|
||||
{{ $ := .content }}
|
||||
|
||||
{{ if $is_list }}
|
||||
<a class="btn btn-primary btn-outline btn-xs" href="{{ $.Permalink }}">
|
||||
{{ i18n "btn_details" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_pdf }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_pdf" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_slides }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_slides" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_video }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_video" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_code }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_code" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_dataset }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_dataset" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_project }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_project" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ range $.Params.url_custom }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ .url | absURL }}">
|
||||
{{ .name }}
|
||||
</a>
|
||||
{{ end }}
|
@@ -0,0 +1,13 @@
|
||||
<nav>
|
||||
<ul class="pager">
|
||||
{{if .PrevInSection}}
|
||||
<li class="previous"><a href="{{.PrevInSection.Permalink}}"><span
|
||||
aria-hidden="true">←</span> {{.PrevInSection.Title}}</a></li>
|
||||
{{end}}
|
||||
|
||||
{{if .NextInSection}}
|
||||
<li class="next"><a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}} <span
|
||||
aria-hidden="true">→</span></a></li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</nav>
|
40
themes/hugo-academic-master/layouts/partials/share.html
Normal file
@@ -0,0 +1,40 @@
|
||||
{{ if .Site.Params.sharing }}
|
||||
<div class="share-box" aria-hidden="true">
|
||||
<ul class="share">
|
||||
<li>
|
||||
<a class="facebook"
|
||||
href="https://www.facebook.com/sharer.php?u={{ .Permalink | html }}"
|
||||
target="_blank">
|
||||
<i class="fa fa-facebook"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="twitter"
|
||||
href="https://twitter.com/intent/tweet?text={{ .Title | html }}&url={{ .Permalink | html }}"
|
||||
target="_blank">
|
||||
<i class="fa fa-twitter"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="linkedin"
|
||||
href="https://www.linkedin.com/shareArticle?mini=true&url={{ .Permalink | html }}&title={{ .Title | html }}"
|
||||
target="_blank">
|
||||
<i class="fa fa-linkedin"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="weibo"
|
||||
href="http://service.weibo.com/share/share.php?url={{ .Permalink | html }}&title={{ .Title | html }}"
|
||||
target="_blank">
|
||||
<i class="fa fa-weibo"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="email"
|
||||
href="mailto:?subject={{ .Title | html }}&body={{ .Permalink | html }}">
|
||||
<i class="fa fa-envelope"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
@@ -0,0 +1,29 @@
|
||||
<div class="pub-list-item" itemscope itemtype="http://schema.org/CreativeWork">
|
||||
<div class="row">
|
||||
|
||||
<h3 class="article-title" itemprop="name">
|
||||
<a href="{{ .Permalink }}" itemprop="url">{{ .Title }}</a>
|
||||
</h3>
|
||||
|
||||
<div class="talk-abstract" itemprop="text">
|
||||
{{ if .Params.abstract_short }}
|
||||
{{ .Params.abstract_short }}
|
||||
{{ else }}
|
||||
{{ .Params.abstract }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="talk-event">
|
||||
{{ if .Params.event }}
|
||||
{{ .Params.event | markdownify }}
|
||||
{{ else if .Params.event_short }}
|
||||
{{ .Params.event_short | markdownify }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="talk-links">
|
||||
{{ partial "talk_links" (dict "content" . "is_list" 1) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,12 @@
|
||||
<li itemscope itemtype="http://schema.org/CreativeWork">
|
||||
<i class="fa-li fa fa-comment-o pub-icon" aria-hidden="true"></i>
|
||||
<span itemprop="name"><a href="{{ .Permalink }}">{{ .Title }}</a></span>
|
||||
<p>
|
||||
{{ .Date.Format $.Site.Params.date_format }},
|
||||
{{ if .Params.event_short }}
|
||||
{{ .Params.event_short | markdownify }}
|
||||
{{ else if .Params.event }}
|
||||
{{ .Params.event | markdownify }}
|
||||
{{ end }}
|
||||
</p>
|
||||
</li>
|
28
themes/hugo-academic-master/layouts/partials/talk_links.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{{ $is_list := .is_list }}
|
||||
{{ $ := .content }}
|
||||
|
||||
{{ if $is_list }}
|
||||
<a class="btn btn-primary btn-outline btn-xs" href="{{ $.Permalink }}">
|
||||
{{ i18n "btn_details" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_pdf }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_pdf" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_slides }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_slides" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_video }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
{{ i18n "btn_video" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ range $.Params.url_custom }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ .url | absURL }}">
|
||||
{{ .name }}
|
||||
</a>
|
||||
{{ end }}
|
@@ -0,0 +1,76 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
|
||||
<!-- About widget -->
|
||||
<div class="row" itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||
<div class="col-xs-12 col-md-4">
|
||||
<div id="profile">
|
||||
|
||||
{{ with $.Site.Params.avatar }}
|
||||
<div class="portrait" itemprop="image"
|
||||
style="background-image: url('{{ "/img/" | relURL }}{{ . }}');">
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="portrait-title">
|
||||
<h2 itemprop="name">{{ $.Site.Params.name }}</h2>
|
||||
<h3 itemprop="jobTitle">{{ $.Site.Params.role }}</h3>
|
||||
{{ if $.Site.Params.organization }}
|
||||
<h3 itemprop="worksFor">
|
||||
{{ with $.Site.Params.organization_url }}<a href="{{ . }}" target="_blank">{{ end }}
|
||||
{{ $.Site.Params.organization }}
|
||||
{{ if $.Site.Params.organization_url }}</a>{{ end }}
|
||||
</h3>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<ul class="social-icon" aria-hidden="true">
|
||||
{{ range $.Site.Params.social }}
|
||||
{{ $pack := or .icon_pack "fa" }}
|
||||
<li>
|
||||
<a href="{{ .link | safeURL }}" target="_blank">
|
||||
<i class="{{ $pack }} {{ $pack }}-{{ .icon }} big-icon"></i>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8" itemprop="description">
|
||||
|
||||
{{ $page.Content }}
|
||||
|
||||
<div class="row">
|
||||
|
||||
{{ with $page.Params.interests }}
|
||||
<div class="col-sm-5">
|
||||
<h3>{{ i18n "interests" | markdownify }}</h3>
|
||||
<ul class="ul-interests">
|
||||
{{ range .interests }}
|
||||
<li>{{ . }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ with $page.Params.education }}
|
||||
<div class="col-sm-7">
|
||||
<h3>{{ i18n "education" | markdownify }}</h3>
|
||||
<ul class="ul-edu fa-ul">
|
||||
{{ range .courses }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-graduation-cap"></i>
|
||||
<div class="description">
|
||||
<p class="course">{{ .course }}{{ with .year }}, {{ . }}{{ end }}</p>
|
||||
<p class="institution">{{ .institution }}</p>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,78 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
{{ $autolink := default true $page.Params.autolink }}
|
||||
|
||||
<!-- Contact widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
<ul class="fa-ul">
|
||||
|
||||
{{ with $.Site.Params.email }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-envelope fa-2x" aria-hidden="true"></i>
|
||||
<span>
|
||||
{{- if $autolink }}<a href="mailto:{{ . }}">{{ . }}</a>{{ else }}{{ . }}{{ end -}}
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.keybase }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-lock fa-2x" aria-hidden="true"></i>
|
||||
<span>
|
||||
<a href="https://keybase.io/{{ . }}" target="_blank">@{{ . }}</a> on Keybase.
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.phone }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-phone fa-2x" aria-hidden="true"></i>
|
||||
<span>
|
||||
{{- if $autolink }}<a href="tel:{{ . }}">{{ . }}</a>{{ else }}{{ . }}{{ end -}}
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.skype }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-skype fa-2x" aria-hidden="true"></i>
|
||||
<span>
|
||||
{{- if $autolink }}<a href="skype:{{ . }}?call">{{ . }}</a>{{ else }}{{ . }}{{ end -}}
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.telegram }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-telegram fa-2x" aria-hidden="true"></i>
|
||||
<span>
|
||||
{{- if $autolink }}<a href="https://telegram.me/{{ . }}" target="_blank">@{{ . }}</a>{{ else }}@{{ . }}{{ end -}}
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.address }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-map-marker fa-2x" aria-hidden="true"></i>
|
||||
<span>{{ . }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.office_hours }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-clock-o fa-2x" aria-hidden="true"></i>
|
||||
<span>{{ . }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,12 @@
|
||||
{{ $page := .page }}
|
||||
|
||||
<!-- Custom widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ $page.Content }}
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,38 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
{{ $posts_len := len (where (where $.Data.Pages "Type" "post") ".Params.notonhomepage" nil) }}
|
||||
|
||||
<!-- Blog Posts widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ if gt $posts_len $page.Params.count }}
|
||||
<p class="view-all">
|
||||
<a href="{{ "/post/" | relLangURL }}">
|
||||
{{ i18n "more_posts" | markdownify }}
|
||||
<i class="fa fa-angle-double-right"></i>
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
{{ if $page.Params.tags }}
|
||||
{{ range first $page.Params.count (where (where (where $.Data.Pages "Type" "post") ".Params.tags" "intersect" $page.Params.tags) ".Params.notonhomepage" nil) }}
|
||||
{{ $params := dict "post" . "page" $page }}
|
||||
{{ partial "post_li" $params }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ range first $page.Params.count (where (where $.Data.Pages "Type" "post") ".Params.notonhomepage" nil) }}
|
||||
{{ $params := dict "post" . "page" $page }}
|
||||
{{ partial "post_li" $params }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,83 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
|
||||
<!-- Projects widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
<div class="project-toolbar">
|
||||
<div id="filters">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
{{ range $page.Params.filter }}
|
||||
<a href="#" data-filter="{{ .tag }}" class="btn btn-primary btn-large{{ if eq .tag "*" }} active{{ end }}">{{ .name }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ if eq $page.Params.view 0 }}
|
||||
|
||||
<div id="container-projects" class="isotope">
|
||||
<ul class="fa-ul" style="position: relative">
|
||||
|
||||
{{ range where $.Data.Pages "Type" "project" }}
|
||||
<li class="project-item isotope-item {{ delimit .Params.tags " " }}">
|
||||
<span class="project-title">
|
||||
{{ if .Content }}
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ else }}
|
||||
{{ with .Params.external_link }}<a href="{{ . }}" target="_blank">{{ end }}
|
||||
{{ end }}
|
||||
<i class="fa-li fa fa-files-o pub-icon" aria-hidden="true"></i>
|
||||
{{ .Title }}
|
||||
{{ if .Content }}</a>{{ else }}{{ with .Params.external_link }}</a>{{ end }}{{ end }}
|
||||
</span>
|
||||
{{ with .Params.summary }}<p class="project-summary">{{ . | markdownify }}</p>{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{{ else }}
|
||||
|
||||
<div id="container-projects" class="row isotope">
|
||||
|
||||
{{ range $project := where $.Data.Pages "Type" "project" }}
|
||||
{{ $.Scratch.Set "project_url" $project.Permalink }}
|
||||
{{ $.Scratch.Set "target" "" }}
|
||||
{{ if $project.Params.external_link }}
|
||||
{{ $.Scratch.Set "project_url" $project.Params.external_link }}
|
||||
{{ $.Scratch.Set "target" "target=\"_blank\"" }}
|
||||
{{ end }}
|
||||
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-6 project-item isotope-item {{ delimit .Params.tags " " }}">
|
||||
<div class="card">
|
||||
{{ with $project.Params.image_preview }}
|
||||
<a href="{{ $.Scratch.Get "project_url" }}" title="" class="card-image hover-overlay"
|
||||
{{ $.Scratch.Get "target" | safeHTMLAttr }}>
|
||||
<img src="{{ "/img/" | relURL }}{{ . }}" alt="" class="img-responsive">
|
||||
</a>
|
||||
{{ end }}
|
||||
<div class="card-text">
|
||||
<h4><a href="{{ $.Scratch.Get "project_url" }}" {{ $.Scratch.Get "target" | safeHTMLAttr }}>{{ .Title }}</a></h4>
|
||||
<div class="card-desription">
|
||||
{{ with $project.Params.summary }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,35 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
{{ $pubs_len := len (where $.Data.Pages "Type" "publication") }}
|
||||
|
||||
<!-- Publications widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ if gt $pubs_len $page.Params.count }}
|
||||
<p class="view-all">
|
||||
<a href="{{ "/publication/" | relLangURL }}">
|
||||
{{ i18n "more_publications" | markdownify }}
|
||||
<i class="fa fa-angle-double-right"></i>
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
{{ if $page.Params.detailed_list }}
|
||||
{{ range first $page.Params.count (where $.Data.Pages "Type" "publication") }}
|
||||
{{ partial "publication_li_detailed" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<ul class="fa-ul">
|
||||
{{ range first $page.Params.count (where $.Data.Pages "Type" "publication") }}
|
||||
{{ partial "publication_li_simple" . }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,26 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
|
||||
<!-- Selected Publications widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
{{ if $page.Params.detailed_list }}
|
||||
{{ range (where (where $.Data.Pages "Type" "publication") ".Params.selected" true) }}
|
||||
{{ partial "publication_li_detailed" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<ul class="fa-ul">
|
||||
{{ range (where (where $.Data.Pages "Type" "publication") ".Params.selected" true) }}
|
||||
{{ partial "publication_li_simple" . }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|