Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bjacquemet/personal-web.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Jacquemet <baptiste.jacquemet@gmail.com>2021-09-22 19:39:24 +0300
committerBaptiste Jacquemet <baptiste.jacquemet@gmail.com>2021-09-22 19:39:24 +0300
commitc786d93d5cb2f1f49a1ccff81ad5b35c6e65bc53 (patch)
tree359f24ade310c599e530ced9c27199b26f5bf6c9
parentea15d7a3ed052ee3bb287abb7121dcc24e1c7e10 (diff)
parent6342d28f798bff7c434270ec1e2d9d3686cafe03 (diff)
Merge branch 'master' of https://github.com/bjacquemet/personal-web
-rw-r--r--.gitignore1
-rw-r--r--exampleSite/config.toml3
-rw-r--r--exampleSite/content/post/config-file.md11
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/svg.html2
5 files changed, 18 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..496ee2c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.DS_Store \ No newline at end of file
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 915c676..ffbe5ca 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -13,6 +13,9 @@ pygmentsCodeFences=true
main = "Hi, I'm Edna :wave:"
sub = "I'm a Web Developer and Entrepreneur"
+[params.main]
+ latestPublishHeader = "My Latest Project"
+
[taxonomies]
design = "designs"
tech = "techs"
diff --git a/exampleSite/content/post/config-file.md b/exampleSite/content/post/config-file.md
index 765d3cf..84defb7 100644
--- a/exampleSite/content/post/config-file.md
+++ b/exampleSite/content/post/config-file.md
@@ -27,6 +27,9 @@ pygmentsCodeFences=true
main = "Hi, I'm Edna :wave:"
sub = "I'm a Web Developer and Entrepreneur"
+[params.main]
+ latestPublishHeader = "My Latest Project"
+
[taxonomies]
design = "designs"
tech = "techs"
@@ -191,4 +194,12 @@ In this last section, the email expects your email address and the text is what
[params.contact]
email = ""
text= ""
+```
+
+## Latest Publication
+You can define the name of the latest publication header on the home page with the param `latestPublishHeader`.
+
+```TOML
+[params.main]
+ latestPublishHeader = "My Latest Project"
``` \ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
index bbca958..cdcc3c6 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -3,7 +3,7 @@
<h1>{{ .Title | markdownify }}</h1>
{{ .Content }}
-<h2>My Latest Job</h2>
+<h2>{{ .Site.Params.main.latestPublishHeader | default "My Latest Job" }}</h2>
{{ $pages := where site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ range first 1 $pages }}
{{ if in .Site.Params.mainSections "portfolio" }}
diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html
index 3a52c54..008aa97 100644
--- a/layouts/partials/svg.html
+++ b/layouts/partials/svg.html
@@ -28,6 +28,8 @@
<path d="M50.489 102.345a4.57 4.57 0 1 1-4.57-4.57 4.58 4.58 0 0 1 4.57 4.57zm23.819-4.595a4.57 4.57 0 1 0 4.57 4.57 4.58 4.58 0 0 0-4.57-4.57zm36.528-9.241c0 9.985-1.951 18.97-5.699 26.44H98.13c6.033-9.934 7.83-24.335 5.75-34.475-4.133 7.573-13.374 9.909-22.05 7.393-32.806-9.626-49.414 5.057-60.22 12.912l4.85-15.222-10.242 10.858a44.488 44.488 0 0 0 8.01 18.56h-7.39a50.638 50.638 0 0 1-5.7-13.17l-6.109 6.47c0-19.227-1.412-37.889 15.787-55.242a54.078 54.078 0 0 1 17.738-11.987c-1.746-3.466-2.439-7.496-2.003-11.808l-5.11-.308a8.389 8.389 0 0 1-7.855-8.83v-.026l.41-6.726a8.407 8.407 0 0 1 8.343-7.855c.334 0-.077-.025 7.239.437a8.214 8.214 0 0 1 5.853 2.926c1.825-2.67 3.722-5.262 6.317-8.856l5.288 3.106c-3.491 7.444-2.336 9.292-2.31 9.318 1 0 3.568-.128 8.316 1.463a19.558 19.558 0 0 1 11.834 26.26c4.877 1.566 13.169 5.109 21.152 13.297 9.395 9.652 14.811 22.435 14.811 35.065h-.002zm-72.979-65.38a41.677 41.677 0 0 1 3.363-7.548c.025-.513.564-3.362-2.003-3.542-7.315-.462-6.75-.41-6.853-.41a2.2 2.2 0 0 0-2.208 2.079l-.41 6.725a2.228 2.228 0 0 0 2.079 2.336l6.032.36zm6.623 15.863a13.425 13.425 0 0 0 5.724 5.134c0-5.442 7.316-10.755 13.554-4.492l2.156 2.644c5.34-4.826 4.98-11.628 3.106-15.633-3.542-7.47-12.04-8.214-13.939-8.137a6.222 6.222 0 0 1-6.083-3.928c-3.515 5.442-9.547 16.044-4.516 24.412h-.002zM65.76 56.55l-5.057 4.133a1.145 1.145 0 0 0-.154 1.617l2.285 2.798a1.15 1.15 0 0 0 1.617.154l5.031-4.107 1.412 1.746c1.258 1.54 3.542-.36 2.31-1.874C56.878 40.917 62.551 47.9 59.01 43.536c-1.207-1.54-3.568.36-2.31 1.874.487.59 4.723 5.8 5.082 6.237l-2.464 2.028c-1.181.976.667 3.414 1.9 2.413l2.49-2.053 2.053 2.515zm30.395 6.597C91.817 57.064 85.22 51.16 77.314 47.643a54.73 54.73 0 0 0-5.879-2.208c-.509.57-1.058 1.101-1.642 1.592l8.188 10.062a7.652 7.652 0 0 1-1.078 10.756c-.334.282-3.363 2.747-7.444 1.258-.745.59-2.593 2.541-5.699 2.541a7.295 7.295 0 0 1-5.673-2.695l-2.284-2.798a7.321 7.321 0 0 1-1.284-6.88 7.331 7.331 0 0 1-1.18-7.7c-1.849-.334-6.854-1.592-10.962-5.494-14.323 5.314-22.589 16.531-26.003 23.41-3.825 7.753-4.826 15.634-5.108 23.155 2.105-2.234-1.001 1.052 29.263-31.035l-7.675 24.027c14.837-7.983 31.83-9.241 50.672-3.697 6.058 1.772 11.577.411 14.375-3.568 2.85-4.004 2.182-9.677-1.746-15.222zm-62.762-43.87l4.004.258.257-4.005-4.004-.257-.257 4.005z" />
{{ else if eq .iconName "stackoverflow" }}
<path d="M83.108 71.618L32.873 61.017l-2.105 10.088 50.235 10.524 2.105-10.01zM96.2 49.286L56.797 16.352l-6.546 7.906 39.403 32.934 6.546-7.906zm-8.01 10.19L41.653 37.735l-4.287 9.37 46.513 21.69 4.313-9.317zM75.742 0l-8.214 6.16L98.15 47.31l8.214-6.162L75.741 0zm5.262 84.196H29.664v10.191h51.34v-10.19zm10.191 20.536H19.448V73.93H9.18V115h92.282V73.929H91.194v30.803z" />
+ {{ else if eq .iconName "twitch" }}
+ <path d="M 87.860455,23.24033 H 79.18379 v 24.63965 h 8.676665 z M 64.013673,23.13477 h -8.67666 v 24.65087 h 8.67666 z M 27.139552,0 5.460255,20.53379 V 94.46621 H 31.476759 V 115 L 53.158302,94.46621 H 70.509376 L 109.53974,57.5 V 0 Z M 100.86534,53.40088 83.520995,69.82432 H 66.172169 l -15.183594,14.375 v -14.375 H 31.476759 V 8.21621 h 69.388581 z"/>
{{ else if eq .iconName "pencil" }}
<path d="M111.833 31.901l-10.355 10.355a2.698 2.698 0 0 1-3.819 0L72.727 17.324a2.698 2.698 0 0 1 0-3.819L83.082 3.15c4.2-4.2 11.028-4.2 15.251 0l13.5 13.5c4.223 4.2 4.223 11.029 0 15.251zm-48.001-9.5L4.846 81.384.085 108.676c-.652 3.684 2.56 6.873 6.244 6.244l27.291-4.784 58.985-58.985a2.698 2.698 0 0 0 0-3.818L67.673 22.4c-1.079-1.056-2.786-1.056-3.841 0zM27.87 76.33a3.132 3.132 0 0 1 0-4.448l34.591-34.59a3.132 3.132 0 0 1 4.448 0 3.132 3.132 0 0 1 0 4.447L32.317 76.33a3.132 3.132 0 0 1-4.447 0zm-8.109 18.89h10.782v8.154l-14.488 2.538-6.986-6.985 2.539-14.488h8.153V95.22z"/>
{{ else if eq .iconName "hyperlink" }}