diff --git a/config.yml b/config.yml index 7e3edfa..fd7651d 100644 --- a/config.yml +++ b/config.yml @@ -44,9 +44,11 @@ params: hideSummary: false showtoc: false tocopen: false + #disableSpecial1stPost: true homeInfoParams: - Title: Hi, I'm Morgan. - Content: Student Developer + Title: Hi, I'm Morgan. + Content: Student Developer + homeInfoParamSimple: true socialIcons: - name: github diff --git a/themes/mytheme/assets/css/common/main.css b/themes/mytheme/assets/css/common/main.css index ce67ccf..2515f53 100644 --- a/themes/mytheme/assets/css/common/main.css +++ b/themes/mytheme/assets/css/common/main.css @@ -71,3 +71,10 @@ div.highlight:hover .copy-code, pre:hover .copy-code { display: block; } + +.simpletitle { + padding: var(--gap); + font-size: 24px; + margin: 24px 4px 28px 4px; + text-align: center; +} \ No newline at end of file diff --git a/themes/mytheme/layouts/partials/home_info.html b/themes/mytheme/layouts/partials/home_info.html index efae956..0f7a070 100644 --- a/themes/mytheme/layouts/partials/home_info.html +++ b/themes/mytheme/layouts/partials/home_info.html @@ -1,13 +1,17 @@ -{{- with site.Params.homeInfoParams }} -
-
-

{{ .Title | markdownify }}

-
-
- {{ .Content | markdownify }} -
- -
-{{- end -}} +{{- if site.Params.homeInfoParamSimple }} +
{{ .Title | markdownify }}
+{{- else }} + {{- with site.Params.homeInfoParams }} +
+
+

{{ .Title | markdownify }}

+
+
+ {{ .Content | markdownify }} +
+ +
+ {{- end -}} +{{- end }} \ No newline at end of file