Source code for website arcusiridis.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
5.8 KiB

5 years ago
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>{{- .Title -}}</title>
  7. {{- $desc := "" -}}
  8. {{- with $.Site.Params.description -}}{{- $desc = . -}}{{- end -}}
  9. {{- with .Summary -}}{{- $desc = . -}}{{- end -}}
  10. {{- with $.Params.description -}}{{- $desc = . -}}{{- end -}}
  11. {{- with $desc -}}
  12. <meta name="description" itemprop="description" content="{{ replace $desc "\n" " " }}" id="desc">
  13. {{- end -}}
  14. {{ .Hugo.Generator }}
  15. {{- if .RSSLink -}}<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }} Feed" href="{{ .RSSLink }}">{{ end }}
  16. {{- if .Params.tags -}}
  17. <meta name="keywords" itemprop="keywords" content="{{ delimit .Params.tags "," }}" id="keywords">
  18. {{- end -}}
  19. <link rel="canonical" href="{{ .Permalink }}">
  20. {{ partial "head.html" . }}
  21. </head>
  22. <body itemscope itemtype="http://schema.org/WebPage">
  23. {{ if $.Site.Menus.main -}}
  24. <div class="off-canvas-wrapper">
  25. <button id="off-canvas-toggle" type="button" class="button hide-for-medium" aria-label="Open Menu" data-toggle="main-nav-off-canvas">
  26. <span class="fas fa-bars"></span>
  27. </button>
  28. <div class="off-canvas position-left" id="main-nav-off-canvas" data-off-canvas>
  29. <nav>
  30. <ul class="vertical menu drilldown" data-drilldown>
  31. {{- partial "nested_menu.html" (dict "menu" .Site.Menus.main "page" . "root" $) . -}}
  32. </ul>
  33. </nav>
  34. </div>
  35. {{ end -}}
  36. <div id="site-container" class="grid-container full off-canvas-content">
  37. <div class="grid-x full grid-container data-off-canvas-content">
  38. <div id="site-header" class="cell">
  39. <a href="{{ partial "make_link" (dict "URL" "/" "Root" $) }}">
  40. <header class="small-text-{{ if $.Site.Params.thumbnail }}left{{ else }}center{{ end }} medium-text-left grid-x">
  41. {{ with $.Site.Params.thumbnail -}}
  42. {{- $thmb := resources.Get . -}}
  43. {{- if ne $thmb.ResourceType "image" -}}
  44. {{- errorf "Resource %s is not an image" . -}}
  45. {{- end -}}
  46. {{- /* 93px is the max-width/height of the thumbnail in rems times 1rem */ -}}
  47. {{- $width := 93 -}}
  48. {{- if eq "true" (partial "has_suffix" (dict "String" . "Suffixes" (slice "jpg" "jpeg" "png") "CaseSensitive" false)) -}}
  49. {{- if eq "true" (partial "has_suffix" (dict "String" . "Suffixes" (slice "jpg" "jpeg") "CaseSensitive" false)) -}}
  50. {{- $thmb = $thmb.Resize (printf "%dx%d" $thmb.Width $thmb.Height) -}}
  51. {{- end -}}
  52. {{- $width = (cond (gt 93 $thmb.Width) 93 $thmb.Width) -}}
  53. {{- end -}}
  54. <img id="site-thumbnail" class="cell shrink" src="{{ partial "make_link" (dict "URL" $thmb.RelPermalink "Root" $) }}" data-width="{{ $width }}">
  55. {{ end -}}
  56. <div id="site-title-container" class="cell shrink grid-y">
  57. <div id="site-title" class="cell shrink" itemprop="name">{{ .Site.Title }}</div>
  58. {{ with .Site.Params.tagline }}<div class="cell shrink" id="site-tagline">{{ . }}</div>{{ end }}
  59. </div>
  60. </header>
  61. </a>
  62. {{ if .Site.Menus.main -}}
  63. <nav id="main-nav" class="small-hide">
  64. <ul class="dropdown menu" data-dropdown-menu>
  65. {{- partial "nested_menu.html" (dict "menu" .Site.Menus.main "page" . "root" $) . -}}
  66. </ul>
  67. </nav>
  68. {{ end -}}
  69. </div>
  70. <div id="main-container" class="cell grid-x grid-padding-x grid-container" role="main" itemprop="mainContentOfPage">
  71. {{ with $.Site.Params.alert }}
  72. <div class="callout cell text-center">
  73. {{ . | markdownify }}
  74. </div>
  75. {{ end }}
  76. {{ $sbdisable := or .Site.Params.sidebar.disable .Params.sidebar.disable }}
  77. {{ $sbalign := default "right" (default .Site.Params.sidebar.align .Params.sidebar.align) }}
  78. {{ if and (not $sbdisable) (and (ne $sbalign "left") (ne $sbalign "right")) }}
  79. {{- errorf "\"%v\" is not a valid value for params.sidebar.align. Valid values are \"left\", \"right\", or \"\" (defaults to \"right\")" -}}
  80. {{ end }}
  81. {{ if and (not $sbdisable) (eq $sbalign "left") }}{{ partial "sidebar/sidebar.html" . }}{{ end }}
  82. {{ block "main_content" . }}{{ end }}
  83. {{ if and (not $sbdisable) (eq $sbalign "right") }}{{ partial "sidebar/sidebar.html" . }}{{ end }}
  84. </div>
  85. {{ partial "footer.html" . }}
  86. </div>
  87. </div>
  88. {{ partial "foot.html" . }}
  89. {{ if $.Site.Menus.main }}</div>{{ end }}
  90. <script>
  91. $(document).foundation();
  92. </script>
  93. </body>
  94. </html>