Skip to content

Commit

Permalink
fix: broken pages on site
Browse files Browse the repository at this point in the history
  • Loading branch information
hmajid2301 committed Apr 20, 2024
1 parent 132874e commit 462f71f
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 36 deletions.
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,24 @@ My personal website and blog built using Hugo.

## Usage

> You need [go-task](https://taskfile.dev/installation/) installed
> You need [task](https://taskfile.dev/installation/) installed
Or you can use Nix flakes, with direnv to auto activate your development environment.

```bash
go-task start_server
# Serve Main Site
task start_server

# To see all talks
go-task --list-all
# Serve /slides path
task start_slides
```

### New Content

To create a new post:

```
go-task new_post ARTICLE_NAME=a-new-post
```

To create a new talk:

```
go-task new_talk TALK_NAME=a-talk-post
task new_post
```

## Theme
Expand Down
21 changes: 13 additions & 8 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,26 @@ version: "3"

tasks:
start_server:
watch: true
sources:
- 'content/**/*.md'
# watch: true
# sources:
# - 'content/**/*.md'
cmds:
- hugo server -D --buildFuture

start_slides:
# watch: true
# sources:
# - 'content/**/*.md'
cmds:
- hugo server -D --buildFuture --config hugo-slides.toml

new_post:
cmds:
- new_post "{{.CLI_ARGS}}"

new_talk:
cmds:
- hugo new --kind talk-bundle talks/{{.TALK_NAME}}
env:
TALK_NAME: foo
# new_talk:
# cmds:
# - hugo new --kind talk-bundle talks/{{.TALK_NAME}}

generate:og:
cmds:
Expand Down
22 changes: 22 additions & 0 deletions hugo-slides.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
baseURL = "https://haseebmajid.dev/slides"
title = "Haseeb Majid"
theme = ["github.com/dzello/reveal-hugo"]
contentDir = "content/slides"
publishDir = "public/slides"
staticDir = "static/slides"

[markup.highlight]
codeFences = false

[markup.goldmark.renderer]
unsafe = true

[outputFormats.Reveal]
baseName = "index"
mediaType = "text/html"
isHTML = true

[sitemap]
changefreq = "monthly"
filename = "sitemap.xml"
priority = 0.5
19 changes: 2 additions & 17 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,16 @@ buildDrafts = false
buildFuture = false
buildExpired = false
enableEmoji = true
ignorefiles = ["source_code/.*", "slides.pdf"]
theme = ["github.com/dzello/reveal-hugo"]
ignorefiles = ["content/slides"]

[module]

[[module.mounts]]
source = "content/posts"
target = "content/posts"
excludeFiles = "source_code/*"
[[module.mounts]]
source = "content/slides"
target = "content/slides"
excludeFiles = "slides.pdf"

[minify]
disableXML = true
minifyOutput = true

[markup.highlight]
codeFences = false
codeFences = true

[params]
env = "production"
Expand Down Expand Up @@ -175,11 +165,6 @@ home = ["HTML", "RSS", "JSON"]
[markup.goldmark.renderer]
unsafe = true

[outputFormats.Reveal]
baseName = "index"
mediaType = "text/html"
isHTML = true

[sitemap]
changefreq = "monthly"
filename = "sitemap.xml"
Expand Down
Binary file removed static/cover.jpg
Binary file not shown.
Binary file added static/slides/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/slides/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/slides/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/slides/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/slides/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/slides/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions static/slides/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 462f71f

Please sign in to comment.