-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
qt1b
committed
Oct 2, 2024
1 parent
36dc3cf
commit c815c1a
Showing
32 changed files
with
705 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
baseURL = 'http://qt1b.github.io/' | ||
languageCode = 'en-us' | ||
title = "qt1b's personal page" | ||
theme = "hello-friend-ng" | ||
theme = ["PaperMod", "gokarna","hello-friend-ng","terminal"] # "terminal" #"gokarna" | ||
|
||
[menus] | ||
[[menus.main]] | ||
name = 'CTF Writeups' | ||
pageRef = '/writeups/asis/2024/detic' | ||
weight = 100 | ||
[[menus.main]] | ||
name = 'misc' | ||
pageRef = '/writeups/pwn' | ||
parent = 'CTF Writeups' | ||
weight = 3 | ||
[[menus.main]] | ||
name = 'misc' | ||
pageRef = '/writeups/rev' | ||
parent = 'CTF Writeups' | ||
weight = 2 | ||
[[menus.main]] | ||
name = 'misc' | ||
pageRef = '/writeups/misc' | ||
parent = 'CTF Writeups' | ||
weight = 1 | ||
|
||
|
||
custom_css = ["css/custom.css"] | ||
# used to center / redimension images in specific cases | ||
[markup.goldmark.renderer] | ||
unsafe = true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{ define "main" }} | ||
<div class="post"> | ||
<h1 class="post-title">404 — {{ $.Site.Params.missingContentMessage | default "Page not found..." }}</h1> | ||
|
||
<div class="post-content"> | ||
<a href="{{ "/" | absURL }}">{{ $.Site.Params.missingBackButtonLabel | default "Back to home page" }} →</a> | ||
</div> | ||
|
||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ $.Site.Language }}"> | ||
<head> | ||
{{ block "title" . }} | ||
<title>{{ if .IsHome }}{{ $.Site.Title }}{{ else }}{{ .Title }} :: {{ $.Site.Title }}{{ end }}</title> | ||
{{ end }} | ||
{{ partial "head.html" . }} | ||
</head> | ||
<body> | ||
{{ $container := cond ($.Site.Params.FullWidthTheme | default false) "container full" (cond ($.Site.Params.CenterTheme | default false) "container center" "container") }} | ||
|
||
<div class="{{- $container -}}{{- cond ($.Site.Params.oneHeadingSize | default false) " headings--one-size" "" }}"> | ||
|
||
{{ partial "header.html" . }} | ||
|
||
<div class="content"> | ||
{{ block "main" . }} | ||
{{ end }} | ||
</div> | ||
|
||
{{ block "footer" . }} | ||
{{ partial "footer.html" . }} | ||
{{ end }} | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{{ define "main" }} | ||
{{ if .Content }} | ||
<div class="index-content {{ if .Params.framed -}}framed{{- end -}}"> | ||
{{ .Content }} | ||
</div> | ||
{{ end }} | ||
<div class="posts"> | ||
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} | ||
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} | ||
|
||
{{ $PageContext := . }} | ||
{{ if .IsHome }} | ||
{{ $PageContext = .Site }} | ||
{{ end }} | ||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} | ||
|
||
{{ range $paginator.Pages }} | ||
<article class="post on-list"> | ||
<h2 class="post-title"> | ||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||
</h2> | ||
|
||
<div class="post-meta"> | ||
{{- if .Date -}} | ||
<time class="post-date"> | ||
{{- .Date.Format "2006-01-02" -}} | ||
</time> | ||
{{- end -}} | ||
{{- with .Params.Author -}} | ||
<span class="post-author">{{ . }}</span> | ||
{{- end -}} | ||
</div> | ||
|
||
{{ if .Params.tags }} | ||
<span class="post-tags"> | ||
{{ range .Params.tags }} | ||
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}"> | ||
{{- . -}} | ||
</a> | ||
{{ end }} | ||
</span> | ||
{{ end }} | ||
|
||
{{ partial "cover.html" . }} | ||
|
||
<div class="post-content"> | ||
{{ if .Params.showFullContent }} | ||
{{ .Content }} | ||
{{ else if .Description }} | ||
<p>{{ .Description | markdownify }}</p> | ||
{{ else }} | ||
{{ .Summary }} | ||
{{ end }} | ||
</div> | ||
|
||
{{ if not .Params.showFullContent }} | ||
<div> | ||
<a class="read-more button inline" href="{{ .RelPermalink }}">{{ $.Site.Params.ReadMore }}</a> | ||
</div> | ||
{{ end }} | ||
</article> | ||
{{ end }} | ||
|
||
{{ partial "pagination.html" . }} | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{{ define "main" }} | ||
{{ with .Content }} | ||
<div class="index-content"> | ||
{{ . }} | ||
</div> | ||
{{ end }} | ||
<div class="posts"> | ||
{{ range .Paginator.Pages }} | ||
<article class="post on-list"> | ||
<h2 class="post-title"> | ||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||
</h2> | ||
<div class="post-meta"> | ||
{{- if .Date -}} | ||
<time class="post-date"> | ||
{{- .Date.Format "2006-01-02" -}} | ||
</time> | ||
{{- end -}} | ||
{{- with .Params.Author -}} | ||
<span class="post-author">{{- . -}}</span> | ||
{{- end -}} | ||
</div> | ||
|
||
{{ if .Params.tags }} | ||
<span class="post-tags"> | ||
{{ range .Params.tags }} | ||
#<a href="{{ (urlize (printf "tags/%s/" . )) | absLangURL }}"> | ||
{{- . -}} | ||
</a> | ||
{{ end }} | ||
</span> | ||
{{ end }} | ||
|
||
{{ partial "cover.html" . }} | ||
|
||
<div class="post-content"> | ||
{{ if .Params.showFullContent }} | ||
{{ .Content }} | ||
{{ else if .Description }} | ||
<p>{{ .Description | markdownify }}</p> | ||
{{ else }} | ||
{{ .Summary }} | ||
{{ end }} | ||
</div> | ||
|
||
{{ if not .Params.showFullContent }} | ||
<div> | ||
<a class="read-more button inline" href="{{ .RelPermalink }}">{{ $.Site.Params.ReadMore }}</a> | ||
</div> | ||
{{ end }} | ||
</article> | ||
{{ end }} | ||
|
||
{{ partial "pagination.html" . }} | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{{- $pctx := . -}} | ||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} | ||
{{- $pages := slice -}} | ||
{{- if or $.IsHome $.IsSection -}} | ||
{{- $pages = $pctx.RegularPages -}} | ||
{{- else -}} | ||
{{- $pages = $pctx.Pages -}} | ||
{{- end -}} | ||
{{- $limit := .Site.Config.Services.RSS.Limit -}} | ||
{{- if ge $limit 1 -}} | ||
{{- $pages = $pages | first $limit -}} | ||
{{- end -}} | ||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} | ||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> | ||
<link>{{ .Permalink }}</link> | ||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description> | ||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }} | ||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }} | ||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }} | ||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }} | ||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }} | ||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} | ||
{{- with .OutputFormats.Get "RSS" -}} | ||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} | ||
{{- end -}} | ||
{{ range $pages }} | ||
<item> | ||
<title>{{ .Title }}</title> | ||
<link>{{ .Permalink }}</link> | ||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> | ||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} | ||
<guid>{{ .Permalink }}</guid> | ||
<description>{{ .Summary | html }}</description> | ||
<content>{{ .Content | html }}</content> | ||
</item> | ||
{{ end }} | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{{ define "main" }} | ||
<article class="post"> | ||
<h1 class="post-title"> | ||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> | ||
</h1> | ||
<div class="post-meta"> | ||
{{- if .Date -}} | ||
<time class="post-date"> | ||
{{- .Date.Format "2006-01-02" -}} | ||
{{- if $.Site.Params.showLastUpdated -}} | ||
[{{- or $.Site.Params.updatedDatePrefix "Updated" -}} :: {{- .Lastmod.Format "2006-01-02" -}}] | ||
{{- end -}} | ||
</time> | ||
{{- end -}} | ||
{{- with .Params.Author -}} | ||
<span class="post-author">{{ . }}</span> | ||
{{- end -}} | ||
{{- if and (.Param "readingTime") (eq (.Param "readingTime") true) -}} | ||
<span class="post-reading-time">{{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }} ({{ .WordCount }} {{ $.Site.Params.words | default "words" }})</span> | ||
{{- end -}} | ||
</div> | ||
|
||
{{ if .Params.tags }} | ||
<span class="post-tags"> | ||
{{ range .Params.tags }} | ||
#<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a> | ||
{{ end }} | ||
</span> | ||
{{ end }} | ||
{{ partial "cover.html" . }} | ||
|
||
{{ if (.Params.Toc | default .Site.Params.Toc) }} | ||
<div class="table-of-contents"> | ||
<h2> | ||
{{ (.Params.TocTitle | default .Site.Params.TocTitle) | default "Table of Contents" }} | ||
</h2> | ||
{{ .TableOfContents }} | ||
</div> | ||
{{ end }} | ||
|
||
<div class="post-content"> | ||
{{- with .Content -}} | ||
<div> | ||
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor">#</a> ${3}` | safeHTML }} | ||
</div> | ||
{{- end -}} | ||
</div> | ||
|
||
{{ if eq .Type $.Site.Params.contentTypeName }} | ||
{{ partial "posts_pagination.html" . }} | ||
{{ end }} | ||
|
||
{{ if not (.Params.hideComments | default false) }} | ||
{{ partial "comments.html" . }} | ||
{{ end }} | ||
</article> | ||
{{ end }} |
Oops, something went wrong.