diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..574c0a2 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..2ed14d2 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: gcushen +custom: https://hugoblox.com/sponsor/ diff --git a/.github/workflows/import-publications.yml b/.github/workflows/import-publications.yml new file mode 100644 index 0000000..8ee4b62 --- /dev/null +++ b/.github/workflows/import-publications.yml @@ -0,0 +1,57 @@ +# Hugo Blox GitHub Action to convert Bibtex publications to Markdown-based webpages +name: Import Publications From Bibtex + +# Require permission to create a PR +permissions: + contents: write + pull-requests: write + +# Run workflow when a `.bib` file is added or updated in the `data/` folder +on: + push: + branches: ['main'] + paths: ['publications.bib'] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + hugoblox: + if: github.repository_owner != 'HugoBlox' + runs-on: ubuntu-latest + steps: + - name: Checkout the repo + uses: actions/checkout@v3 + - name: Set up Python 3.12 + uses: actions/setup-python@v4 + with: + python-version: "3.12" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install academic==0.10.0 + - name: Run Academic (Bibtex To Markdown Converter) + # Check `.bib` file exists for case when action runs on `.bib` deletion + # Note GH only provides hashFiles func in `steps.if` context, not `jobs.if` context + if: ${{ hashFiles('publications.bib') != '' }} + run: academic import publications.bib content/publication/ --compact + - name: Create Pull Request + # Set ID for `Check outputs` stage + id: cpr + uses: peter-evans/create-pull-request@v5 + with: + commit-message: 'content: import publications from Bibtex' + title: Hugo Blox Builder - Import latest publications + body: | + Import the latest publications from `publications.bib` to `content/publication/`. + 将最新的出版物从`publications.bib`导入到`content/publication/`。 + [View Documentation](https://github.com/GetRD/academic-file-converter) + base: main + labels: automated-pr, content + branch: hugoblox-import-publications + delete-branch: true + - name: Check outputs + if: ${{ steps.cpr.outputs.pull-request-number }} + run: | + echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" + echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..323e900 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,70 @@ +name: Deploy website to GitHub Pages + +env: + WC_HUGO_VERSION: '0.119.0' + +on: + # Trigger the workflow every time you push to the `main` branch + push: + branches: ["main"] + # Allows you to run this workflow manually from the Actions tab on GitHub. + workflow_dispatch: + +# Provide permission to clone the repo and deploy it to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build website + build: + if: github.repository_owner != 'HugoBlox' + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + # Fetch history for Hugo's .GitInfo and .Lastmod + fetch-depth: 0 + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: ${{ env.WC_HUGO_VERSION }} + extended: true + - uses: actions/cache@v3 + with: + path: /tmp/hugo_cache_runner/ + key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} + restore-keys: | + ${{ runner.os }}-hugomod- + - name: Setup Pages + id: pages + uses: actions/configure-pages@v3 + - name: Build with Hugo + env: + HUGO_ENVIRONMENT: production + run: | + echo "Hugo Cache Dir: $(hugo config | grep cachedir)" + hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./public + + # Deploy website to GitHub Pages hosting + deploy: + if: github.repository_owner != 'HugoBlox' + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/.github/workflows/updater-wip.yml b/.github/workflows/updater-wip.yml new file mode 100644 index 0000000..43aacf1 --- /dev/null +++ b/.github/workflows/updater-wip.yml @@ -0,0 +1,22 @@ +name: Updater (WIP) + +on: + schedule: + - cron: 0 0 * * 0 + # Allows you to run this workflow manually from the Actions tab on GitHub. + workflow_dispatch: + +# Provide permission to clone the repo and deploy it to GitHub Pages +permissions: + contents: write + +jobs: + update: + if: github.repository_owner == 'HugoBlox' + runs-on: ubuntu-latest + steps: + - uses: HugoBlox/gh-action-updater@v1 + with: + feed-url: https://hugoblox.com/rss.xml + readme-section: news + branch: main diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a04655b --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# IDEs +.idea/ + +# Hugo +resources/ +public/ +jsconfig.json +node_modules/ +go.sum +.hugo_build.lock diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..1ae7dc1 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016-present 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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..17b0c73 --- /dev/null +++ b/README.md @@ -0,0 +1,50 @@ +# [Hugo Academic CV Theme](https://github.com/HugoBlox/theme-academic-cv) + +[![Screenshot](./preview.png)](https://hugoblox.com/templates/) + +The Hugo **Academic Resumé Template** empowers you to easily create your job-winning online resumé, showcase your academic publications, and create online courses or knowledge bases to grow your audience. + +[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://hugoblox.com/templates/) +[![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/GetResearchDev?label=Follow%20on%20Twitter)](https://twitter.com/GetResearchDev) + +️**Trusted by 250,000+ researchers, educators, and students.** Highly customizable via the integrated **no-code, Hugo Blox Builder**, making every site truly personalized ⭐⭐⭐⭐⭐ + +Easily write technical content with plain text Markdown, LaTeX math, diagrams, RMarkdown, or Jupyter, and import publications from BibTeX. + +[Check out the latest demo](https://academic-demo.netlify.app/) of what you'll get in less than 10 minutes, or [get inspired by our academics and research groups](https://hugoblox.com/creators/). + +The integrated [**Hugo Blox Builder**](https://hugoblox.com) 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://hugoblox.com/templates/) +- 📚 [View the **documentation**](https://docs.hugoblox.com/) +- 💬 [Chat with the **Hugo Blox Builder community**](https://discord.gg/z8wNYzb) or [**Hugo community**](https://discourse.gohugo.io) +- 🐦 Twitter: [@GetResearchDev](https://twitter.com/GetResearchDev) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithHugoBlox](https://twitter.com/search?q=%23MadeWithHugoBlox&src=typed_query) +- ⬇️ **Automatically import your publications from BibTeX** with the [Hugo Academic CLI](https://github.com/GetRD/academic-file-converter) +- 💡 [Suggest an improvement](https://github.com/HugoBlox/hugo-blox-builder/issues) +- ⬆️ **Updating?** View the [Update Guide](https://docs.hugoblox.com/reference/update/) and [Release Notes](https://github.com/HugoBlox/hugo-blox-builder/releases) + +## We ask you, humbly, to support this open source movement + +Today we ask you to defend the open source independence of the Hugo Blox 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) + +

Hugo Academic Theme for Hugo Blox Builder

