MarFoLeigh / academic-kickstart2.0

Guerilla-DH website repository
https://marissafoley.netlify.com/
MIT License
0 stars 1 forks source link

embedding code within a post #3

Open shawngraham opened 4 years ago

shawngraham commented 4 years ago

Hi Marissa, Noted in devlog3 you're embedding images to show the code things you're wrestling with.

In markdown, you can embed code by wrapping it in backticks, eg ```.

So, it'd look something like this

```

... regular markdown syntax for embedding an image: ![](path/to/image.png)
... regular html syntax for same: <img src="path/to/image.png"></img>

```

MarFoLeigh commented 4 years ago

Hi Shawn,

How useful! Thank you! That devlog is a work in progress....

On a semi-related note, I’m trying to build a different site using a Hugo template and am having some trouble. What’s the difference between the academic kickstart template and the ones on Hugo?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Shawn Graham notifications@github.com Sent: Wednesday, October 9, 2019 9:09:51 PM To: MarFoLeigh/academic-kickstart2.0 academic-kickstart2.0@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [MarFoLeigh/academic-kickstart2.0] embedding code within a post (#3)

[External Email]

Hi Marissa, Noted in devlog3 you're embedding images to show the code things you're wrestling with.

In markdown, you can embed code by wrapping it in backticks, eg ```.

So, it'd look something like this


... regular markdown syntax for embedding an image: ![](path/to/image.png)
... regular html syntax for same: <img src="path/to/image.png"></img>

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/MarFoLeigh/academic-kickstart2.0/issues/3?email_source=notifications&email_token=ALKINWE6C4IPPHXY3X7MGYTQNZ6F7A5CNFSM4I7GRAF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQZJINQ, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALKINWFVMTTVU46QHON4G63QNZ6F7ANCNFSM4I7GRAFQ.

This email contains links to content or websites. Always be cautious when clicking on external links or attachments. If in doubt, please forward suspicious emails to phishing@carleton.ca.

-----End of Disclaimer-----

shawngraham commented 4 years ago

hugo is the engine which turns your markdown files into html by passing them through a series of templates and transformations.

academic-kickstart is one hugo theme of many (see https://themes.gohugo.io/.

netlify provides hosting and deployment, and the capability to watch your repo for new changes and to rebuild and automatically deploy.

The difference then between the version of academic-kickstarter theme I set you up with, and themes you might've found online, is that the themes don't come with the build infrastructure: you do that yourself by installing hugo, downloading themes, etc.

So, if you have hugo installed on your own computer, and you've got a template downloaded, and you've copied the config files properly into a new hugo site, when you build the site, the html files all go into a folder marked 'public'. You would then copy all of these files into webspace you control, eg a new repo on its gh-pages branch.