diff --git a/scripts/view-starter-dev.sh b/scripts/view-starter-dev.sh index 9e67367c..271ec3ab 100755 --- a/scripts/view-starter-dev.sh +++ b/scripts/view-starter-dev.sh @@ -2,5 +2,5 @@ HUGOxPARAMSxCMSxLOCAL_BACKEND=true \ HUGO_MODULE_REPLACEMENTS="github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5 -> ../../../wowchemy,github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5 -> ../../../wowchemy-cms" \ -hugo server -F --port 80 --bind 0.0.0.0 \ +hugo server --renderStaticToDisk -F --port 80 --bind 0.0.0.0 \ --source "starters/$1" diff --git a/scripts/view-starter.sh b/scripts/view-starter.sh index 5e14a286..f4ba8f4d 100755 --- a/scripts/view-starter.sh +++ b/scripts/view-starter.sh @@ -1,5 +1,5 @@ #!/usr/bin/env zsh HUGOxPARAMSxCMSxLOCAL_BACKEND=true \ -hugo server -F --port 80 --bind 0.0.0.0 \ +hugo server --renderStaticToDisk -F --port 80 --bind 0.0.0.0 \ --source "starters/$1" diff --git a/starters/minimal/assets/scss/template.scss b/starters/minimal/assets/scss/template.scss index f8fe64ee..b14bc78a 100644 --- a/starters/minimal/assets/scss/template.scss +++ b/starters/minimal/assets/scss/template.scss @@ -1,13 +1,27 @@ // Minimal template style -// Narrower container for homepage sections (primarily Blank widget content). -@media (min-width: 1200px) { - .home-section .container { - max-width: 880px; - } +// Custom avatar size on homepage +.avatar { + width: auto; + height: auto; + max-width: 225px; + max-height: 225px; } -@media (min-width: 992px) { - .home-section .container { - max-width: 880px; - } + +#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; } diff --git a/starters/minimal/content/authors/_index.md b/starters/minimal/content/authors/_index.md new file mode 100644 index 00000000..fb4b159b --- /dev/null +++ b/starters/minimal/content/authors/_index.md @@ -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 +--- diff --git a/starters/minimal/content/authors/admin/_index.md b/starters/minimal/content/authors/admin/_index.md new file mode 100644 index 00000000..75277b1e --- /dev/null +++ b/starters/minimal/content/authors/admin/_index.md @@ -0,0 +1,60 @@ +--- +# Display name +title: 吳恩達 +name_pronunciation: Wu En da + +# 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. + +# Social/Academic Networking +# For available icons, see: https://wowchemy.com/docs/getting-started/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: 'mailto:test@example.org' + - icon: twitter + icon_pack: fab + link: https://twitter.com/wowchemy + - icon: instagram + icon_pack: fab + link: https://www.instagram.com/spacex/ + - icon: weibo + icon_pack: fab + link: ttps://weibo.com/p/1008088f0ff813c3676d81a04a616ba555af0c/super_index + - icon: tiktok + icon_pack: fab + link: https://www.tiktok.com/@spacex.to.mars + - icon: orcid + icon_pack: fab + link: https://orcid.org/0000-0001-5547-3196 + - 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/uploads/resume.pdf` + - icon: file-pdf + icon_pack: fas + label: View Resume + link: uploads/resume.pdf + +# Enter email to display Gravatar (if Gravatar enabled in Config) +#email: "" +--- + diff --git a/starters/minimal/content/authors/admin/avatar.jpg b/starters/minimal/content/authors/admin/avatar.jpg new file mode 100644 index 00000000..49337e47 Binary files /dev/null and b/starters/minimal/content/authors/admin/avatar.jpg differ diff --git a/starters/minimal/content/home/homepage.md b/starters/minimal/content/home/homepage.md deleted file mode 100644 index c416d459..00000000 --- a/starters/minimal/content/home/homepage.md +++ /dev/null @@ -1,73 +0,0 @@ ---- -# A Demo section created with the Blank widget. -# Any elements can be added in the body: https://wowchemy.com/docs/writing-markdown-latex/ -# Add more sections by duplicating this file and customizing to your requirements. - -widget: blank # See https://wowchemy.com/docs/page-builder/ -headless: true # This file represents a page section. -weight: 10 # Order that this section will appear. - -title: '👋 Hollie Beau is the Chief Data Officer at Tidbit Games in Shanghai.' -subtitle: '' - -design: - # Choose how many columns the section has. Valid values: 1 or 2. - columns: '1' - background: - # Apply a background color, gradient, or image. - # Uncomment (by removing `#`) an option to apply it. - # Choose a light or dark text color by setting `text_color_light`. - # Any HTML color name or Hex value is valid. - color: black - # gradient_start: DarkGreen - # gradient_end: ForestGreen - image: hello.jpg # Name of image in `static/media/`. - image_darken: 0.4 - image_size: cover - image_position: right - image_parallax: true - text_color_light: true -advanced: - css_style: - css_class: fullscreen ---- - -## My Mission - -Use this area to speak to your mission. Maecenas a varius odio egestas auctor. Praesent facilisis, ex a gravida ultricies, quam sed magna placerat eros, et vehicula lectus ligula id dui. Aliquam uto cursus velit ut eros lorem ipsum ullamcorper iaculis. - -## Specialties - -Analytics & Data, Leadership, Programming, Strategic Planning, Writing & Editing - -## Experience - -### Tidbit Games - -#### Chief Data Officer • Jan 2015 - Current • Shanghai - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - -### AI Soup - -#### Research Manager • Jan 2010 - Jan 2015 • Beijing - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - -## Education - -### Tsinghua University - -#### PhD AI • Jan 2005 - Jan 2010 • Beijing - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - -## Get in Touch - -[{{< icon name="envelope" pack="fas" >}}Email](mailto:me@example.com) -[{{< icon name="twitter" pack="fab" >}}Twitter](https://twitter.com/wowchemy) -{{< icon name="weixin" pack="fab" >}}微信用户名 - -## Credits - -[Demo background image](https://unsplash.com/photos/mNSOLgnDGzA) diff --git a/starters/minimal/content/home/intro.md b/starters/minimal/content/home/intro.md new file mode 100644 index 00000000..9880c972 --- /dev/null +++ b/starters/minimal/content/home/intro.md @@ -0,0 +1,33 @@ +--- +# 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: + # Choose how many columns the section has. Valid values: 1 or 2. + columns: '1' + background: + # Apply a background color, gradient, or image. + # Uncomment (by removing `#`) an option to apply it. + # Choose a light or dark text color by setting `text_color_light`. + # Any HTML color name or Hex value is valid. + color: black + # gradient_start: DarkGreen + # gradient_end: ForestGreen + image: hello.jpg # Name of image in `static/media/`. + image_darken: 0.4 + image_size: cover + image_position: right + image_parallax: true + text_color_light: true + css_class: d-flex fullscreen align-items-center +--- + +👋 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;"} diff --git a/starters/minimal/static/uploads/.gitkeep b/starters/minimal/static/uploads/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/starters/minimal/static/uploads/resume.pdf b/starters/minimal/static/uploads/resume.pdf new file mode 100644 index 00000000..d0489a3a Binary files /dev/null and b/starters/minimal/static/uploads/resume.pdf differ