소스 검색

added a hugo site

Your Name 8 달 전
부모
커밋
b4278dc705

+ 10 - 0
.gitignore

@@ -1,3 +1,13 @@
+# Hugo
+/web/public/
+/web/resources/_gen/
+/web/assets/jsconfig.json
+/web/hugo_stats.json
+/web/hugo.exe
+/web/hugo.darwin
+/web/hugo.linux
+/web/.hugo_build.lock
+
 # ---> Vim
 [._]*.s[a-w][a-z]
 [._]s[a-w][a-z]

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule "web/themes/ananke"]
+	path = web/themes/ananke
+	url = https://github.com/theNewDynamic/gohugo-theme-ananke.git

+ 45 - 0
README.md

@@ -36,10 +36,55 @@ Wow cool, we have a copy of the `kyleguy` repository on our windows computer.  W
 
 Windows is really cool they have a feature where they print red text until you close and reopen the terminal:
 ![red-windows-text-good-job](images/windows-red-text-feature.png)
+---
+
+
+Actually this is a good break, because we cannot use Windows Powershell we need Powershell.  Yeh.  I cannot fix that.  Pretty wild.  There is a difference.  We will jump back here, but we need to install Powershell first.
+
+**Install Powershell**
+
+Open up that terminal, then use `winget` to install `powershell`.
+![install-powershell-with-winget](images/windows-powershell-err-powershell.png)
+---
+
+**back to: uh-oh we want to be in a repository but we do we have one?**
+We launch `powershell` a little differently:
+![run-other-powershell](images/run-the-other-powershell.png)
+
+Let us initilize the files needed for our website:
 ```
+cd Desktop/kyleguy
+hugo new site web
+cd web
+git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
+echo "theme = 'ananke'" >> hugo.toml
+hugo server
+```
+
+If that worked it will look something like this:
+![hugo-started](images/hugo-server-started.png)
+
+In addition there will be a webserver on our Windows computer.  I think hugo will serve the site `http://localhost:1313/`.  This feature is nice and allows us to see our website while we work on it:
+![hugo-server](images/my-new-website.png)
+---
 
+**some final steps**
+We should probably add our site to the repository.  And that website is pretty basic so one should follow the `hugo` tutorials to upgrade the page.  All the files are in `Desktop/kyleguy/web`  if you've been following closely.  Use a terminal for git commands.  Maybe edit the `.gitignore` file to include some folders using our deep knowledge of hugo:
+```
+# Hugo
+/web/public/
+/web/resources/_gen/
+/web/assets/jsconfig.json
+/web/hugo_stats.json
+/web/hugo.exe
+/web/hugo.darwin
+/web/hugo.linux
+/web/.hugo_build.lock
 ```
 
+Then add our site and commit:
+```
+```
 
 ## site setup
 You are going to need a domain, either buy one or be a person whom already has a domain.  We are going to host our site on `pebbleguy.com` using the `NginX` ("engine x") web server.  We will create a site configuration file with SSL using a tool, `certbot-wapper.sh`.  This script is part of the [pebbleguy repository](https://git.pebbleguy.com/Dan/pebbleguy.com/src/master/scripts/certbot-wrapper.sh).  Login to your account on `pebbleguy.com` using Secure Shell (SSH) or ask Kyle, Chris, Daniel, or Emma for help.  If you are one of those people, hello!  Download the `pebbleguy.com` repository so you have access to the script and run `certbot-wrapper.sh` to have it create the `NginX` config file for your site:

BIN
images/hugo-server-started.png


BIN
images/my-new-website.png


BIN
images/please-wait.png


BIN
images/run-the-other-powershell.png


BIN
images/windows-powershell-err-powershell.png


+ 5 - 0
web/archetypes/default.md

@@ -0,0 +1,5 @@
++++
+date = '{{ .Date }}'
+draft = true
+title = '{{ replace .File.ContentBaseName "-" " " | title }}'
++++

+ 4 - 0
web/hugo.toml

@@ -0,0 +1,4 @@
+baseURL = 'https://example.org/'
+languageCode = 'en-us'
+title = 'My New Hugo Site'
+theme = 'ananke'

+ 1 - 0
web/themes/ananke

@@ -0,0 +1 @@
+Subproject commit a0019812ff62d978781392c765addbaee1c1eddf