class: left, middle, inverse background-image: url(https://www.unomaha.edu/university-communications/downloadables/campus-icon-the-o/uno-icon-color.png) background-position: 95% 89% background-size: 10% # Creating a Professional Website ## (Part 1?) </br> </br> [Justin Nix](https://jnix.netlify.app) Distinguished Associate Professor School of Criminology and Criminal Justice <br> <br> <br> .white[Graduate Seminar Series] .white[University of Nebraska Omaha] .white[December 2, 2022] --- class: middle, center, inverse # Why You Should Create a Website ??? --- class: middle, center ## To Make Your Work More Accessible <img src="open_sign.jpg" width="60%" style="display: block; margin: auto;" /> <p style="text-align: center; color: gray">.small[Image by [Michelle Ress](https://flickr.com/photos/safoocat/) on [flickr](https://flic.kr/p/2b6WhLK), [CC BY-NC-ND 2.0](https://creativecommons.org/licenses/by-nc-nd/2.0/)]</p> --- class: middle, center ## Committees Will Google You <img src="google_search.jpg" width="60%" style="display: block; margin: auto;" /> <p style="text-align: center; color: gray">.small[Image by [Rick Turoczy](https://flickr.com/photos/turoczy/) on [flickr](https://flic.kr/p/9zUNcr), [CC BY 2.0](https://creativecommons.org/licenses/by/2.0/)]</p> --- class: middle, center, inverse # Disclaimer --- class: top <img src="frankie.jpg" width="60%" style="display: block; margin: auto;" /> <p style="text-align: center; color: gray">.small[Image by [Rheo](https://pixabay.com/users/merio-1480566/) on [Pixabay](https://pixabay.com/illustrations/halloween-frankenstien-party-2853809/)]</p> --- class: middle, center, inverse # OK, Let's Get Started --- class: middle, center ## Prerequisites -- You'll need to set up free accounts with [GitHub](https://github.com/) and [Netlify](https://netlify.com) -- Download [RStudio](https://posit.co/download/rstudio-desktop/) and install the [blogdown](https://cran.r-project.org/web/packages/blogdown/index.html) package ``` install.packages("blogdown") ``` --- class: top ## Step 1: Pick a Theme and Launch -- Go to [Wowchemy.com](https://wowchemy.com) <img src="wowchemy_home.png" width="60%" style="display: block; margin: auto;" /> -- <img src="start-resume-git.png" width="60%" style="display: block; margin: auto;" /> - You might need to grant Netlify access to GitHub - Choose repository name, save and deploy --- class: top ## Step 2: Customize Your URL -- Change the auto-assigned URL to something that makes more sense .pull-left[ ![analytics1](site_settings.png) ] .pull-right[ ![analytics2](change_site_name.png) ] --- class: left ## Step 3: Create the Project in RStudio -- <img src="file-new-version-git.png" width="75%" style="display: block; margin: auto;" /> -- Enter the URL of your GitHub repo and name the directory (i.e., folder) where you'll store the files that will build your website </br> <img src="clone_git_repo.png" width="40%" style="display: block; margin: auto;" /> -- </br> Click "Create Project" --- class: top ## Step 4: Build Out Your Homepage -- Use Wowchemy Page Builder to [customize your homepage](https://wowchemy.com/docs/getting-started/page-builder/) -- Things you should **definitely** include: -- - Your CV - A headshot - Degrees earned (and in progress) - A short description of yourself - A page that links to your published work --- class: top ## Step 4: Build Out Your Homepage ### Your Avatar and Bio -- Save your avatar in **content/authors/admin** - overwriting the stock image -- Open **content/authors/admin/_index.md** -- - Add your full name to the **title** field - Add your current position to the **role** field - Write one (short) sentence describing yourself in the **bio** field - List the **organizations** you're affiliated with - List your research interests in the **interests** field - List your degrees earned/in progress in the **education -> courses** block - Link to your social media or academic accounts - E.G., Twitter, ResearchGate, OrcID, GitHub... --- class: top ## Step 4: Build Out Your Homepage ### Your Avatar and Bio <img src="your_bio.png" width="75%" style="display: block; margin: auto;" /> --- class: top ## Step 4: Build Out Your Homepage Use Wowchemy Page Builder to [customize your homepage](https://wowchemy.com/docs/getting-started/page-builder/) -- Things you should **consider** including: -- - Pre-prints - Teaching materials (e.g., syllabi) - Presentations - A blog --- class: top ## Step 4: Build Out Your Homepage -- Wowchemy has several page [templates](https://wowchemy.com/docs/getting-started/get-started/) to choose from (or you can create one from scratch) <img src="wowchemy_pages.png" width="60%" style="display: block; margin: auto;" /> --- class: top ## Step 5: Personalize -- ### Pick a website icon - Save in the **assets/media/** folder as a 512x512 named **icon.png** <img src="icon.png" width="50%" style="display: block; margin: auto;" /> --- class: top ## Step 5: Personalize -- ### Appearance Open **config/_default/params.yaml** -- - Choose a **color theme** and **font** that suits you - Easy to go back and change/tweak these later -- - Customize the **header** - Main menu links in your navigation bar can be added in **config/_default/menu.yaml** <img src="header.png" width="75%" style="display: block; margin: auto;" /> --- class: top ## Step 5: Personalize ### Appearance Open **config/_default/params.yaml** -- - Add a **copyright notice** to the **footer** -- <img src="copyright_notice.png" width="40%" style="display: block; margin: auto;" /> -- ``` footer: widget: minimal copyright: notice: '© {year} Me. This work is licensed under {license}' license: enable: true allow_derivatives: false share_alike: true allow_commercial: false # For multilingual sites, show a language chooser in the footer? show_translations: true ``` --- class: top ## Step 5: Personalize ### Appearance Open **config/_default/params.yaml** -- - Lastly, you can enable [commenting](https://wowchemy.com/docs/hugo-tutorials/comments/), [analytics](https://wowchemy.com/docs/hugo-tutorials/analytics/), and [social sharing](https://wowchemy.com/docs/hugo-tutorials/page-sharer/) if you like -- .pull-left[ ![analytics1](analytics_1.png) ] .pull-right[ ![analytics2](analytics_2.png) ] --- class: top ## Step 6: Commit Your Changes and Push them Out! -- Can make changes directly in GitHub, but I prefer to do it all in RStudio -- You should see a list of changes you've made in upper right pane, under the **Git** tab: <img src="commit_changes_1.png" width="50%" style="display: block; margin: auto;" /> -- Check the "Staged" box next to the changes you want to commit Click "Commit" --- class: top ## Step 6: Commit Your Changes and Push them Out! -- Add text explaining what you've changed in the "commit message" box <img src="commit_changes_2.png" width="50%" style="display: block; margin: auto;" /> -- Now click "Commit" and then "Push" --- class: middle, center, inverse # Congrats! Your changes should appear in a few moments -- ## ...Unless there's a bug -- ## ...And often there is --- class: top ## Other Helpful Resources -- I built my Frankenstein with help from [Yihui Xie](https://yihui.org/en/), [Alison Hill](https://www.apreshill.com/tags/rmarkdown/), [Dan Quintana](https://www.dsquintana.blog/), and [Steve Miller](http://svmiller.com/blog/). -- Follow them for helpful content about: - [Markdown syntax](https://www.markdownguide.org/cheat-sheet/) - [xaringan](https://slides.yihui.org/xaringan/#1), [officedown](https://www.apreshill.com/blog/2021-07-officedown/), and [Beamer](http://svmiller.com/blog/2019/08/r-markdown-template-beamer-presentations/) - Rendering your [CVs](http://svmiller.com/blog/2016/03/svm-r-markdown-cv/), [pre-prints](http://svmiller.com/blog/2020/09/another-rmarkdown-article-template/), [syllabi](http://svmiller.com/blog/2016/07/r-markdown-syllabus/) --- class: middle, center, inverse # Words of Caution --- class: top ## Have some patience -- <img src="computer-rage.png" width="60%" style="display: block; margin: auto;" /> --- class: top ## Be mindful of copyright -- For images, I use [flickr](https://flickr.com/), [pixabay](https://pixabay.com/), and [Unsplash](https://unsplash.com/) <img src="creative_commons.png" width="50%" style="display: block; margin: auto;" /> -- Head over to [CrimRxiv](https://www.crimrxiv.com/individual-open-access-license) for information about sharing research --- class: top ## If you blog: **Don't. Be. Messy.** -- Ask yourself: what am I trying to accomplish with this? -- .pull-left[ <img src="dunk.jpg" width="100%" style="display: block; margin: auto;" /> <p style="text-align: center; color: gray">.small[Image by [Beyond Neon](https://flickr.com/photos/kungfuji/) on [flickr](https://flic.kr/p/4nMcFp), [CC BY-NC 2.0](https://creativecommons.org/licenses/by-nc/2.0/)]</p> ] -- .pull-right[ </br> </br> </br> ...This is generally unhelpful ] --- class: top, center background-image: url(https://www.unomaha.edu/university-communications/downloadables/campus-icon-the-o/uno-icon-color.png) background-position: 50% 59% background-size: 10% # Thank you! ## Questions? Justin Nix *School of Criminology and Criminal Justice* *University of Nebraska Omaha* </br> </br> </br> <svg viewBox="0 0 512 512" style="height:1em;position:relative;display:inline-block;top:.1em;" xmlns="http://www.w3.org/2000/svg"> <path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg> [jnixy](https://twitter.com/jnixy) | <svg viewBox="0 0 512 512" style="height:1em;position:relative;display:inline-block;top:.1em;" xmlns="http://www.w3.org/2000/svg"> <path d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"></path></svg> [jnix@unomaha.edu](mailto:jnix@unomaha.edu) | <svg viewBox="0 0 496 512" style="height:1em;position:relative;display:inline-block;top:.1em;" xmlns="http://www.w3.org/2000/svg"> <path d="M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"></path></svg> [jnix.netlify.app](https://jnix.netlify.app) <!-- ```{css, echo=FALSE} --> <!-- @media print { --> <!-- .has-continuation { --> <!-- display: block; --> <!-- } --> <!-- } --> <!-- ``` --> <style> p.caption { font-size: 0.5em; color: gray; } </style>