starters: add Portfolio starter

This commit is contained in:
George Cushen 2022-02-13 22:25:26 +00:00
commit 585a65e926
33 changed files with 697 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# Theme metadata
# Essentially Minimal theme but with constant home section bg color.
name = "Starter Blog"
[light]
@ -16,6 +16,9 @@ name = "Starter Blog"
home_section_even = "rgb(247, 250, 252)"
[dark]
primary = "#bbdefb"
link = "#bbdefb"
link_hover = "#bbdefb"
background = "rgb(26, 32, 44)"
home_section_odd = "rgb(26, 32, 44)"
home_section_even = "rgb(26, 32, 44)"

View file

@ -0,0 +1,20 @@
# 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
[layouts/shortcodes/*.html]
insert_final_newline = false

7
starters/portfolio/.gitignore vendored Normal file
View file

@ -0,0 +1,7 @@
# IDEs
.idea/
# Hugo
resources/
public/
assets/jsconfig.json

View file

@ -0,0 +1,31 @@
# [Hugo Portfolio Theme](https://github.com/wowchemy/starter-hugo-portfolio-theme)
[![Screenshot](./preview.png)](https://wowchemy.com/hugo-themes/)
The **Hugo Portfolio Template** empowers you to easily create a portfolio website. Make it your own by choosing a color theme and layout!
**Trusted by 250,000+ researchers, educators, and students.** Highly customizable via the integrated **no-code, widget-based Wowchemy page builder**, making every site truly personalized ⭐⭐⭐⭐⭐
[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://wowchemy.com/hugo-themes/)
[![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138)
[![Twitter Follow](https://img.shields.io/twitter/follow/wowchemy?label=Follow%20on%20Twitter)](https://twitter.com/wowchemy)
[Check out the latest demo](https://wowchemy.com/hugo-themes/) of what you'll get in less than 10 minutes, or [view the showcase](https://wowchemy.com/creators/).
The integrated [**Wowchemy**](https://wowchemy.com) website builder and CMS makes it easy to create a beautiful website for free. Edit your site in the CMS (or your favorite editor), generate it with [Hugo](https://github.com/gohugoio/hugo), and deploy with GitHub or Netlify. Customize anything on your site with widgets, light/dark themes, and language packs.
- 👉 [**Get Started**](https://wowchemy.com/hugo-themes/)
- 📚 [View the **documentation**](https://wowchemy.com/docs/)
- 💬 [Chat with the **Wowchemy research community**](https://discord.gg/z8wNYzb) or [**Hugo community**](https://discourse.gohugo.io)
- 🐦 Twitter: [@wowchemy](https://twitter.com/wowchemy) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithWowchemy](https://twitter.com/search?q=(%23MadeWithWowchemy%20OR%20%23MadeWithAcademic)&src=typed_query)
- ⬇️ **Automatically import your publications from BibTeX** with the [Hugo Academic CLI](https://github.com/wowchemy/hugo-academic-cli)
- 💡 [Suggest an improvement](https://github.com/wowchemy/wowchemy-hugo-themes/issues)
- ⬆️ **Updating?** View the [Update Guide](https://wowchemy.com/docs/hugo-tutorials/update/) and [Release Notes](https://github.com/wowchemy/wowchemy-hugo-themes/releases)
## We ask you, humbly, to support this open source movement
Today we ask you to defend the open source independence of the Wowchemy website builder and themes 🐧
We're an open source movement that depends on your support to stay online and thriving, but 99.9% of our creators don't give; they simply look the other way.
### [❤️ Click here to become a GitHub Sponsor, unlocking awesome perks such as _exclusive academic templates and widgets_](https://github.com/sponsors/gcushen)

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -0,0 +1,114 @@
// Starter Blog Template
// https://wowchemy.com/hugo-themes/
body {
background-color: rgb(247, 250, 252);
}
.article-container {
background-color: #fff;
border-radius: 15px;
}
.dark .article-container {
background-color: rgb(31, 39, 51);
}
// custom footer color
.page-footer {
background-color: rgb(247, 250, 252);
}
.dark .page-footer {
background-color: rgb(26, 32, 44);
}
// more rounded cards and larger gap between cards
.card-simple {
margin-top: 1.8rem;
border-radius: 15px;
}
.dark .card-simple {
background: rgb(31, 39, 51);
}
// no navbar shadow
.navbar {
box-shadow: none !important; // 'important' to override dark mode box-shadow too.
}
// custom section padding
.home-section {
padding: 1rem 0 1rem 0;
}
.home-section.wg-about-avatar {
padding: 0 0 0 0;
}
#profile .network-icon {
margin-top: 0.5rem;
}
ul.network-icon .big-icon {
font-size: 1.5rem;
}
.dark .portrait-title h3 {
color: rgba(255, 255, 255, 0.9);
font-weight: bold;
}
.dark .portrait-title h2 {
color: #fff;
font-weight: bold;
}
.home-section > .content {
width: 45em;
max-width: calc(100% - 4em);
margin: 0 auto;
}
.home-section > .content > :last-child {
margin-bottom: 0;
}
.home-section header {
margin-bottom: 1em;
}
// Narrower container for Hello World sections (primarily Blank widget content).
@media (min-width: 1200px) {
.home-section .container {
max-width: 880px;
}
}
@media (min-width: 992px){
.home-section .container {
max-width: 880px;
}
}
// Custom avatar size on homepage
.avatar {
width: auto;
height: auto;
max-width: 225px;
max-height: 225px;
}
// Prevent stretching on About page with narrow container
.wg-about .avatar {
width: auto;
height: auto;
max-width: 200px;
max-height: 200px;
}
// Smaller Name and Role text on About page than in homepage `about.avatar` widget
.wg-about .portrait-title h2 {
font-size: 1rem
}
.wg-about .portrait-title h3 {
font-size: .8rem
}

View file

@ -0,0 +1,83 @@
# Configuration of Hugo
# Guide: https://wowchemy.com/docs/getting-started/
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
title: Hugo Portfolio Theme # Website name
baseURL: 'https://example.com/' # Website URL
############################
## PAGE OPTIONS
############################
cascade:
# Blog post options
- _target:
path: /post/**
editable: true
reading_time: true
commentable: true
show_related: true
show_breadcrumb: true
############################
## LANGUAGE
############################
defaultContentLanguage: en
hasCJKLanguage: false
defaultContentLanguageInSubdir: false
removePathAccents: true
############################
## MODULES
############################
module:
imports:
- path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5
- path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5
############################
## ADVANCED
############################
enableGitInfo: false
summaryLength: 30
paginate: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
permalinks:
authors: '/author/:slug/'
tags: '/tag/:slug/'
categories: '/category/:slug/'
disableAliases: true
outputs:
home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
section: [HTML, RSS]
imaging:
resampleFilter: lanczos
quality: 75
anchor: smart
timeout: 600000
taxonomies:
tag: tags
category: categories
author: authors
markup:
_merge: deep
related:
threshold: 80
includeNewer: true
toLower: true
indices:
- name: tags
weight: 100
- name: categories
weight: 70
security:
_merge: deep
sitemap:
_merge: deep

View file

@ -0,0 +1,22 @@
# Languages
# Create a section for each of your site's languages.
# Documentation: https://wowchemy.com/docs/guide/language/
# Default language
en:
languageCode: en-us
# Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
#contentDir: content/en
# Uncomment the lines below to configure your website in a second language.
#zh:
# languageCode: zh-Hans
# contentDir: content/zh
# title: Chinese website title...
# params:
# description: Site description in Chinese...
# menu:
# main:
# - name: 传
# url: '#about'
# weight: 1

View file

@ -0,0 +1,12 @@
# 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.
main:
- name: Home
url: /
weight: 10
- name: About
url: about/
weight: 20

View file

@ -0,0 +1,105 @@
# SITE SETUP
# Guide: https://wowchemy.com/docs/getting-started/
# Documentation: https://wowchemy.com/docs/
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
# Appearance
appearance:
theme_day: custom
theme_night: custom
font: minimal
font_size: L
# SEO
marketing:
seo:
site_type: Person
local_business_type: ''
org_name: ''
description: 'A highly-customizable Hugo blog theme powered by Wowchemy website builder.'
twitter: 'wowchemy'
analytics:
google_analytics: ''
baidu_tongji: ''
verification:
google: ''
baidu: ''
# Site header
header:
navbar:
enable: false
align: r
show_logo: false
show_language: false
show_day_night: true
show_search: true
highlight_active_link: false
footer:
copyright:
notice: '© {year} Me. This work is licensed under {license}'
license:
enable: true
allow_derivatives: false
share_alike: true
allow_commercial: false
# Localization
locale:
date_format: 'Jan 2, 2006'
time_format: '3:04 PM'
# Site features
features:
syntax_highlighter:
enable: true
extra_languages:
- r
- latex
math:
enable: false
diagram:
enable: false
privacy_pack:
enable: false
repository:
url: 'https://github.com/<username>/<repository>'
content_dir: content
branch: main
avatar:
gravatar: false
shape: circle
comment:
provider: ''
disqus:
shortname: ''
show_count: true
commento:
url: ''
search:
provider: wowchemy
algolia:
app_id: ''
api_key: ''
index_name: ''
show_logo: false
map:
provider: ''
api_key: ''
zoom: 15
extensions:
cms:
branch: main
local_backend: false
isotope:
# Enable if you use the Portfolio widget or Publication filter
enable: true
academicons:
enable: false

View file

@ -0,0 +1,21 @@
---
# An instance of the About widget.
# Documentation: https://wowchemy.com/docs/page-builder/
widget: about
# Activate this widget? true/false
active: true
# This file represents a page section.
headless: true
# Order that this section appears on the page.
weight: 10
title: Hello
# Choose the user profile to display
# This should be the username (folder name) of a profile in your `content/authors/` folder.
# See https://wowchemy.com/docs/get-started/#introduce-yourself
author: admin
---

View file

@ -0,0 +1,30 @@
---
# An instance of the Contact widget.
# Documentation: https://sourcethemes.com/academic/docs/page-builder/
widget: contact
# This file represents a page section.
headless: true
# Order that this section appears on the page.
weight: 20
title:
subtitle:
content:
# Automatically link email and phone or display as text?
autolink: true
# Email form provider
form:
provider: netlify
formspree:
id:
netlify:
# Enable CAPTCHA challenge to reduce spam?
captcha: false
design:
columns: '1'
---

View file

@ -0,0 +1,3 @@
---
type: widget_page
---

View file

@ -0,0 +1,8 @@
---
# Generate Wowchemy CMS
type: wowchemycms
private: true
outputs:
- wowchemycms_config
- HTML
---

View file

@ -0,0 +1,11 @@
---
cms_exclude: true
# To publish author profile pages, remove all of the `_build` and `cascade` settings below.
_build:
render: never
cascade:
_build:
render: never
list: always
---

View file

@ -0,0 +1,72 @@
---
# Display name
title: Alice Wu (吳恩達)
# Is this the primary user of the site?
superuser: true
# Role/position
role: 数据科学家
# Status emoji
status:
icon: ☕️
# Organizations/Affiliations
organizations:
- name: 腾讯
url: ""
# Short bio (displayed in user profile at end of posts)
bio: My research interests include distributed robotics, mobile computing and programmable matter.
#interests:
#- Artificial Intelligence
#- Computational Linguistics
#- Information Retrieval
#education:
# courses:
# - course: PhD in Artificial Intelligence
# institution: Stanford University
# year: 2012
# - course: MEng in Artificial Intelligence
# institution: Massachusetts Institute of Technology
# year: 2009
# - course: BSc in Artificial Intelligence
# institution: Massachusetts Institute of Technology
# year: 2008
# Social/Academic Networking
# For available icons, see: https://sourcethemes.com/academic/docs/page-builder/#icons
# For an email link, use "fas" icon pack, "envelope" icon, and a link in the
# form "mailto:your-email@example.com" or "#contact" for contact widget.
social:
- icon: envelope
icon_pack: fas
link: 'about/#contact' # For a direct email link, use "mailto:test@example.org".
- icon: twitter
icon_pack: fab
link: https://twitter.com/wowchemy
- icon: instagram
icon_pack: fab
link: https://instagram.com/geocushen
# Uncomment below for Github link
#- icon: github
# icon_pack: fab
# link: https://github.com/gcushen
# Link to a PDF of your resume/CV from the About widget.
# To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below.
# - icon: cv
# icon_pack: ai
# link: files/cv.pdf
# Enter email to display Gravatar (if Gravatar enabled in Config)
#email: ""
---
Alice Wu 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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View file

@ -0,0 +1,7 @@
---
# Homepage
type: widget_page
# Homepage is headless, other widget pages are not.
headless: true
---

View file

@ -0,0 +1,25 @@
---
# Use the Intro widget of the Blog template
widget: about.avatar
# This file represents a page section.
headless: true
# Order that this section will appear in.
weight: 10
author: admin
#design:
# background:
# color: '#090a0b'
# text_color_light: true
# video:
# path: # enter filename of a video in /assets/media
# css_class: fullscreen
---
👋 Hi, there! I'm **Alice**, a machine learning researcher at Netflix.
{style="font-size: 1.2rem; background: #FFB76B; background: linear-gradient(to right, #FFB76B 0%, #FFA73D 30%, #FF7C00 60%, #FF7F04 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;"}
Check out my [CV](/about/) and portfolio below 😍

View file

@ -0,0 +1,44 @@
---
# A section created with the Portfolio widget.
# This section displays content from `content/project/`.
# See https://wowchemy.com/docs/widget/portfolio/
widget: portfolio
# This file represents a page section.
headless: true
# Order that this section appears on the page.
weight: 20
title: ''
subtitle: ''
content:
# Page type to display. E.g. project.
page_type: project
# Default filter index (e.g. 0 corresponds to the first `filter_button` instance below).
filter_default: 0
# Filter toolbar (optional).
# Add or remove as many filters (`filter_button` instances) as you like.
# To show all items, set `tag` to "*".
# To filter by a specific tag, set `tag` to an existing tag name.
# To remove the toolbar, delete the entire `filter_button` block.
filter_button:
- name: All
tag: '*'
- name: Machine Learning
tag: ML
- name: Computer Vision
tag: CV
- name: NLP
tag: NLP
design:
columns: '1'
view: masonry
flip_alt_rows: true
background: {}
spacing: {padding: [0, 0, 0, 0]}
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View file

@ -0,0 +1,8 @@
---
title: Cartoon Face Generator
summary: Write about your project here...
tags:
- CV
date: 2022-01-01
external_link: http://github.com
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View file

@ -0,0 +1,8 @@
---
title: Cosmetics Semantic Search
summary: Write about your project here...
tags:
- NLP
date: 2022-01-01
external_link: http://github.com
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

View file

@ -0,0 +1,8 @@
---
title: Recommendation Systems
summary: Write about your project here...
tags:
- ML
date: 2022-01-01
external_link: http://github.com
---

View file

View file

View file

@ -0,0 +1,25 @@
# Essentially Minimal theme but with constant home section bg color.
name = "Starter Blog"
[light]
# Primary
primary = "#2962ff"
# Menu
menu_primary = "rgb(247, 250, 252)"
menu_text = "#34495e"
menu_text_active = "#2962ff"
menu_title = "#2b2b2b"
# Home sections
home_section_odd = "rgb(247, 250, 252)"
home_section_even = "rgb(247, 250, 252)"
[dark]
primary = "#bbdefb"
link = "#bbdefb"
link_hover = "#bbdefb"
background = "rgb(26, 32, 44)"
home_section_odd = "rgb(26, 32, 44)"
home_section_even = "rgb(26, 32, 44)"
menu_primary = "rgb(26, 32, 44)"

View file

@ -0,0 +1,8 @@
module github.com/wowchemy/starter-blog
go 1.14
require (
github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5 v5.0.0-20220213222331-31333ef8d41f // indirect
github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5 v5.0.0-20220213222331-31333ef8d41f // indirect
)

View file

@ -0,0 +1,21 @@
[build]
command = "hugo --gc --minify -b $URL"
publish = "public"
[build.environment]
HUGO_VERSION = "0.91.2"
HUGO_ENABLEGITINFO = "true"
[context.production.environment]
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[[plugins]]
package = "netlify-plugin-hugo-cache-resources"
[plugins.inputs]
debug = true