+ +## Demo image credits + +- [Unsplash](https://unsplash.com) + +## Latest news + + + +- [Easily make an academic CV website to get more cites and grow your audience 🚀](https://hugoblox.com/blog/easily-make-academic-website/) +- [What's new in v5.2?](https://hugoblox.com/blog/whats-new-in-v5.2/) +- [What's new in v5.1?](https://hugoblox.com/blog/whats-new-in-v5.1/) +- [Version 5.0 (February 2021)](https://hugoblox.com/blog/version-5.0-february-2021/) +- [Version 5.0 Beta 3 (February 2021)](https://hugoblox.com/blog/version-5.0-beta-3-february-2021/) + diff --git a/academic.Rproj b/academic.Rproj new file mode 100644 index 0000000..e83436a --- /dev/null +++ b/academic.Rproj @@ -0,0 +1,16 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX + +AutoAppendNewline: Yes +StripTrailingWhitespace: Yes diff --git a/assets/media/albums/.gitkeep b/assets/media/albums/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/assets/media/albums/demo/chris-montgomery-smgTvepind4-unsplash.jpg b/assets/media/albums/demo/chris-montgomery-smgTvepind4-unsplash.jpg new file mode 100644 index 0000000..bb8a0df Binary files /dev/null and b/assets/media/albums/demo/chris-montgomery-smgTvepind4-unsplash.jpg differ diff --git a/assets/media/albums/demo/dan-gold-4_jhDO54BYg-unsplash-f.jpg b/assets/media/albums/demo/dan-gold-4_jhDO54BYg-unsplash-f.jpg new file mode 100644 index 0000000..f3169de Binary files /dev/null and b/assets/media/albums/demo/dan-gold-4_jhDO54BYg-unsplash-f.jpg differ diff --git a/assets/media/albums/demo/fotografierende-333oj7zFsdg-unsplash.jpg b/assets/media/albums/demo/fotografierende-333oj7zFsdg-unsplash.jpg new file mode 100644 index 0000000..e4a7c85 Binary files /dev/null and b/assets/media/albums/demo/fotografierende-333oj7zFsdg-unsplash.jpg differ diff --git a/assets/media/albums/demo/glenn-carstens-peters-npxXWgQ33ZQ-unsplash.jpg b/assets/media/albums/demo/glenn-carstens-peters-npxXWgQ33ZQ-unsplash.jpg new file mode 100644 index 0000000..024b69b Binary files /dev/null and b/assets/media/albums/demo/glenn-carstens-peters-npxXWgQ33ZQ-unsplash.jpg differ diff --git a/assets/media/albums/demo/joseph-gonzalez-zcUgjyqEwe8-unsplash.jpg b/assets/media/albums/demo/joseph-gonzalez-zcUgjyqEwe8-unsplash.jpg new file mode 100644 index 0000000..2242d13 Binary files /dev/null and b/assets/media/albums/demo/joseph-gonzalez-zcUgjyqEwe8-unsplash.jpg differ diff --git a/assets/media/albums/demo/matthew-osborn-wMRIcT86SWU-unsplash-l.jpg b/assets/media/albums/demo/matthew-osborn-wMRIcT86SWU-unsplash-l.jpg new file mode 100644 index 0000000..0f0c6c6 Binary files /dev/null and b/assets/media/albums/demo/matthew-osborn-wMRIcT86SWU-unsplash-l.jpg differ diff --git a/assets/media/albums/demo/priscilla-du-preez-K8XYGbw4Ahg-unsplash.jpg b/assets/media/albums/demo/priscilla-du-preez-K8XYGbw4Ahg-unsplash.jpg new file mode 100644 index 0000000..64028c0 Binary files /dev/null and b/assets/media/albums/demo/priscilla-du-preez-K8XYGbw4Ahg-unsplash.jpg differ diff --git a/assets/media/hero-academic.png b/assets/media/hero-academic.png new file mode 100644 index 0000000..89afaff Binary files /dev/null and b/assets/media/hero-academic.png differ diff --git a/assets/media/icon.png b/assets/media/icon.png new file mode 100644 index 0000000..6c184d7 Binary files /dev/null and b/assets/media/icon.png differ diff --git a/assets/media/icons/brands/org-gc.svg b/assets/media/icons/brands/org-gc.svg new file mode 100644 index 0000000..5104413 --- /dev/null +++ b/assets/media/icons/brands/org-gc.svg @@ -0,0 +1,15 @@ + + + + background + + + + + + + Layer 1 + + GC + + \ No newline at end of file diff --git a/assets/media/icons/brands/org-x.svg b/assets/media/icons/brands/org-x.svg new file mode 100644 index 0000000..2e7053c --- /dev/null +++ b/assets/media/icons/brands/org-x.svg @@ -0,0 +1,15 @@ + + + + background + + + + + + + Layer 1 + + X + + \ No newline at end of file diff --git a/config/_default/hugo.yaml b/config/_default/hugo.yaml new file mode 100644 index 0000000..69cc2d0 --- /dev/null +++ b/config/_default/hugo.yaml @@ -0,0 +1,64 @@ +# Configuration of Hugo +# Guide: https://docs.hugoblox.com/tutorial/ +# 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: Academic # Website name +baseURL: 'https://example.com/' # Website URL + +############################ +## LANGUAGE +############################ + +defaultContentLanguage: en +hasCJKLanguage: false +defaultContentLanguageInSubdir: false +removePathAccents: true + +############################ +## ADVANCED +############################ + +enableGitInfo: false +summaryLength: 30 +paginate: 10 +enableEmoji: true +enableRobotsTXT: true +footnotereturnlinkcontents: ^ +ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$] +permalinks: + event: '/talk/:slug/' + tags: '/tag/:slug/' + categories: '/category/:slug/' + publication_types: '/publication-type/: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 + publication_type: publication_types + 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 +minify: + _merge: deep diff --git a/config/_default/languages.yaml b/config/_default/languages.yaml new file mode 100644 index 0000000..88fa733 --- /dev/null +++ b/config/_default/languages.yaml @@ -0,0 +1,22 @@ +# Languages +# Create a section for each of your site's languages. +# Documentation: https://docs.hugoblox.com/reference/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 diff --git a/config/_default/menus.yaml b/config/_default/menus.yaml new file mode 100644 index 0000000..02f22e7 --- /dev/null +++ b/config/_default/menus.yaml @@ -0,0 +1,30 @@ +# 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: '#about' + weight: 10 + - name: Posts + url: '#posts' + weight: 20 + - name: Projects + url: '#projects' + weight: 30 + - name: Talks + url: '#talks' + weight: 40 + - name: Publications + url: '#featured' + weight: 50 + - name: Contact + url: '#contact' + weight: 60 + +# Link to a PDF of your resume/CV from the menu. +# To enable, copy your resume/CV to `static/uploads/resume.pdf` and uncomment the lines below. +# - name: CV +# url: uploads/resume.pdf +# weight: 70 diff --git a/config/_default/module.yaml b/config/_default/module.yaml new file mode 100644 index 0000000..d6d5a8f --- /dev/null +++ b/config/_default/module.yaml @@ -0,0 +1,10 @@ +############################ +## HUGO MODULES +## Install or uninstall themes and plugins here. +## Docs: https://gohugo.io/hugo-modules/ +############################ + +imports: + - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify + - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal + - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 diff --git a/config/_default/params.yaml b/config/_default/params.yaml new file mode 100644 index 0000000..da4615f --- /dev/null +++ b/config/_default/params.yaml @@ -0,0 +1,116 @@ +# SITE SETUP +# Guide: https://docs.hugoblox.com/tutorial/ +# Documentation: https://docs.hugoblox.com/ +# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/ + +# Appearance + +appearance: + theme_day: minimal + theme_night: minimal + font: minimal + font_size: L + +# SEO + +marketing: + seo: + site_type: Person + local_business_type: '' + org_name: '' + description: 'A highly-customizable Hugo academic resume theme powered by Hugo Blox Builder.' + twitter: 'GetResearchDev' + analytics: + google_analytics: '' + baidu_tongji: '' + google_tag_manager: '' + microsoft_clarity: '' + verification: + google: '' + baidu: '' + +# Site header + +header: + navbar: + enable: true + align: l + show_logo: true + show_language: false + show_day_night: true + show_search: true + highlight_active_link: true + +# Site footer + +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' + address_format: en-us + +# Site features + +features: + syntax_highlighter: + theme_light: github-light + theme_dark: dracula + math: + enable: false + privacy_pack: + enable: false + repository: + url: 'https://github.com//' + content_dir: content + branch: main + avatar: + gravatar: false + shape: circle + comment: + provider: '' + disqus: + shortname: '' + show_count: true + commento: + url: '' + giscus: + repo: '' + repo_id: '' + category: '' + category_id: '' + search: + provider: wowchemy + algolia: + app_id: '' + api_key: '' + index_name: '' + show_logo: false + map: + provider: 'mapnik' + api_key: '' + zoom: 15 + +# Extensions + +extensions: + cms: + branch: main + local_backend: false + academicons: + enable: true + +# Security + +security: + # Allow frame for embedding speaker notes in slides + allow_frame: true diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..c7d5d2a --- /dev/null +++ b/content/_index.md @@ -0,0 +1,283 @@ +--- +# Leave the homepage title empty to use the site title +title: '' +date: 2022-10-24 +type: landing + +sections: + - block: hero + demo: true # Only display this section in the Hugo Blox Builder demo site + content: + title: Hugo Academic Theme + image: + filename: hero-academic.png + cta: + label: '**Get Started**' + url: https://hugoblox.com/templates/ + cta_alt: + label: Ask a question + url: https://discord.gg/z8wNYzb + cta_note: + label: >- +
Star Hugo Blox Builder
Star the Academic template
+ text: |- + **Generated by Hugo Blox Builder - the FREE, Hugo-based open source website builder trusted by 500,000+ sites.** + + **Easily build anything with blocks - no-code required!** + + From landing pages, second brains, and courses to academic resumés, conferences, and tech blogs. + + +
+ + + design: + background: + gradient_end: '#1976d2' + gradient_start: '#004ba0' + text_color_light: true + - block: about.biography + id: about + content: + title: Biography + # Choose a user profile to display (a folder name within `content/authors/`) + username: admin + - block: skills + content: + title: Skills + text: '' + # Choose a user to display skills from (a folder name within `content/authors/`) + username: admin + design: + columns: '1' + - block: experience + content: + title: Experience + # Date format for experience + # Refer to https://docs.hugoblox.com/customization/#date-format + date_format: Jan 2006 + # Experiences. + # Add/remove as many `experience` items below as you like. + # Required fields are `title`, `company`, and `date_start`. + # Leave `date_end` empty if it's your current employer. + # Begin multi-line descriptions with YAML's `|2-` multi-line prefix. + items: + - title: CEO + company: GenCoin + company_url: '' + company_logo: org-gc + location: California + date_start: '2021-01-01' + date_end: '' + description: |2- + Responsibilities include: + + * Analysing + * Modelling + * Deploying + - title: Professor of Semiconductor Physics + company: University X + company_url: '' + company_logo: org-x + location: California + date_start: '2016-01-01' + date_end: '2020-12-31' + description: Taught electronic engineering and researched semiconductor physics. + design: + columns: '2' + - block: accomplishments + content: + # Note: `­` is used to add a 'soft' hyphen in a long heading. + title: 'Accomplish­ments' + subtitle: + # Date format: https://docs.hugoblox.com/customization/#date-format + date_format: Jan 2006 + # Accomplishments. + # Add/remove as many `item` blocks below as you like. + # `title`, `organization`, and `date_start` are the required parameters. + # Leave other parameters empty if not required. + # Begin multi-line descriptions with YAML's `|2-` multi-line prefix. + items: + - certificate_url: https://www.coursera.org + date_end: '' + date_start: '2021-01-25' + description: '' + icon: coursera + organization: Coursera + organization_url: https://www.coursera.org + title: Neural Networks and Deep Learning + url: '' + - certificate_url: https://www.edx.org + date_end: '' + date_start: '2021-01-01' + description: Formulated informed blockchain models, hypotheses, and use cases. + icon: edx + organization: edX + organization_url: https://www.edx.org + title: Blockchain Fundamentals + url: https://www.edx.org/professional-certificate/uc-berkeleyx-blockchain-fundamentals + - certificate_url: https://www.datacamp.com + date_end: '2020-12-21' + date_start: '2020-07-01' + description: '' + icon: datacamp + organization: DataCamp + organization_url: https://www.datacamp.com + title: 'Object-Oriented Programming in R' + url: '' + design: + columns: '2' + - block: collection + id: posts + content: + title: Recent Posts + subtitle: '' + text: '' + # Choose how many pages you would like to display (0 = all pages) + count: 5 + # Filter on criteria + filters: + folders: + - post + author: "" + category: "" + tag: "" + exclude_featured: false + exclude_future: false + exclude_past: false + publication_type: "" + # Choose how many pages you would like to offset by + offset: 0 + # Page order: descending (desc) or ascending (asc) date. + order: desc + design: + # Choose a layout view + view: compact + columns: '2' + - block: portfolio + id: projects + content: + title: Projects + filters: + folders: + - project + # Default filter index (e.g. 0 corresponds to the first `filter_button` instance below). + default_button_index: 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. + buttons: + - name: All + tag: '*' + - name: Deep Learning + tag: Deep Learning + - name: Other + tag: Demo + design: + # Choose how many columns the section has. Valid values: '1' or '2'. + columns: '1' + view: showcase + # For Showcase view, flip alternate rows? + flip_alt_rows: false + - block: markdown + content: + title: Gallery + subtitle: '' + text: |- + {{< gallery album="demo" >}} + design: + columns: '1' + - block: collection + id: featured + content: + title: Featured Publications + filters: + folders: + - publication + featured_only: true + design: + columns: '2' + view: card + - block: collection + content: + title: Recent Publications + text: |- + {{% callout note %}} + Quickly discover relevant content by [filtering publications](./publication/). + {{% /callout %}} + filters: + folders: + - publication + exclude_featured: true + design: + columns: '2' + view: citation + - block: collection + id: talks + content: + title: Recent & Upcoming Talks + filters: + folders: + - event + design: + columns: '2' + view: compact + - block: tag_cloud + content: + title: Popular Topics + design: + columns: '2' + - block: contact + id: contact + content: + title: Contact + subtitle: + text: |- + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam mi diam, venenatis ut magna et, vehicula efficitur enim. + # Contact (add or remove contact options as necessary) + email: test@example.org + phone: 888 888 88 88 + appointment_url: 'https://calendly.com' + address: + street: 450 Serra Mall + city: Stanford + region: CA + postcode: '94305' + country: United States + country_code: US + directions: Enter Building 1 and take the stairs to Office 200 on Floor 2 + office_hours: + - 'Monday 10:00 to 13:00' + - 'Wednesday 09:00 to 10:00' + # Choose a map provider in `params.yaml` to show a map from these coordinates + coordinates: + latitude: '37.4275' + longitude: '-122.1697' + contact_links: + - icon: twitter + icon_pack: fab + name: DM Me + link: 'https://twitter.com/Twitter' + - icon: skype + icon_pack: fab + name: Skype Me + link: 'skype:echo123?call' + - icon: video + icon_pack: fas + name: Zoom Me + link: 'https://zoom.com' + # 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: '2' +--- diff --git a/content/authors/_index.md b/content/authors/_index.md new file mode 100644 index 0000000..fb4b159 --- /dev/null +++ b/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/content/authors/admin/_index.md b/content/authors/admin/_index.md new file mode 100644 index 0000000..07f473b --- /dev/null +++ b/content/authors/admin/_index.md @@ -0,0 +1,124 @@ +--- +# Display name +title: 吳健雄 + +# Name pronunciation (optional) +name_pronunciation: Chien Shiung Wu + +# Full name (for SEO) +first_name: Shiung Wu +last_name: Chien + +# Status emoji +status: + icon: ☕️ + +# Is this the primary user of the site? +superuser: true + +# Role/position/tagline +role: Professor of Artificial Intelligence + +# Organizations/Affiliations to show in About widget +organizations: + - name: Stanford University + url: https://www.stanford.edu/ + +# Short bio (displayed in user profile at end of posts) +bio: My research interests include distributed robotics, mobile computing and programmable matter. + +# Interests to show in About widget +interests: + - Artificial Intelligence + - Computational Linguistics + - Information Retrieval + +# Education to show in About widget +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 + +# Skills +# For available icons, see: https://docs.hugoblox.com/getting-started/page-builder/#icons +skills: + - name: Technical + items: + - name: Python + description: '' + percent: 80 + icon: python + icon_pack: fab + - name: Data Science + description: '' + percent: 100 + icon: chart-line + icon_pack: fas + - name: SQL + description: '' + percent: 40 + icon: database + icon_pack: fas + - name: Hobbies + color: '#eeac02' + color_border: '#f0bf23' + items: + - name: Hiking + description: '' + percent: 60 + icon: person-hiking + icon_pack: fas + - name: Cats + description: '' + percent: 100 + icon: cat + icon_pack: fas + - name: Photography + description: '' + percent: 80 + icon: camera-retro + icon_pack: fas + +# Social/Academic Networking +# For available icons, see: https://docs.hugoblox.com/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: '/#contact' + - icon: twitter + icon_pack: fab + link: https://twitter.com/GeorgeCushen + label: Follow me on Twitter + display: + header: true + - icon: graduation-cap # Alternatively, use `google-scholar` icon from `ai` icon pack + icon_pack: fas + link: https://scholar.google.co.uk/citations?user=sIwtMXoAAAAJ + - icon: github + icon_pack: fab + link: https://github.com/gcushen + - icon: linkedin + icon_pack: fab + link: https://www.linkedin.com/ + # Link to a PDF of your resume/CV. + # To use: copy your resume to `static/uploads/resume.pdf`, enable `ai` icons in `params.yaml`, + # and uncomment the lines below. + - icon: cv + icon_pack: ai + link: uploads/resume.pdf + +# Highlight the author in author lists? (true/false) +highlight_name: true +--- + +Chien Shiung 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. +{style="text-align: justify;"} diff --git a/content/authors/admin/avatar.jpg b/content/authors/admin/avatar.jpg new file mode 100644 index 0000000..49337e4 Binary files /dev/null and b/content/authors/admin/avatar.jpg differ diff --git a/content/event/_index.md b/content/event/_index.md new file mode 100644 index 0000000..28aab40 --- /dev/null +++ b/content/event/_index.md @@ -0,0 +1,15 @@ +--- +title: Recent & Upcoming Talks +cms_exclude: true + +# View. +# 1 = List +# 2 = Compact +# 3 = Card +view: 2 + +# Optional header image (relative to `static/media/` folder). +header: + caption: '' + image: '' +--- diff --git a/content/event/example/featured.jpg b/content/event/example/featured.jpg new file mode 100644 index 0000000..7b16c3c Binary files /dev/null and b/content/event/example/featured.jpg differ diff --git a/content/event/example/index.md b/content/event/example/index.md new file mode 100644 index 0000000..1819557 --- /dev/null +++ b/content/event/example/index.md @@ -0,0 +1,73 @@ +--- +title: Example Talk + +event: Hugo Blox Builder Conference +event_url: https://example.org + +location: Hugo Blox Builder HQ +address: + street: 450 Serra Mall + city: Stanford + region: CA + postcode: '94305' + country: United States + +summary: An example talk using Hugo Blox Builder's Markdown slides feature. +abstract: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellusac 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.' + +# Talk start and end times. +# End time can optionally be hidden by prefixing the line with `#`. +date: '2030-06-01T13:00:00Z' +date_end: '2030-06-01T15:00:00Z' +all_day: false + +# Schedule page publish date (NOT talk date). +publishDate: '2017-01-01T00:00:00Z' + +authors: [] +tags: [] + +# Is this a featured talk? (true/false) +featured: false + +image: + caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/bzdhc5b3Bxs)' + focal_point: Right + +links: + - icon: twitter + icon_pack: fab + name: Follow + url: https://twitter.com/georgecushen +url_code: '' +url_pdf: '' +url_slides: '' +url_video: '' + +# Markdown Slides (optional). +# Associate this talk with Markdown slides. +# Simply enter your slide deck's filename without extension. +# E.g. `slides = "example-slides"` references `content/slides/example-slides.md`. +# Otherwise, set `slides = ""`. +slides: example + +# Projects (optional). +# Associate this post with one or more of your projects. +# Simply enter your project's folder or file name without extension. +# E.g. `projects = ["internal-project"]` references `content/project/deep-learning/index.md`. +# Otherwise, set `projects = []`. +projects: + - example +--- + +{{% callout note %}} +Click on the **Slides** button above to view the built-in slides feature. +{{% /callout %}} + +Slides can be added in a few ways: + +- **Create** slides using Hugo Blox Builder's [_Slides_](https://docs.hugoblox.com/reference/content-types/) feature and link using `slides` parameter in the front matter of the talk file +- **Upload** an existing slide deck to `static/` and link using `url_slides` parameter in the front matter of the talk file +- **Embed** your slides (e.g. Google Slides) or presentation video on this page using [shortcodes](https://docs.hugoblox.com/reference/markdown/). + +Further event details, including [page elements](https://docs.hugoblox.com/reference/markdown/) such as image galleries, can be added to the body of this page. diff --git a/content/post/_index.md b/content/post/_index.md new file mode 100644 index 0000000..5f492f8 --- /dev/null +++ b/content/post/_index.md @@ -0,0 +1,15 @@ +--- +title: Posts +cms_exclude: true + +# View. +# 1 = List +# 2 = Compact +# 3 = Card +view: 2 + +# Optional header image (relative to `static/media/` folder). +header: + caption: '' + image: '' +--- diff --git a/content/post/blog-with-jupyter/featured.png b/content/post/blog-with-jupyter/featured.png new file mode 100644 index 0000000..9bf5550 Binary files /dev/null and b/content/post/blog-with-jupyter/featured.png differ diff --git a/content/post/blog-with-jupyter/index.md b/content/post/blog-with-jupyter/index.md new file mode 100644 index 0000000..3feaa7a --- /dev/null +++ b/content/post/blog-with-jupyter/index.md @@ -0,0 +1,34 @@ +--- +title: Blog with Jupyter Notebooks! +date: '2023-11-04' +summary: Easily blog from Jupyter notebooks! +--- + + +```python +from IPython.core.display import Image +Image('https://www.python.org/static/community_logos/python-logo-master-v3-TM-flattened.png') +``` + + +![png](output_1_0.png) + + +```python +print("Welcome to Academic!") +``` + + Welcome to Academic! + +## Organize your notebooks + +Place the notebooks that you would like to publish in a `notebooks` folder at the root of your website. + +## Import the notebooks into your site + +```bash +pipx install academic +academic import 'notebooks/**.ipynb' content/post/ --verbose +``` + +The notebooks will be published to the folder you specify above. In this case, they will be published to your `content/post/` folder. diff --git a/content/post/blog-with-jupyter/output_1_0.png b/content/post/blog-with-jupyter/output_1_0.png new file mode 100644 index 0000000..738f6ed Binary files /dev/null and b/content/post/blog-with-jupyter/output_1_0.png differ diff --git a/content/post/getting-started/featured.jpg b/content/post/getting-started/featured.jpg new file mode 100644 index 0000000..04a7bae Binary files /dev/null and b/content/post/getting-started/featured.jpg differ diff --git a/content/post/getting-started/index.md b/content/post/getting-started/index.md new file mode 100644 index 0000000..90dd4dc --- /dev/null +++ b/content/post/getting-started/index.md @@ -0,0 +1,110 @@ +--- +title: Welcome to Hugo Blox Builder, the website builder for Hugo +subtitle: Welcome 👋 We know that first impressions are important, so we've populated your new site with some initial content to help you get familiar with everything in no time. + +# Summary for listings and search engines +summary: Welcome 👋 We know that first impressions are important, so we've populated your new site with some initial content to help you get familiar with everything in no time. + +# Link this post with a project +projects: [] + +# Date published +date: '2020-12-13T00:00:00Z' + +# Date updated +lastmod: '2020-12-13T00:00:00Z' + +# Is this an unpublished draft? +draft: false + +# Show this page in the Featured widget? +featured: false + +# Featured image +# Place an image named `featured.jpg/png` in this page's folder and customize its options here. +image: + caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/CpkOjOcXdUY)' + focal_point: '' + placement: 2 + preview_only: false + +authors: + - admin + - 吳恩達 + +tags: + - Academic + - 开源 + +categories: + - Demo + - 教程 +--- + +```python +import libr +print('hello') +``` + +## Overview + +1. The Wowchemy website builder for Hugo, along with its starter templates, is designed for professional creators, educators, and teams/organizations - although it can be used to create any kind of site +2. The template can be modified and customised to suit your needs. It's a good platform for anyone looking to take control of their data and online identity whilst having the convenience to start off with a **no-code solution (write in Markdown and customize with YAML parameters)** and having **flexibility to later add even deeper personalization with HTML and CSS** +3. You can work with all your favourite tools and apps with hundreds of plugins and integrations to speed up your workflows, interact with your readers, and much more + +[![The template is mobile first with a responsive design to ensure that your site looks stunning on every device.](https://raw.githubusercontent.com/wowchemy/wowchemy-hugo-modules/main/starters/academic/preview.png)](https://hugoblox.com) + +## Get Started + +- 👉 [**Create a new site**](https://hugoblox.com/templates/) +- 📚 [**Personalize your site**](https://docs.hugoblox.com/) +- 💬 [Chat with the **Wowchemy 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&src=typed_query) +- 💡 [Request a **feature** or report a **bug** for _Wowchemy_](https://github.com/HugoBlox/hugo-blox-builder/issues) +- ⬆️ **Updating Wowchemy?** View the [Update Tutorial](https://docs.hugoblox.com/hugo-tutorials/update/) and [Release Notes](https://hugoblox.com/updates/) + +## Crowd-funded open-source software + +To help us develop this template and software sustainably under the MIT license, we ask all individuals and businesses that use it to help support its ongoing maintenance and development via sponsorship. + +### [❤️ Click here to become a sponsor and help support Wowchemy's future ❤️](https://hugoblox.com/sponsor/) + +As a token of appreciation for sponsoring, you can **unlock [these](https://hugoblox.com/sponsor/) awesome rewards and extra features 🦄✨** + +## Ecosystem + +- **[Hugo Academic CLI](https://github.com/GetRD/academic-file-converter):** Automatically import publications from BibTeX + +## Inspiration + +[Check out the latest **demo**](https://academic-demo.netlify.com/) of what you'll get in less than 10 minutes, or [view the **showcase**](https://hugoblox.com/user-stories/) of personal, project, and business sites. + +## Features + +- **Page builder** - Create _anything_ with [**widgets**](https://docs.hugoblox.com/page-builder/) and [**elements**](https://docs.hugoblox.com/content/writing-markdown-latex/) +- **Edit any type of content** - Blog posts, publications, talks, slides, projects, and more! +- **Create content** in [**Markdown**](https://docs.hugoblox.com/content/writing-markdown-latex/), [**Jupyter**](https://docs.hugoblox.com/import/jupyter/), or [**RStudio**](https://docs.hugoblox.com/install-locally/) +- **Plugin System** - Fully customizable [**color** and **font themes**](https://docs.hugoblox.com/customization/) +- **Display Code and Math** - Code highlighting and [LaTeX math](https://en.wikibooks.org/wiki/LaTeX/Mathematics) supported +- **Integrations** - [Google Analytics](https://analytics.google.com), [Disqus commenting](https://disqus.com), Maps, Contact Forms, and more! +- **Beautiful Site** - Simple and refreshing one page design +- **Industry-Leading SEO** - Help get your website found on search engines and social media +- **Media Galleries** - Display your images and videos with captions in a customizable gallery +- **Mobile Friendly** - Look amazing on every screen with a mobile friendly version of your site +- **Multi-language** - 34+ language packs including English, 中文, and Português +- **Multi-user** - Each author gets their own profile page +- **Privacy Pack** - Assists with GDPR +- **Stand Out** - Bring your site to life with animation, parallax backgrounds, and scroll effects +- **One-Click Deployment** - No servers. No databases. Only files. + +## Themes + +Wowchemy and its templates come with **automatic day (light) and night (dark) mode** built-in. Alternatively, visitors can choose their preferred mode - click the moon icon in the top right of the [Demo](https://academic-demo.netlify.com/) to see it in action! Day/night mode can also be disabled by the site admin in `params.toml`. + +[Choose a stunning **theme** and **font**](https://docs.hugoblox.com/customization) for your site. Themes are fully customizable. + +## License + +Copyright 2016-present [George Cushen](https://georgecushen.com). + +Released under the [MIT](https://github.com/HugoBlox/hugo-blox-builder/blob/master/LICENSE.md) license. diff --git a/content/post/writing-technical-content/featured.jpg b/content/post/writing-technical-content/featured.jpg new file mode 100644 index 0000000..e2c0fb2 Binary files /dev/null and b/content/post/writing-technical-content/featured.jpg differ diff --git a/content/post/writing-technical-content/index.md b/content/post/writing-technical-content/index.md new file mode 100644 index 0000000..30bfa0f --- /dev/null +++ b/content/post/writing-technical-content/index.md @@ -0,0 +1,390 @@ +--- +title: Writing technical content in Markdown +date: 2019-07-12 +math: true +image: + placement: 2 + caption: 'Image credit: [**John Moeses Bauan**](https://unsplash.com/photos/OGZtQF8iC0g)' +--- + +Hugo Blox Builder is designed to give technical content creators a seamless experience. You can focus on the content and Wowchemy handles the rest. + +**Highlight your code snippets, take notes on math classes, and draw diagrams from textual representation.** + +On this page, you'll find some examples of the types of technical content that can be rendered with Wowchemy. + +## Examples + +### Code + +Wowchemy supports a Markdown extension for highlighting code syntax. You can customize the styles under the `syntax_highlighter` option in your `config/_default/params.yaml` file. + + ```python + import pandas as pd + data = pd.read_csv("data.csv") + data.head() + ``` + +renders as + +```python +import pandas as pd +data = pd.read_csv("data.csv") +data.head() +``` + +### Mindmaps + +Wowchemy supports a Markdown extension for mindmaps. + +Simply insert a Markdown `markmap` code block and optionally set the height of the mindmap as shown in the example below. + +A simple mindmap defined as a Markdown list: + +
+
+
+```markmap {height="200px"}
+- Hugo Modules
+  - wowchemy
+  - blox-plugins-netlify
+  - blox-plugins-netlify-cms
+  - blox-plugins-reveal
+```
+
+
+
+ +renders as + +```markmap {height="200px"} +- Hugo Modules + - wowchemy + - blox-plugins-netlify + - blox-plugins-netlify-cms + - blox-plugins-reveal +``` + +A more advanced mindmap with formatting, code blocks, and math: + +
+
+
+```markmap
+- Mindmaps
+  - Links
+    - [Wowchemy Docs](https://docs.hugoblox.com/)
+    - [Discord Community](https://discord.gg/z8wNYzb)
+    - [GitHub](https://github.com/HugoBlox/hugo-blox-builder)
+  - Features
+    - Markdown formatting
+    - **inline** ~~text~~ *styles*
+    - multiline
+      text
+    - `inline code`
+    -
+      ```js
+      console.log('hello');
+      console.log('code block');
+      ```
+    - Math: $x = {-b \pm \sqrt{b^2-4ac} \over 2a}$
+```
+
+
+
+ +renders as + +```markmap +- Mindmaps + - Links + - [Wowchemy Docs](https://docs.hugoblox.com/) + - [Discord Community](https://discord.gg/z8wNYzb) + - [GitHub](https://github.com/HugoBlox/hugo-blox-builder) + - Features + - Markdown formatting + - **inline** ~~text~~ *styles* + - multiline + text + - `inline code` + - + ```js + console.log('hello'); + console.log('code block'); + ``` + - Math: $x = {-b \pm \sqrt{b^2-4ac} \over 2a}$ +``` + +### Charts + +Wowchemy supports the popular [Plotly](https://plot.ly/) format for interactive charts. + +Save your Plotly JSON in your page folder, for example `line-chart.json`, and then add the `{{}}` shortcode where you would like the chart to appear. + +Demo: + +{{< chart data="line-chart" >}} + +You might also find the [Plotly JSON Editor](http://plotly-json-editor.getforge.io/) useful. + +### Math + +Wowchemy supports a Markdown extension for $\LaTeX$ math. You can enable this feature by toggling the `math` option in your `config/_default/params.yaml` file. + +To render _inline_ or _block_ math, wrap your LaTeX math with `{{}}$...${{}}` or `{{}}$$...$${{}}`, respectively. (We wrap the LaTeX math in the Wowchemy _math_ shortcode to prevent Hugo rendering our math as Markdown. The _math_ shortcode is new in v5.5-dev.) + +Example **math block**: + +```latex +{{}} +$$ +\gamma_{n} = \frac{ \left | \left (\mathbf x_{n} - \mathbf x_{n-1} \right )^T \left [\nabla F (\mathbf x_{n}) - \nabla F (\mathbf x_{n-1}) \right ] \right |}{\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2} +$$ +{{}} +``` + +renders as + +{{< math >}} +$$\gamma_{n} = \frac{ \left | \left (\mathbf x_{n} - \mathbf x_{n-1} \right )^T \left [\nabla F (\mathbf x_{n}) - \nabla F (\mathbf x_{n-1}) \right ] \right |}{\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2}$$ +{{< /math >}} + +Example **inline math** `{{}}$\nabla F(\mathbf{x}_{n})${{}}` renders as {{< math >}}$\nabla F(\mathbf{x}_{n})${{< /math >}}. + +Example **multi-line math** using the math linebreak (`\\`): + +```latex +{{}} +$$f(k;p_{0}^{*}) = \begin{cases}p_{0}^{*} & \text{if }k=1, \\ +1-p_{0}^{*} & \text{if }k=0.\end{cases}$$ +{{}} +``` + +renders as + +{{< math >}} + +$$ +f(k;p_{0}^{*}) = \begin{cases}p_{0}^{*} & \text{if }k=1, \\ +1-p_{0}^{*} & \text{if }k=0.\end{cases} +$$ + +{{< /math >}} + +### Diagrams + +Wowchemy supports a Markdown extension for diagrams. You can enable this feature by toggling the `diagram` option in your `config/_default/params.toml` file or by adding `diagram: true` to your page front matter. + +An example **flowchart**: + + ```mermaid + graph TD + A[Hard] -->|Text| B(Round) + B --> C{Decision} + C -->|One| D[Result 1] + C -->|Two| E[Result 2] + ``` + +renders as + +```mermaid +graph TD +A[Hard] -->|Text| B(Round) +B --> C{Decision} +C -->|One| D[Result 1] +C -->|Two| E[Result 2] +``` + +An example **sequence diagram**: + + ```mermaid + sequenceDiagram + Alice->>John: Hello John, how are you? + loop Healthcheck + John->>John: Fight against hypochondria + end + Note right of John: Rational thoughts! + John-->>Alice: Great! + John->>Bob: How about you? + Bob-->>John: Jolly good! + ``` + +renders as + +```mermaid +sequenceDiagram +Alice->>John: Hello John, how are you? +loop Healthcheck + John->>John: Fight against hypochondria +end +Note right of John: Rational thoughts! +John-->>Alice: Great! +John->>Bob: How about you? +Bob-->>John: Jolly good! +``` + +An example **Gantt diagram**: + + ```mermaid + gantt + section Section + Completed :done, des1, 2014-01-06,2014-01-08 + Active :active, des2, 2014-01-07, 3d + Parallel 1 : des3, after des1, 1d + Parallel 2 : des4, after des1, 1d + Parallel 3 : des5, after des3, 1d + Parallel 4 : des6, after des4, 1d + ``` + +renders as + +```mermaid +gantt +section Section +Completed :done, des1, 2014-01-06,2014-01-08 +Active :active, des2, 2014-01-07, 3d +Parallel 1 : des3, after des1, 1d +Parallel 2 : des4, after des1, 1d +Parallel 3 : des5, after des3, 1d +Parallel 4 : des6, after des4, 1d +``` + +An example **class diagram**: + + ```mermaid + classDiagram + Class01 <|-- AveryLongClass : Cool + Class03 *-- Class04 + Class05 o-- Class06 + Class07 .. Class08 + Class09 --> C2 : Where am i? + Class09 --* C3 + Class09 --|> Class07 + Class07 : equals() + Class07 : Object[] elementData + Class01 : size() + Class01 : int chimp + Class01 : int gorilla + Class08 <--> C2: Cool label + ``` + +renders as + +```mermaid +classDiagram +Class01 <|-- AveryLongClass : Cool +Class03 *-- Class04 +Class05 o-- Class06 +Class07 .. Class08 +Class09 --> C2 : Where am i? +Class09 --* C3 +Class09 --|> Class07 +Class07 : equals() +Class07 : Object[] elementData +Class01 : size() +Class01 : int chimp +Class01 : int gorilla +Class08 <--> C2: Cool label +``` + +An example **state diagram**: + + ```mermaid + stateDiagram + [*] --> Still + Still --> [*] + Still --> Moving + Moving --> Still + Moving --> Crash + Crash --> [*] + ``` + +renders as + +```mermaid +stateDiagram +[*] --> Still +Still --> [*] +Still --> Moving +Moving --> Still +Moving --> Crash +Crash --> [*] +``` + +### Todo lists + +You can even write your todo lists in Markdown too: + +```markdown +- [x] Write math example + - [x] Write diagram example +- [ ] Do something else +``` + +renders as + +- [x] Write math example + - [x] Write diagram example +- [ ] Do something else + +### Tables + +Save your spreadsheet as a CSV file in your page's folder and then render it by adding the _Table_ shortcode to your page: + +```go +{{}} +``` + +renders as + +{{< table path="results.csv" header="true" caption="Table 1: My results" >}} + +### Callouts + +Academic supports a [shortcode for callouts](https://docs.hugoblox.com/content/writing-markdown-latex/#callouts), also referred to as _asides_, _hints_, or _alerts_. By wrapping a paragraph in `{{%/* callout note */%}} ... {{%/* /callout */%}}`, it will render as an aside. + +```markdown +{{%/* callout note */%}} +A Markdown aside is useful for displaying notices, hints, or definitions to your readers. +{{%/* /callout */%}} +``` + +renders as + +{{% callout note %}} +A Markdown aside is useful for displaying notices, hints, or definitions to your readers. +{{% /callout %}} + +### Spoilers + +Add a spoiler to a page to reveal text, such as an answer to a question, after a button is clicked. + +```markdown +{{}} +You found me! +{{}} +``` + +renders as + +{{< spoiler text="Click to view the spoiler" >}} You found me! {{< /spoiler >}} + +### Icons + +Academic enables you to use a wide range of [icons from _Font Awesome_ and _Academicons_](https://docs.hugoblox.com/getting-started/page-builder/#icons) in addition to [emojis](https://docs.hugoblox.com/content/writing-markdown-latex/#emojis). + +Here are some examples using the `icon` shortcode to render icons: + +```markdown +{{}} Terminal +{{}} Python +{{}} R +``` + +renders as + +{{< icon name="terminal" pack="fas" >}} Terminal +{{< icon name="python" pack="fab" >}} Python +{{< icon name="r-project" pack="fab" >}} R + +### Did you find this page helpful? Consider sharing it 🙌 diff --git a/content/post/writing-technical-content/line-chart.json b/content/post/writing-technical-content/line-chart.json new file mode 100644 index 0000000..4307b4f --- /dev/null +++ b/content/post/writing-technical-content/line-chart.json @@ -0,0 +1,71 @@ +{ + "data": [ + { + "uid": "babced", + "fill": "tonexty", + "mode": "none", + "name": "Col2", + "type": "scatter", + "x": [ + "2000-01-01", + "2001-01-01", + "2002-01-01", + "2003-01-01", + "2004-01-01", + "2005-01-01", + "2006-01-01", + "2007-01-01", + "2008-01-01", + "2009-01-01", + "2010-01-01", + "2011-01-01", + "2012-01-01", + "2013-01-01", + "2014-01-01", + "2015-01-01", + "2016-01-01" + ], + "y": [ + "17087182", + "29354370", + "38760373", + "40912332", + "51611646", + "64780617", + "85507314", + "121892559", + "172338726", + "238027855", + "206956723", + "346004403", + "697089489", + "672985183", + "968882453", + "863105652", + "1068513050" + ], + "fillcolor": "rgb(224, 102, 102)" + } + ], + "layout": { + "title": "Total Number of Websites", + "width": 800, + "xaxis": { + "type": "date", + "range": [946702800000, 1451624400000], + "title": "Source: Scribblrs
Source: Internet Live Stats", + "showgrid": false, + "autorange": true, + "tickformat": "%Y" + }, + "yaxis": { + "type": "linear", + "range": [0, 1124750578.9473684], + "title": "", + "autorange": true + }, + "height": 500, + "autosize": false + }, + "frames": [] +} diff --git a/content/post/writing-technical-content/results.csv b/content/post/writing-technical-content/results.csv new file mode 100644 index 0000000..0630ed9 --- /dev/null +++ b/content/post/writing-technical-content/results.csv @@ -0,0 +1,4 @@ +customer_id, score +1,0 +2,0.5 +3,1 diff --git a/content/privacy.md b/content/privacy.md new file mode 100644 index 0000000..e4f9c02 --- /dev/null +++ b/content/privacy.md @@ -0,0 +1,15 @@ +--- +title: Privacy Policy +date: '2018-06-28T00:00:00+01:00' +draft: true +share: false +commentable: false +editable: false + +# Optional header image (relative to `static/media/` folder). +header: + caption: '' + image: '' +--- + +Add your privacy policy here and set `draft: false` to publish it. Otherwise, delete this file if you don't need it. diff --git a/content/project/example/featured.gif b/content/project/example/featured.gif new file mode 100644 index 0000000..984ec1b Binary files /dev/null and b/content/project/example/featured.gif differ diff --git a/content/project/example/index.md b/content/project/example/index.md new file mode 100644 index 0000000..ebe342f --- /dev/null +++ b/content/project/example/index.md @@ -0,0 +1,41 @@ +--- +title: Example Project +summary: An example of using the in-built project page. +tags: + - Deep Learning +date: '2016-04-27T00:00:00Z' + +# Optional external URL for project (replaces project detail page). +external_link: '' + +image: + caption: Photo by rawpixel on Unsplash + focal_point: Smart + +links: + - icon: twitter + icon_pack: fab + name: Follow + url: https://twitter.com/georgecushen +url_code: '' +url_pdf: '' +url_slides: '' +url_video: '' + +# Slides (optional). +# Associate this project with Markdown slides. +# Simply enter your slide deck's filename without extension. +# E.g. `slides = "example-slides"` references `content/slides/example-slides.md`. +# Otherwise, set `slides = ""`. +slides: example +--- + +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. diff --git a/content/project/external-project/featured.jpg b/content/project/external-project/featured.jpg new file mode 100644 index 0000000..050f74d Binary files /dev/null and b/content/project/external-project/featured.jpg differ diff --git a/content/project/external-project/index.md b/content/project/external-project/index.md new file mode 100644 index 0000000..0ddfa59 --- /dev/null +++ b/content/project/external-project/index.md @@ -0,0 +1,14 @@ +--- +title: External Project +summary: An example of linking directly to an external project website using `external_link`. +tags: + - Demo +date: "2016-04-27T00:00:00Z" + +# Optional external URL for project (replaces project detail page). +external_link: https://example.org + +image: + caption: Photo by Toa Heftiba on Unsplash + focal_point: Smart +--- diff --git a/content/publication/_index.md b/content/publication/_index.md new file mode 100644 index 0000000..61b5092 --- /dev/null +++ b/content/publication/_index.md @@ -0,0 +1,16 @@ +--- +title: Publications +cms_exclude: true + +# View. +# 1 = List +# 2 = Compact +# 3 = Card +# 4 = Citation +view: 4 + +# Optional header image (relative to `static/media/` folder). +banner: + caption: '' + image: '' +--- diff --git a/content/publication/conference-paper/cite.bib b/content/publication/conference-paper/cite.bib new file mode 100644 index 0000000..98c3748 --- /dev/null +++ b/content/publication/conference-paper/cite.bib @@ -0,0 +1,8 @@ +@inproceedings{example1, + title={An example conference paper}, + author={Bighetti, Nelson and Ford, Robert}, + booktitle={Source Themes Conference}, + pages={1--6}, + year={2013}, + organization={IEEE} +} diff --git a/content/publication/conference-paper/conference-paper.pdf b/content/publication/conference-paper/conference-paper.pdf new file mode 100644 index 0000000..747064e Binary files /dev/null and b/content/publication/conference-paper/conference-paper.pdf differ diff --git a/content/publication/conference-paper/featured.jpg b/content/publication/conference-paper/featured.jpg new file mode 100644 index 0000000..2ebab27 Binary files /dev/null and b/content/publication/conference-paper/featured.jpg differ diff --git a/content/publication/conference-paper/index.md b/content/publication/conference-paper/index.md new file mode 100644 index 0000000..3833d80 --- /dev/null +++ b/content/publication/conference-paper/index.md @@ -0,0 +1,86 @@ +--- +title: 'An example conference paper' + +# Authors +# If you created a profile for a user (e.g. the default `admin` user), write the username (folder name) here +# and it will be replaced with their full name and linked to their profile. +authors: + - admin + - Robert Ford + +# Author notes (optional) +author_notes: + - 'Equal contribution' + - 'Equal contribution' + +date: '2013-07-01T00:00:00Z' +doi: '' + +# Schedule page publish date (NOT publication's date). +publishDate: '2017-01-01T00:00:00Z' + +# Publication type. +# Accepts a single type but formatted as a YAML list (for Hugo requirements). +# Enter a publication type from the CSL standard. +publication_types: ['paper-conference'] + +# Publication name and optional abbreviated publication name. +publication: In *Hugo Blox Builder Conference* +publication_short: In *ICW* + +abstract: 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. + +# Summary. An optional shortened abstract. +summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. + +tags: [] + +# Display this page in the Featured widget? +featured: true + +# Custom links (uncomment lines below) +# links: +# - name: Custom Link +# url: http://example.org + +url_pdf: '' +url_code: 'https://github.com/HugoBlox/hugo-blox-builder' +url_dataset: 'https://github.com/HugoBlox/hugo-blox-builder' +url_poster: '' +url_project: '' +url_slides: '' +url_source: 'https://github.com/HugoBlox/hugo-blox-builder' +url_video: 'https://youtube.com' + +# Featured image +# To use, add an image named `featured.jpg/png` to your page's folder. +image: + caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/pLCdAaMFLTE)' + focal_point: '' + preview_only: false + +# Associated Projects (optional). +# Associate this publication with one or more of your projects. +# Simply enter your project's folder or file name without extension. +# E.g. `internal-project` references `content/project/internal-project/index.md`. +# Otherwise, set `projects: []`. +projects: + - example + +# Slides (optional). +# Associate this publication with Markdown slides. +# Simply enter your slide deck's filename without extension. +# E.g. `slides: "example"` references `content/slides/example/index.md`. +# Otherwise, set `slides: ""`. +slides: example +--- + +{{% callout note %}} +Click the _Cite_ button above to demo the feature to enable visitors to import publication metadata into their reference management software. +{{% /callout %}} + +{{% callout note %}} +Create your slides in Markdown - click the _Slides_ button to check out the example. +{{% /callout %}} + +Add the publication's **full text** or **supplementary notes** here. You can use rich formatting such as including [code, math, and images](https://docs.hugoblox.com/content/writing-markdown-latex/). diff --git a/content/publication/journal-article/cite.bib b/content/publication/journal-article/cite.bib new file mode 100644 index 0000000..a7da7ac --- /dev/null +++ b/content/publication/journal-article/cite.bib @@ -0,0 +1,8 @@ +@article{example2, + title = {An example journal article}, + author={Bighetti, Nelson and Ford, Robert}, + journal = {Journal of Source Themes}, + year = 2015, + volume = 1, + number = 1 +} diff --git a/content/publication/journal-article/featured.jpg b/content/publication/journal-article/featured.jpg new file mode 100644 index 0000000..15272c0 Binary files /dev/null and b/content/publication/journal-article/featured.jpg differ diff --git a/content/publication/journal-article/index.md b/content/publication/journal-article/index.md new file mode 100644 index 0000000..079228a --- /dev/null +++ b/content/publication/journal-article/index.md @@ -0,0 +1,75 @@ +--- +title: "An example journal article" +authors: +- admin +- Robert Ford +author_notes: +- "Equal contribution" +- "Equal contribution" +date: "2015-09-01T00:00:00Z" +doi: "" + +# Schedule page publish date (NOT publication's date). +publishDate: "2017-01-01T00:00:00Z" + +# Publication type. +# Accepts a single type but formatted as a YAML list (for Hugo requirements). +# Enter a publication type from the CSL standard. +publication_types: ["article-journal"] + +# Publication name and optional abbreviated publication name. +publication: "*Journal of Source Themes, 1*(1)" +publication_short: "" + +abstract: 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. + +# Summary. An optional shortened abstract. +summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. + +tags: +- Source Themes +featured: false + +# links: +# - name: "" +# url: "" +url_pdf: http://arxiv.org/pdf/1512.04133v1 +url_code: 'https://github.com/HugoBlox/hugo-blox-builder' +url_dataset: '' +url_poster: '' +url_project: '' +url_slides: '' +url_source: '' +url_video: '' + +# Featured image +# To use, add an image named `featured.jpg/png` to your page's folder. +image: + caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/jdD8gXaTZsc)' + focal_point: "" + preview_only: false + +# Associated Projects (optional). +# Associate this publication with one or more of your projects. +# Simply enter your project's folder or file name without extension. +# E.g. `internal-project` references `content/project/internal-project/index.md`. +# Otherwise, set `projects: []`. +projects: [] + +# Slides (optional). +# Associate this publication with Markdown slides. +# Simply enter your slide deck's filename without extension. +# E.g. `slides: "example"` references `content/slides/example/index.md`. +# Otherwise, set `slides: ""`. +slides: example +--- + +{{% callout note %}} +Click the *Cite* button above to demo the feature to enable visitors to import publication metadata into their reference management software. +{{% /callout %}} + +{{% callout note %}} +Create your slides in Markdown - click the *Slides* button to check out the example. +{{% /callout %}} + +Add the publication's **full text** or **supplementary notes** here. You can use rich formatting such as including [code, math, and images](https://docs.hugoblox.com/content/writing-markdown-latex/). diff --git a/content/publication/preprint/featured.jpg b/content/publication/preprint/featured.jpg new file mode 100644 index 0000000..8fdeeee Binary files /dev/null and b/content/publication/preprint/featured.jpg differ diff --git a/content/publication/preprint/index.md b/content/publication/preprint/index.md new file mode 100644 index 0000000..ccb94da --- /dev/null +++ b/content/publication/preprint/index.md @@ -0,0 +1,68 @@ +--- +title: "An example preprint / working paper" +authors: +- admin +date: "2019-04-07T00:00:00Z" +doi: "" + +# Schedule page publish date (NOT publication's date). +publishDate: "2017-01-01T00:00:00Z" + +# Publication type. +# Accepts a single type but formatted as a YAML list (for Hugo requirements). +# Enter a publication type from the CSL standard. +publication_types: ["article"] + +# Publication name and optional abbreviated publication name. +publication: "" +publication_short: "" + +abstract: 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. + +# Summary. An optional shortened abstract. +summary: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. + +tags: +- Source Themes +featured: false + +links: +- name: Custom Link + url: http://example.org +url_pdf: http://arxiv.org/pdf/1512.04133v1 +url_code: 'https://github.com/HugoBlox/hugo-blox-builder' +url_dataset: '#' +url_poster: '#' +url_project: '' +url_slides: '' +url_source: '#' +url_video: '#' + +# Featured image +# To use, add an image named `featured.jpg/png` to your page's folder. +image: + caption: 'Image credit: [**Unsplash**](https://unsplash.com/photos/s9CC2SKySJM)' + focal_point: "" + preview_only: false + +# Associated Projects (optional). +# Associate this publication with one or more of your projects. +# Simply enter your project's folder or file name without extension. +# E.g. `internal-project` references `content/project/internal-project/index.md`. +# Otherwise, set `projects: []`. +projects: +- internal-project + +# Slides (optional). +# Associate this publication with Markdown slides. +# Simply enter your slide deck's filename without extension. +# E.g. `slides: "example"` references `content/slides/example/index.md`. +# Otherwise, set `slides: ""`. +slides: example +--- + +{{% callout note %}} +Create your slides in Markdown - click the *Slides* button to check out the example. +{{% /callout %}} + +Add the publication's **full text** or **supplementary notes** here. You can use rich formatting such as including [code, math, and images](https://docs.hugoblox.com/content/writing-markdown-latex/). diff --git a/content/slides/example/index.md b/content/slides/example/index.md new file mode 100644 index 0000000..de42c4e --- /dev/null +++ b/content/slides/example/index.md @@ -0,0 +1,169 @@ +--- +title: Slides +summary: An introduction to using Hugo Blox Builder's Slides feature. +authors: [] +tags: [] +categories: [] +date: '2019-02-05T00:00:00Z' +slides: + # Choose a theme from https://github.com/hakimel/reveal.js#theming + theme: black + # Choose a code highlighting style (if highlighting enabled in `params.toml`) + # Light style: github. Dark style: dracula (default). + highlight_style: dracula +--- + +# Create slides in Markdown with Hugo Blox Builder + +[Hugo Blox Builder](https://hugoblox.com/) | [Documentation](https://docs.hugoblox.com/content/slides/) + +--- + +## Features + +- Efficiently write slides in Markdown +- 3-in-1: Create, Present, and Publish your slides +- Supports speaker notes +- Mobile friendly slides + +--- + +## Controls + +- Next: `Right Arrow` or `Space` +- Previous: `Left Arrow` +- Start: `Home` +- Finish: `End` +- Overview: `Esc` +- Speaker notes: `S` +- Fullscreen: `F` +- Zoom: `Alt + Click` +- [PDF Export](https://revealjs.com/pdf-export/) + +--- + +## Code Highlighting + +Inline code: `variable` + +Code block: + +```python +porridge = "blueberry" +if porridge == "blueberry": + print("Eating...") +``` + +--- + +## Math + +In-line math: $x + y = z$ + +Block math: + +$$ +f\left( x \right) = \;\frac{{2\left( {x + 4} \right)\left( {x - 4} \right)}}{{\left( {x + 4} \right)\left( {x + 1} \right)}} +$$ + +--- + +## Fragments + +Make content appear incrementally + +``` +{{%/* fragment */%}} One {{%/* /fragment */%}} +{{%/* fragment */%}} **Two** {{%/* /fragment */%}} +{{%/* fragment */%}} Three {{%/* /fragment */%}} +``` + +Press `Space` to play! + +{{% fragment %}} One {{% /fragment %}} +{{% fragment %}} **Two** {{% /fragment %}} +{{% fragment %}} Three {{% /fragment %}} + +--- + +A fragment can accept two optional parameters: + +- `class`: use a custom style (requires definition in custom CSS) +- `weight`: sets the order in which a fragment appears + +--- + +## Speaker Notes + +Add speaker notes to your presentation + +```markdown +{{%/* speaker_note */%}} + +- Only the speaker can read these notes +- Press `S` key to view + {{%/* /speaker_note */%}} +``` + +Press the `S` key to view the speaker notes! + +{{< speaker_note >}} + +- Only the speaker can read these notes +- Press `S` key to view + {{< /speaker_note >}} + +--- + +## Themes + +- black: Black background, white text, blue links (default) +- white: White background, black text, blue links +- league: Gray background, white text, blue links +- beige: Beige background, dark text, brown links +- sky: Blue background, thin dark text, blue links + +--- + +- night: Black background, thick white text, orange links +- serif: Cappuccino background, gray text, brown links +- simple: White background, black text, blue links +- solarized: Cream-colored background, dark green text, blue links + +--- + +{{< slide background-image="/media/boards.jpg" >}} + +## Custom Slide + +Customize the slide style and background + +```markdown +{{}} +{{}} +{{}} +``` + +--- + +## Custom CSS Example + +Let's make headers navy colored. + +Create `assets/css/reveal_custom.css` with: + +```css +.reveal section h1, +.reveal section h2, +.reveal section h3 { + color: navy; +} +``` + +--- + +# Questions? + +[Ask](https://discord.gg/z8wNYzb) + +[Documentation](https://docs.hugoblox.com/content/slides/) diff --git a/content/terms.md b/content/terms.md new file mode 100644 index 0000000..0629ea0 --- /dev/null +++ b/content/terms.md @@ -0,0 +1,15 @@ +--- +title: Terms +date: '2018-06-28T00:00:00+01:00' +draft: true +share: false +commentable: false +editable: false + +# Optional header image (relative to `static/media/` folder). +header: + caption: '' + image: '' +--- + +Add your terms here and set `draft: false` to publish it. Otherwise, delete this file if you don't need it. diff --git a/data/fonts/.gitkeep b/data/fonts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/data/page_sharer.toml b/data/page_sharer.toml new file mode 100644 index 0000000..66e2d97 --- /dev/null +++ b/data/page_sharer.toml @@ -0,0 +1,82 @@ +# Page Sharer +# Documentation: https://docs.hugoblox.com/hugo-tutorials/page-sharer/ + +[[buttons]] + id = "twitter" + url = "https://twitter.com/intent/tweet?url={url}&text={title}" + title = "Twitter" + icon_pack = "fab" + icon = "twitter" + enable = true + +[[buttons]] + id = "facebook" + url = "https://www.facebook.com/sharer.php?u={url}&t={title}" + title = "Facebook" + icon_pack = "fab" + icon = "facebook" + enable = true + +[[buttons]] + id = "email" + url = "mailto:?subject={title}&body={url}" + title = "Email" + icon_pack = "fas" + icon = "envelope" + enable = true + +[[buttons]] + id = "linkedin" + url = "https://www.linkedin.com/shareArticle?url={url}&title={title}" + title = "LinkedIn" + icon_pack = "fab" + icon = "linkedin-in" + enable = true + +[[buttons]] + id = "whatsapp" + url = "whatsapp://send?text={title}%20{url}" + title = "WhatsApp" + icon_pack = "fab" + icon = "whatsapp" + enable = true + +[[buttons]] + id = "weibo" + url = "https://service.weibo.com/share/share.php?url={url}&title={title}" + title = "Weibo" + icon_pack = "fab" + icon = "weibo" + enable = true + +[[buttons]] + id = "reddit" + url = "https://reddit.com/submit?url={url}&title={title}" + title = "Reddit" + icon_pack = "fab" + icon = "reddit-alien" + enable = false + +[[buttons]] + id = "pinterest" + url = "https://pinterest.com/pin/create/link/?url={url}&description={title}" + title = "Pinterest" + icon_pack = "fab" + icon = "pinterest" + enable = false + +[[buttons]] + id = "xing" + url = "https://www.xing.com/spi/shares/new?url={url}&title={title}" + title = "Xing" + icon_pack = "fab" + icon = "xing" + enable = false + +[[buttons]] + id = "tumblr" + url = "https://www.tumblr.com/widgets/share/tool?canonicalUrl={url}&title={title}" + title = "Tumblr" + icon_pack = "fab" + icon = "tumblr" + enable = false diff --git a/data/themes/.gitkeep b/data/themes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..b785dc3 --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module github.com/HugoBlox/theme-academic-cv + +go 1.15 + +require ( + github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.6 + github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231108141515-0478cf6921f9 + github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal v1.1.2 +) diff --git a/images/screenshot.png b/images/screenshot.png new file mode 100644 index 0000000..2b545d8 Binary files /dev/null and b/images/screenshot.png differ diff --git a/images/tn.png b/images/tn.png new file mode 100644 index 0000000..f4aa8e7 Binary files /dev/null and b/images/tn.png differ diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..e35a1fc --- /dev/null +++ b/netlify.toml @@ -0,0 +1,21 @@ +[build] + command = "hugo --gc --minify -b $URL" + publish = "public" + +[build.environment] + HUGO_VERSION = "0.119.0" + 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 diff --git a/preview.png b/preview.png new file mode 100644 index 0000000..9a73a17 Binary files /dev/null and b/preview.png differ diff --git a/static/uploads/resume.pdf b/static/uploads/resume.pdf new file mode 100644 index 0000000..d0489a3 Binary files /dev/null and b/static/uploads/resume.pdf differ diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..3c9b0e4 --- /dev/null +++ b/theme.toml @@ -0,0 +1,49 @@ +name = "Academic" +license = "MIT" +licenselink = "https://github.com/HugoBlox/theme-academic-cv/blob/main/LICENSE.md" +description = "Use the no-code website framework to easily build your site. Choose from 50+ widgets and deploy with one click! Fully personalize your site with themes, plugins, and language packs." +homepage = "https://github.com/HugoBlox/theme-academic-cv" +demosite = "https://hugoblox.com/templates/" +tags = ["widgets", + "resume", + "portfolio", + "responsive", + "clean", + "personal", + "company", + "blog", + "minimal", + "light", + "dark", + "multilingual", + "documentation", + "landing page", + "projects", + "single page", + "contact form", + "mobile", + "gallery", + "search", + "presentation", + "simple", + "minimalist", + "starter", + "modern", + "one page", + "customizable", + "technical", + "product", + "slide" + ] +features = ["page builder", "widgets", "themes", "search", "research publication system", "filterable portfolio", + "blog", "create courses", "talks", "events", "slides", "gallery", "contact form"] + +[author] + name = "George Cushen" + homepage = "https://georgecushen.com" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""