From 5f7b9aafb459dc8eb782cbccde12c06583d110ab Mon Sep 17 00:00:00 2001 From: zzossig Date: Thu, 6 Feb 2020 02:23:27 +0900 Subject: [PATCH] publication page completed --- archetypes/{pt.md => presentation.md} | 2 +- archetypes/publication.md | 6 + assets/js/fuzzysort.min.js | 8 ++ assets/sass/abstracts/_functions.scss | 17 --- assets/sass/components/_breadcrumb.scss | 1 + assets/sass/components/_button.scss | 16 +++ assets/sass/components/_modal.scss | 43 ++++++ assets/sass/components/_pagination.scss | 1 - assets/sass/components/_related.scss | 4 +- assets/sass/main.scss | 3 +- assets/sass/pages/_publication.scss | 53 +++++++ assets/sass/pages/_showcase.scss | 4 +- assets/sass/pages/_single.scss | 12 ++ exampleSite/config/_default/config.toml | 1 + exampleSite/config/_default/languages.toml | 2 + exampleSite/config/_default/params.toml | 7 +- exampleSite/content/{ => en}/_index.md | 0 exampleSite/content/{ => en}/about/index.md | 0 .../content/{ => en}/archive/_index.md | 0 .../content/{ => en}/gallery/cartoon/index.md | 0 .../content/{ => en}/gallery/photo/index.md | 0 exampleSite/content/{ => en}/posts/_index.md | 0 .../content/{ => en}/posts/emoji-support.md | 0 .../content/{ => en}/posts/markdown-syntax.md | 0 .../{ => en}/posts/math-typesetting.md | 0 .../content/{ => en}/posts/rich-content.md | 0 .../content/{ => en}/posts/shortcodes.md | 0 .../{ => en}/posts/syntax-highlight.md | 0 .../content/{ => en}/posts/test-chartjs.md | 0 .../content/{ => en}/posts/test-flowchart.md | 0 .../posts/test-js-sequence-diagrams.md | 0 .../content/{ => en}/posts/test-katex.md | 0 .../content/{ => en}/posts/test-mathjax.md | 0 .../content/{ => en}/posts/test-mermaid.md | 0 .../content/{ => en}/posts/test-viz.md | 0 .../content/{ => en}/posts/test-wavedrom.md | 0 exampleSite/content/{ => en}/pt/_index.md | 0 exampleSite/content/{ => en}/pt/dir/fourth.md | 0 exampleSite/content/{ => en}/pt/first.md | 0 exampleSite/content/{ => en}/pt/second.md | 0 exampleSite/content/{ => en}/pt/third.md | 0 .../content/{ => en}/showcase/_index.md | 0 .../content/{ => en}/showcase/hugo/_index.md | 0 .../{ => en}/showcase/hugo/hugo-theme-zdoc.md | 20 +-- .../{ => en}/showcase/hugo/hugo-theme-zzo.md | 0 exampleSite/content/ko/_index.md | 96 +++++++++++++ .../content/{ => ko}/about/index.ko.md | 0 .../content/{ => ko}/archive/_index.ko.md | 0 .../{ => ko}/gallery/cartoon/index.ko.md | 0 .../{ => ko}/gallery/photo/index.ko.md | 0 .../content/{ => ko}/posts/_index.ko.md | 0 i18n/en.toml | 3 + i18n/fa.toml | 3 + i18n/ko.toml | 3 + i18n/zh.toml | 3 + layouts/_default/list.json.json | 22 +++ layouts/partials/head/scripts.html | 46 +----- .../pagination/pagination-single.html | 24 ++-- layouts/partials/publication/pub-links.html | 38 +++++ layouts/partials/publication/pub-list.html | 34 +++++ layouts/partials/publication/pub-meta.html | 1 + layouts/partials/publication/pub-toolbar.html | 18 +++ layouts/partials/script/pub-list-script.html | 132 ++++++++++++++++++ .../partials/script/pub-single-script.html | 30 ++++ layouts/{pt => presentation}/single.html | 0 layouts/publication/list.html | 15 ++ layouts/publication/single.html | 43 ++++++ 67 files changed, 620 insertions(+), 91 deletions(-) rename archetypes/{pt.md => presentation.md} (98%) create mode 100644 archetypes/publication.md create mode 100644 assets/js/fuzzysort.min.js create mode 100644 assets/sass/pages/_publication.scss rename exampleSite/content/{ => en}/_index.md (100%) rename exampleSite/content/{ => en}/about/index.md (100%) rename exampleSite/content/{ => en}/archive/_index.md (100%) rename exampleSite/content/{ => en}/gallery/cartoon/index.md (100%) rename exampleSite/content/{ => en}/gallery/photo/index.md (100%) rename exampleSite/content/{ => en}/posts/_index.md (100%) rename exampleSite/content/{ => en}/posts/emoji-support.md (100%) rename exampleSite/content/{ => en}/posts/markdown-syntax.md (100%) rename exampleSite/content/{ => en}/posts/math-typesetting.md (100%) rename exampleSite/content/{ => en}/posts/rich-content.md (100%) rename exampleSite/content/{ => en}/posts/shortcodes.md (100%) rename exampleSite/content/{ => en}/posts/syntax-highlight.md (100%) rename exampleSite/content/{ => en}/posts/test-chartjs.md (100%) rename exampleSite/content/{ => en}/posts/test-flowchart.md (100%) rename exampleSite/content/{ => en}/posts/test-js-sequence-diagrams.md (100%) rename exampleSite/content/{ => en}/posts/test-katex.md (100%) rename exampleSite/content/{ => en}/posts/test-mathjax.md (100%) rename exampleSite/content/{ => en}/posts/test-mermaid.md (100%) rename exampleSite/content/{ => en}/posts/test-viz.md (100%) rename exampleSite/content/{ => en}/posts/test-wavedrom.md (100%) rename exampleSite/content/{ => en}/pt/_index.md (100%) rename exampleSite/content/{ => en}/pt/dir/fourth.md (100%) rename exampleSite/content/{ => en}/pt/first.md (100%) rename exampleSite/content/{ => en}/pt/second.md (100%) rename exampleSite/content/{ => en}/pt/third.md (100%) rename exampleSite/content/{ => en}/showcase/_index.md (100%) rename exampleSite/content/{ => en}/showcase/hugo/_index.md (100%) rename exampleSite/content/{ => en}/showcase/hugo/hugo-theme-zdoc.md (96%) rename exampleSite/content/{ => en}/showcase/hugo/hugo-theme-zzo.md (100%) create mode 100644 exampleSite/content/ko/_index.md rename exampleSite/content/{ => ko}/about/index.ko.md (100%) rename exampleSite/content/{ => ko}/archive/_index.ko.md (100%) rename exampleSite/content/{ => ko}/gallery/cartoon/index.ko.md (100%) rename exampleSite/content/{ => ko}/gallery/photo/index.ko.md (100%) rename exampleSite/content/{ => ko}/posts/_index.ko.md (100%) create mode 100644 layouts/_default/list.json.json create mode 100644 layouts/partials/publication/pub-links.html create mode 100644 layouts/partials/publication/pub-list.html create mode 100644 layouts/partials/publication/pub-meta.html create mode 100644 layouts/partials/publication/pub-toolbar.html create mode 100644 layouts/partials/script/pub-list-script.html create mode 100644 layouts/partials/script/pub-single-script.html rename layouts/{pt => presentation}/single.html (100%) create mode 100644 layouts/publication/list.html create mode 100644 layouts/publication/single.html diff --git a/archetypes/pt.md b/archetypes/presentation.md similarity index 98% rename from archetypes/pt.md rename to archetypes/presentation.md index 2dd389e..e20aa05 100644 --- a/archetypes/pt.md +++ b/archetypes/presentation.md @@ -2,7 +2,7 @@ title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} description: -type: pt +type: presentation tags: - series: diff --git a/archetypes/publication.md b/archetypes/publication.md new file mode 100644 index 0000000..669effa --- /dev/null +++ b/archetypes/publication.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +description: +type: publication +--- diff --git a/assets/js/fuzzysort.min.js b/assets/js/fuzzysort.min.js new file mode 100644 index 0000000..ce07a85 --- /dev/null +++ b/assets/js/fuzzysort.min.js @@ -0,0 +1,8 @@ +/** + * Minified by jsDelivr using UglifyJS v3.4.4. + * Original file: /npm/fuzzysort@1.1.4/fuzzysort.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +!function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof module&&module.exports?module.exports=r():e.fuzzysort=r()}(this,function(){var P="undefined"!=typeof require&&"undefined"==typeof window,n=new Map,o=new Map,j=[];j.total=0;var m=[],T=[];function r(){n.clear(),o.clear(),m=[],T=[]}function N(e){for(var r=-9007199254740991,n=e.length-1;0<=n;--n){var o=e[n];if(null!==o){var t=o.score;r>1]=i[e],n=1+(e<<1)}for(var t=e-1>>1;0>1)i[e]=i[t];i[e]=r}return e.add=function(e){var r=a;i[a++]=e;for(var n=r-1>>1;0>1)i[r]=i[n];i[r]=e},e.poll=function(){if(0!==a){var e=i[0];return i[0]=i[--a],r(),e}},e.peek=function(e){if(0!==a)return i[0]},e.replaceTop=function(e){i[0]=e,r()},e},k=t();return function e(A){var L={single:function(e,r,n){return e?(D(e)||(e=L.getPreparedSearch(e)),r?(D(r)||(r=L.getPrepared(r)),((n&&void 0!==n.allowTypo?n.allowTypo:!A||void 0===A.allowTypo||A.allowTypo)?L.algorithm:L.algorithmNoTypo)(e,r,e[0])):null):null},go:function(e,r,n){if(!e)return j;var o=(e=L.prepareSearch(e))[0],t=n&&n.threshold||A&&A.threshold||-9007199254740991,i=n&&n.limit||A&&A.limit||9007199254740991,a=(n&&void 0!==n.allowTypo?n.allowTypo:!A||void 0===A.allowTypo||A.allowTypo)?L.algorithm:L.algorithmNoTypo,l=0,f=0,u=r.length;if(n&&n.keys)for(var s=n.scoreFn||N,p=n.keys,d=p.length,c=u-1;0<=c;--c){for(var g=r[c],v=new Array(d),h=d-1;0<=h;--h)(y=S(g,x=p[h]))?(D(y)||(y=L.getPrepared(y)),v[h]=a(e,y,o)):v[h]=null;v.obj=g;var w=s(v);null!==w&&(wk.peek().score&&k.replaceTop(v))))}else if(n&&n.key){var x=n.key;for(c=u-1;0<=c;--c)(y=S(g=r[c],x))&&(D(y)||(y=L.getPrepared(y)),null!==(m=a(e,y,o))&&(m.scorek.peek().score&&k.replaceTop(m)))))}else for(c=u-1;0<=c;--c){var y,m;(y=r[c])&&(D(y)||(y=L.getPrepared(y)),null!==(m=a(e,y,o))&&(m.scorek.peek().score&&k.replaceTop(m)))))}if(0===l)return j;var T=new Array(l);for(c=l-1;0<=c;--c)T[c]=k.poll();return T.total=l+f,T},goAsync:function(I,B,_){var C=!1,e=new Promise(function(c,g){if(!I)return c(j);var v=(I=L.prepareSearch(I))[0],h=t(),w=B.length-1,x=_&&_.threshold||A&&A.threshold||-9007199254740991,y=_&&_.limit||A&&A.limit||9007199254740991,m=(_&&void 0!==_.allowTypo?_.allowTypo:!A||void 0===A.allowTypo||A.allowTypo)?L.algorithm:L.algorithmNoTypo,T=0,k=0;function b(){if(C)return g("canceled");var e=Date.now();if(_&&_.keys)for(var r=_.scoreFn||N,n=_.keys,o=n.length;0<=w;--w){for(var t=B[w],i=new Array(o),a=o-1;0<=a;--a)(u=S(t,f=n[a]))?(D(u)||(u=L.getPrepared(u)),i[a]=m(I,u,v)):i[a]=null;i.obj=t;var l=r(i);if(null!==l&&!(lh.peek().score&&h.replaceTop(i)),w%1e3==0&&10<=Date.now()-e))return void(P?setImmediate(b):setTimeout(b))}else if(_&&_.key){for(var f=_.key;0<=w;--w)if((u=S(t=B[w],f))&&(D(u)||(u=L.getPrepared(u)),null!==(s=m(I,u,v))&&!(s.scoreh.peek().score&&h.replaceTop(s)),w%1e3==0&&10<=Date.now()-e)))return void(P?setImmediate(b):setTimeout(b))}else for(;0<=w;--w){var u,s;if((u=B[w])&&(D(u)||(u=L.getPrepared(u)),null!==(s=m(I,u,v))&&!(s.scoreh.peek().score&&h.replaceTop(s)),w%1e3==0&&10<=Date.now()-e)))return void(P?setImmediate(b):setTimeout(b))}if(0===T)return c(j);for(var p=new Array(T),d=T-1;0<=d;--d)p[d]=h.poll();p.total=T+k,c(p)}P?setImmediate(b):b()});return e.cancel=function(){C=!0},e},highlight:function(e,r,n){if(null===e)return null;void 0===r&&(r=""),void 0===n&&(n="");for(var o="",t=0,i=!1,a=e.target,l=a.length,f=e.indexes,u=0;u