-
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
Showing
15 changed files
with
311 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,49 @@ | ||
{{- $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> | ||
<language>{{ site.LanguageCode }}</language>{{ with .Site.Params.Author.email }} | ||
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }} | ||
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}} | ||
{{ if .Site.Params.footer.showCopyright | default true -}} | ||
<copyright>{{ with replace .Site.Params.copyright "{ year }" now.Year }}{{.}}{{ else }}© {{ now.Format "2006" }} {{ .Site.Params.Author.name }}{{- end }}</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 | plainify }}</title> | ||
<link>{{ .Permalink }}</link> | ||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> | ||
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}} | ||
<guid>{{ .Permalink }}</guid> | ||
<description>{{ .Summary | html }}</description> | ||
{{ range ( where .Site.RegularPages ".RelPermalink" .RelPermalink | first 1 ) }} | ||
{{- $images := .Resources.ByType "image" -}} | ||
{{- $featured := $images.GetMatch "*feature*" -}} | ||
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} | ||
{{- with $featured -}} | ||
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="{{ $featured.Permalink }}" /> | ||
{{- end -}} | ||
{{ end }} | ||
</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,101 @@ | ||
{{ $constrainItemsWidth := .Page.Site.Params.list.constrainItemsWidth | default false }} | ||
|
||
{{ $articleClasses := "flex flex-wrap article" }} | ||
{{ if .Site.Params.list.showCards }} | ||
{{ $articleClasses = delimit (slice $articleClasses "border border-neutral-200 dark:border-neutral-700 border-2 rounded-md overflow-hidden") " " }} | ||
{{ else }} | ||
{{ $articleClasses = delimit (slice $articleClasses "") " " }} | ||
{{ end }} | ||
|
||
{{ $articleImageClasses := "w-full md:w-auto h-full thumbnail nozoom" }} | ||
{{ if .Site.Params.list.showCards }} | ||
{{ $articleImageClasses = delimit (slice $articleImageClasses "") " " }} | ||
{{ else }} | ||
{{ $articleImageClasses = delimit (slice $articleImageClasses "thumbnailshadow md:mr-7") " " }} | ||
{{ end }} | ||
|
||
{{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }} | ||
|
||
{{ $articleInnerClasses := "" }} | ||
{{ if .Site.Params.list.showCards }} | ||
{{ $articleInnerClasses = delimit (slice $articleInnerClasses "p-4") " " }} | ||
{{ else }} | ||
{{ $articleInnerClasses = delimit (slice $articleInnerClasses "mt-3 md:mt-0") " " }} | ||
{{ end }} | ||
|
||
{{ if $constrainItemsWidth }} | ||
{{ $articleClasses = delimit (slice $articleClasses "max-w-prose") " " }} | ||
{{ end }} | ||
|
||
|
||
{{ with .Params.externalUrl }} | ||
<a class="{{ $articleClasses }}" href="{{ . }}" target="_blank" rel="external"> | ||
{{ else }} | ||
<a class="{{ $articleClasses }}" href="{{ .RelPermalink }}"> | ||
{{ end }} | ||
{{- with $.Params.images -}} | ||
{{- range first 6 . }} | ||
<meta property="og:image" content="{{ . | absURL }}" />{{ end -}} | ||
{{- else -}} | ||
{{- $images := $.Resources.ByType "image" -}} | ||
{{- $featured := $images.GetMatch "*feature*" -}} | ||
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} | ||
{{ if and .Params.featureimage (not $featured) }} | ||
{{- $url:= .Params.featureimage -}} | ||
{{ $featured = resources.GetRemote $url }} | ||
{{ end }} | ||
{{- if not $featured }}{{ with .Site.Params.defaultFeaturedImage }}{{ $featured = resources.Get . }}{{ end }}{{ end -}} | ||
{{ if .Params.hideFeatureImage }}{{ $featured = false }}{{ end }} | ||
{{- with $featured -}} | ||
{{ if or $disableImageOptimization (strings.HasSuffix $featured ".svg")}} | ||
{{ with . }} | ||
<div class="{{ $articleImageClasses }}" style="background-image:url({{ .RelPermalink }});"></div> | ||
{{ end }} | ||
{{ else }} | ||
{{ with .Resize "600x" }} | ||
<div class="{{ $articleImageClasses }}" style="background-image:url({{ .RelPermalink }});"></div> | ||
{{ end }} | ||
{{ end }} | ||
{{- else -}} | ||
{{- with $.Site.Params.images }} | ||
<meta property="og:image" content="{{ index . 0 | absURL }}" />{{ end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
|
||
<div class="{{ $articleInnerClasses }}"> | ||
<div class="items-center text-left text-xl font-semibold"> | ||
{{ with .Params.externalUrl }} | ||
<div> | ||
<div | ||
class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"> | ||
{{ $.Title | emojify }} | ||
<span class="text-xs align-top cursor-default text-neutral-400 dark:text-neutral-500"> | ||
<span class="rtl:hidden">↗</span> | ||
<span class="ltr:hidden">↖</span> | ||
</span> | ||
</div> | ||
</div> | ||
{{ else }} | ||
<div class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral" | ||
href="{{ .RelPermalink }}">{{ .Title | emojify }}</div> | ||
{{ end }} | ||
{{ if and .Draft .Site.Params.article.showDraftLabel }} | ||
<div class=" ltr:ml-2 rtl:mr-2"> | ||
{{ partial "badge.html" (i18n "article.draft" | emojify) }} | ||
</div> | ||
{{ end }} | ||
{{ if templates.Exists "partials/extend-article-link.html" }} | ||
{{ partial "extend-article-link.html" . }} | ||
{{ end }} | ||
</div> | ||
<div class="text-sm text-neutral-500 dark:text-neutral-400"> | ||
{{ partial "article-meta/basic.html" . }} | ||
</div> | ||
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }} | ||
<div class="py-1 max-w-fit prose dark:prose-invert"> | ||
{{ .Summary | plainify }} | ||
</div> | ||
{{ end }} | ||
</div> | ||
</a> |
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,156 @@ | ||
<head> | ||
<meta charset="utf-8" /> | ||
{{ with .Site.Language.Params.htmlCode | default .Site.LanguageCode }} | ||
<meta http-equiv="content-language" content="{{ . }}" /> | ||
{{ end }} | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
{{/* Title */}} | ||
{{ if .IsHome -}} | ||
<title>{{ .Site.Title | emojify }}</title> | ||
<meta name="title" content="{{ .Site.Title | emojify }}" /> | ||
{{- else -}} | ||
<title>{{ .Title | emojify | plainify }} · {{ .Site.Title | emojify }}</title> | ||
<meta name="title" content="{{ .Title | emojify }} · {{ .Site.Title | emojify }}" /> | ||
{{- end }} | ||
{{/* Metadata */}} | ||
{{ with (.Params.Summary | default .Params.Description) | default .Site.Params.description -}} | ||
<meta name="description" content="{{ . }}" /> | ||
{{- end }} | ||
{{ with .Params.Tags | default .Site.Params.keywords -}} | ||
<meta name="keywords" content="{{ range . }}{{ . }}, {{ end -}}" /> | ||
{{- end }} | ||
{{ with .Site.Params.robots }} | ||
<meta name="robots" content="{{ . }}" /> | ||
{{ end }} | ||
{{ with .Params.robots }} | ||
<meta name="robots" content="{{ . }}" /> | ||
{{ end }} | ||
<link rel="canonical" href="{{ .Permalink }}" /> | ||
{{ range .AlternativeOutputFormats -}} | ||
{{ printf ` | ||
<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) | | ||
safeHTML }} | ||
{{ end -}} | ||
{{/* Asset bundles */}} | ||
{{ $assets := newScratch }} | ||
{{ $cssScheme := resources.Get (printf "css/schemes/%s.css" (.Site.Params.colorScheme | default "blowfish")) }} | ||
{{ if not $cssScheme }} | ||
{{ $cssScheme = resources.Get "css/schemes/blowfish.css" }} | ||
{{ end }} | ||
{{ $assets.Add "css" (slice $cssScheme) }} | ||
{{ $cssMain := resources.Get "css/compiled/main.css" }} | ||
{{ $assets.Add "css" (slice $cssMain) }} | ||
{{ $cssCustom := resources.Get "css/custom.css" }} | ||
{{ if $cssCustom }} | ||
{{ $assets.Add "css" (slice $cssCustom) }} | ||
{{ end }} | ||
{{ $bundleCSS := $assets.Get "css" | resources.Concat "css/main.bundle.css" | resources.Minify | resources.Fingerprint | ||
"sha512" }} | ||
<link type="text/css" rel="stylesheet" href="{{ $bundleCSS.RelPermalink }}" | ||
integrity="{{ $bundleCSS.Data.Integrity }}" /> | ||
{{ $jsAppearance := resources.Get "js/appearance.js" }} | ||
{{ $jsAppearance = $jsAppearance | resources.ExecuteAsTemplate "js/appearance.js" . | resources.Minify | resources.Fingerprint "sha512" }} | ||
<script type="text/javascript" src="{{ $jsAppearance.RelPermalink }}" | ||
integrity="{{ $jsAppearance.Data.Integrity }}"></script> | ||
{{ if .Site.Params.enableSearch | default false }} | ||
{{ $jsFuse := resources.Get "lib/fuse/fuse.min.js" }} | ||
{{ $jsSearch := resources.Get "js/search.js" }} | ||
{{ $assets.Add "js" (slice $jsFuse $jsSearch) }} | ||
{{ end }} | ||
{{ if .Site.Params.enableCodeCopy | default false }} | ||
{{ $jsCode := resources.Get "js/code.js" }} | ||
{{ $assets.Add "js" (slice $jsCode) }} | ||
{{ end }} | ||
{{ if .Site.Params.rtl | default false }} | ||
{{ $jsRTL := resources.Get "js/rtl.js" }} | ||
{{ $assets.Add "js" (slice $jsRTL) }} | ||
{{ end }} | ||
{{ $jsMobileMenu := resources.Get "js/mobilemenu.js" }} | ||
{{ $assets.Add "js" (slice $jsMobileMenu) }} | ||
{{ if $assets.Get "js" }} | ||
{{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint | ||
"sha512" }} | ||
<script defer type="text/javascript" id="script-bundle" src="{{ $bundleJS.RelPermalink }}" | ||
integrity="{{ $bundleJS.Data.Integrity }}" data-copy="{{ i18n " code.copy" }}" data-copied="{{ i18n " code.copied" | ||
}}"></script> | ||
{{ end }} | ||
{{ if not .Site.Params.disableImageZoom | default true }} | ||
{{ $zoomJS := resources.Get "lib/zoom/zoom.min.js" | resources.Fingerprint "sha512" }} | ||
<script src="{{ $zoomJS.RelPermalink }}" integrity="{{ $zoomJS.Data.Integrity }}"></script> | ||
{{ end }} | ||
{{/* Icons */}} | ||
{{ if templates.Exists "partials/favicons.html" }} | ||
{{ partialCached "favicons.html" .Site }} | ||
{{ else }} | ||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon-32x32.png" | relURL }}" /> | ||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon-16x16.png" | relURL }}" /> | ||
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}" /> | ||
{{ end }} | ||
{{/* Site Verification */}} | ||
{{ with .Site.Params.verification.google }} | ||
<meta name="google-site-verification" content="{{ . }}" /> | ||
{{ end }} | ||
{{ with .Site.Params.verification.bing }} | ||
<meta name="msvalidate.01" content="{{ . }}" /> | ||
{{ end }} | ||
{{ with .Site.Params.verification.pinterest }} | ||
<meta name="p:domain_verify" content="{{ . }}" /> | ||
{{ end }} | ||
{{ with .Site.Params.verification.yandex }} | ||
<meta name="yandex-verification" content="{{ . }}" /> | ||
{{ end }} | ||
{{ with .Site.Params.verification.fediverse }} | ||
<meta name="fediverse:creator" content="{{ . }}" /> | ||
{{ end }} | ||
{{/* Social */}} | ||
{{ template "_internal/opengraph.html" . }} | ||
{{ template "_internal/twitter_cards.html" . }} | ||
{{/* Schema */}} | ||
{{ partial "schema.html" . }} | ||
{{/* Me */}} | ||
{{ with .Site.Params.Author.name }} | ||
<meta name="author" content="{{ . }}" />{{ end }} | ||
{{ with .Site.Params.Author.links }} | ||
{{ range $links := . }} | ||
{{ range $name, $url := $links }} | ||
<link href="{{ $url }}" rel="me" />{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
{{/* Vendor */}} | ||
{{ partial "vendor.html" . }} | ||
{{/* Analytics */}} | ||
{{ partial "analytics/main.html" .Site }} | ||
{{/* Extend head - eg. for custom analytics scripts, etc. */}} | ||
{{ if templates.Exists "partials/extend-head.html" }} | ||
{{ partialCached "extend-head.html" .Site }} | ||
{{ end }} | ||
<meta name="theme-color"/> | ||
{{/* Firebase */}} | ||
{{ with $.Site.Params.firebase }} | ||
{{ if isset $.Site.Params "firebase" }} | ||
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script> | ||
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script> | ||
<script> | ||
|
||
const firebaseConfig = { | ||
apiKey: {{ $.Site.Params.firebase.apiKey }}, | ||
authDomain: {{ $.Site.Params.firebase.apiKey }}, | ||
projectId: {{ $.Site.Params.firebase.projectId }}, | ||
storageBucket: {{ $.Site.Params.firebase.storageBucket }}, | ||
messagingSenderId: {{ $.Site.Params.firebase.messagingSenderId }}, | ||
appId: {{ $.Site.Params.firebase.appId }}, | ||
measurementId: {{ $.Site.Params.firebase.measurementId }} | ||
}; | ||
|
||
var app = firebase.initializeApp(firebaseConfig); | ||
var db = firebase.firestore(); | ||
var auth = firebase.auth(); | ||
|
||
</script> | ||
{{ end }} | ||
{{ end }} | ||
</head> | ||
|
Binary file added
BIN
+32.5 KB
...ages/en/posts/ebpf-and-security/featured-ebpf-sec.en_hu18354968434215712794.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
BIN
+35.6 KB
...sts/threat-modeling-intro/featured-threat-modeling.en_hu9477012585518633517.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
BIN
+33.6 KB
...gen/images/posts/ebpf-and-security/featured-ebpf-sec_hu10043849633404913667.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
BIN
+36.1 KB
...posts/threat-modeling-intro/featured-threat-modeling_hu10958698316963264200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.