From 9a791a7a6b99259b3abe0d672a50dbc2a7af5583 Mon Sep 17 00:00:00 2001 From: tomoyanonymous Date: Wed, 29 Apr 2020 19:34:25 +0900 Subject: [PATCH] removed unused posts --- content/docs/about/index.md | 13 +- content/docs/example/_index.md | 71 ---- .../example/collapsed/3rd-level/4th-level.md | 12 - .../example/collapsed/3rd-level/_index.md | 26 -- content/docs/example/collapsed/_index.md | 23 -- content/docs/example/hidden.md | 52 --- .../docs/example/table-of-contents/_index.md | 85 ----- .../example/table-of-contents/with-toc.md | 64 ---- .../example/table-of-contents/without-toc.md | 59 --- content/docs/license/index.md | 2 + content/docs/shortcodes/_index.md | 3 - content/docs/shortcodes/buttons.md | 13 - content/docs/shortcodes/columns.md | 45 --- content/docs/shortcodes/expand.md | 35 -- content/docs/shortcodes/hints.md | 32 -- content/docs/shortcodes/katex.md | 37 -- content/docs/shortcodes/mermaid.md | 38 -- content/docs/shortcodes/tabs.md | 50 --- content/menu/index.md | 6 - content/posts/creating-a-new-theme.md | 1 + content/posts/goisforlovers.md | 344 ------------------ content/posts/hugoisforlovers.md | 89 ----- content/posts/migrate-from-jekyll.md | 156 -------- 23 files changed, 14 insertions(+), 1242 deletions(-) delete mode 100644 content/docs/example/_index.md delete mode 100644 content/docs/example/collapsed/3rd-level/4th-level.md delete mode 100644 content/docs/example/collapsed/3rd-level/_index.md delete mode 100644 content/docs/example/collapsed/_index.md delete mode 100644 content/docs/example/hidden.md delete mode 100644 content/docs/example/table-of-contents/_index.md delete mode 100644 content/docs/example/table-of-contents/with-toc.md delete mode 100644 content/docs/example/table-of-contents/without-toc.md delete mode 100644 content/docs/shortcodes/_index.md delete mode 100644 content/docs/shortcodes/buttons.md delete mode 100644 content/docs/shortcodes/columns.md delete mode 100644 content/docs/shortcodes/expand.md delete mode 100644 content/docs/shortcodes/hints.md delete mode 100644 content/docs/shortcodes/katex.md delete mode 100644 content/docs/shortcodes/mermaid.md delete mode 100644 content/docs/shortcodes/tabs.md delete mode 100644 content/menu/index.md delete mode 100644 content/posts/goisforlovers.md delete mode 100644 content/posts/hugoisforlovers.md delete mode 100644 content/posts/migrate-from-jekyll.md diff --git a/content/docs/about/index.md b/content/docs/about/index.md index cdf6542..8750677 100644 --- a/content/docs/about/index.md +++ b/content/docs/about/index.md @@ -1,8 +1,17 @@ --- title: About -weight: 1 +weight: 2 bookToc: false bookFlatSection: true --- -このWebサイトは松浦知也の授業資料の置き場です。 \ No newline at end of file +# About this Website + +このWebサイトは松浦知也の授業資料の置き場です。 + +公開されている資料は全てクリエイティブ・コモンズ 表示 - 非営利 - 継承 4.0 国際 ライセンスで利用することが可能です。 + +質問などがある場合は、teach\[at\]matsuuratomoya.com までメールで連絡をお願いします。 + + +[松浦知也 個人Webサイト](https://matsuuratomoya.com) \ No newline at end of file diff --git a/content/docs/example/_index.md b/content/docs/example/_index.md deleted file mode 100644 index 4835b7c..0000000 --- a/content/docs/example/_index.md +++ /dev/null @@ -1,71 +0,0 @@ ---- -weight: 1 -bookFlatSection: true -title: "Example Site" ---- - -# Introduction - -## Ferre hinnitibus erat accipitrem dixi Troiae tollens - -Lorem markdownum, a quoque nutu est *quodcumque mandasset* veluti. Passim -inportuna totidemque nympha fert; repetens pendent, poenarum guttura sed vacet -non, mortali undas. Omnis pharetramque gramen portentificisque membris servatum -novabis fallit de nubibus atque silvas mihi. **Dixit repetitaque Quid**; verrit -longa; sententia [mandat](http://pastor-ad.io/questussilvas) quascumque nescio -solebat [litore](http://lacrimas-ab.net/); noctes. *Hostem haerentem* circuit -[plenaque tamen](http://www.sine.io/in). - -- Pedum ne indigenae finire invergens carpebat -- Velit posses summoque -- De fumos illa foret - -## Est simul fameque tauri qua ad - -Locum nullus nisi vomentes. Ab Persea sermone vela, miratur aratro; eandem -Argolicas gener. - -## Me sol - -Nec dis certa fuit socer, Nonacria **dies** manet tacitaque sibi? Sucis est -iactata Castrumque iudex, et iactato quoque terraeque es tandem et maternos -vittis. Lumina litus bene poenamque animos callem ne tuas in leones illam dea -cadunt genus, et pleno nunc in quod. Anumque crescentesque sanguinis -[progenies](http://www.late.net/alimentavirides) nuribus rustica tinguet. Pater -omnes liquido creditis noctem. - - if (mirrored(icmp_dvd_pim, 3, smbMirroredHard) != lion(clickImportQueue, - viralItunesBalancing, bankruptcy_file_pptp)) { - file += ip_cybercrime_suffix; - } - if (runtimeSmartRom == netMarketingWord) { - virusBalancingWin *= scriptPromptBespoke + raster(post_drive, - windowsSli); - cd = address_hertz_trojan; - soap_ccd.pcbServerGigahertz(asp_hardware_isa, offlinePeopleware, nui); - } else { - megabyte.api = modem_flowchart - web + syntaxHalftoneAddress; - } - if (3 < mebibyteNetworkAnimated) { - pharming_regular_error *= jsp_ribbon + algorithm * recycleMediaKindle( - dvrSyntax, cdma); - adf_sla *= hoverCropDrive; - templateNtfs = -1 - vertical; - } else { - expressionCompressionVariable.bootMulti = white_eup_javascript( - table_suffix); - guidPpiPram.tracerouteLinux += rtfTerabyteQuicktime(1, - managementRosetta(webcamActivex), 740874); - } - var virusTweetSsl = nullGigo; - -## Trepident sitimque - -Sentiet et ferali errorem fessam, coercet superbus, Ascaniumque in pennis -mediis; dolor? Vidit imi **Aeacon** perfida propositos adde, tua Somni Fluctibus -errante lustrat non. - -Tamen inde, vos videt e flammis Scythica parantem rupisque pectora umbras. Haec -ficta canistris repercusso simul ego aris Dixit! Esse Fama trepidare hunc -crescendo vigor ululasse vertice *exspatiantur* celer tepidique petita aversata -oculis iussa est me ferro. diff --git a/content/docs/example/collapsed/3rd-level/4th-level.md b/content/docs/example/collapsed/3rd-level/4th-level.md deleted file mode 100644 index aa451f1..0000000 --- a/content/docs/example/collapsed/3rd-level/4th-level.md +++ /dev/null @@ -1,12 +0,0 @@ -# 4th Level of Menu - -## Caesorum illa tu sentit micat vestes papyriferi - -Inde aderam facti; Theseus vis de tauri illa peream. Oculos **uberaque** non -regisque vobis cursuque, opus venit quam vulnera. Et maiora necemque, lege modo; -gestanda nitidi, vero? Dum ne pectoraque testantur. - -Venasque repulsa Samos qui, exspectatum eram animosque hinc, [aut -manes](http://www.creveratnon.net/apricaaetheriis), Assyrii. Cupiens auctoribus -pariter rubet, profana magni super nocens. Vos ius sibilat inpar turba visae -iusto! Sedes ante dum superest **extrema**. diff --git a/content/docs/example/collapsed/3rd-level/_index.md b/content/docs/example/collapsed/3rd-level/_index.md deleted file mode 100644 index cc0100f..0000000 --- a/content/docs/example/collapsed/3rd-level/_index.md +++ /dev/null @@ -1,26 +0,0 @@ -# 3rd Level of Menu - -Nefas discordemque domino montes numen tum humili nexilibusque exit, Iove. Quae -miror esse, scelerisque Melaneus viribus. Miseri laurus. Hoc est proposita me -ante aliquid, aura inponere candidioribus quidque accendit bella, sumpta. -Intravit quam erat figentem hunc, motus de fontes parvo tempestate. - - iscsi_virus = pitch(json_in_on(eupViral), - northbridge_services_troubleshooting, personal( - firmware_rw.trash_rw_crm.device(interactive_gopher_personal, - software, -1), megabit, ergonomicsSoftware(cmyk_usb_panel, - mips_whitelist_duplex, cpa))); - if (5) { - managementNetwork += dma - boolean; - kilohertz_token = 2; - honeypot_affiliate_ergonomics = fiber; - } - mouseNorthbridge = byte(nybble_xmp_modem.horse_subnet( - analogThroughputService * graphicPoint, drop(daw_bit, dnsIntranet), - gateway_ospf), repository.domain_key.mouse(serverData(fileNetwork, - trim_duplex_file), cellTapeDirect, token_tooltip_mashup( - ripcordingMashup))); - module_it = honeypot_driver(client_cold_dvr(593902, ripping_frequency) + - coreLog.joystick(componentUdpLink), windows_expansion_touchscreen); - bashGigabit.external.reality(2, server_hardware_codec.flops.ebookSampling( - ciscNavigationBacklink, table + cleanDriver), indexProtocolIsp); diff --git a/content/docs/example/collapsed/_index.md b/content/docs/example/collapsed/_index.md deleted file mode 100644 index 806bc2e..0000000 --- a/content/docs/example/collapsed/_index.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -bookCollapseSection: true -weight: 20 ---- - -# Collapsed Level of Menu - -## Cognita laeva illo fracta - -Lorem markdownum pavent auras, surgit nunc cingentibus libet **Laomedonque que** -est. Pastor [An](http://est.org/ire.aspx) arbor filia foedat, ne [fugit -aliter](http://www.indiciumturbam.org/moramquid.php), per. Helicona illas et -callida neptem est *Oresitrophos* caput, dentibus est venit. Tenet reddite -[famuli](http://www.antro-et.net/) praesentem fortibus, quaeque vis foret si -frondes *gelidos* gravidae circumtulit [inpulit armenta -nativum](http://incurvasustulit.io/illi-virtute.html). - -1. Te at cruciabere vides rubentis manebo -2. Maturuit in praetemptat ruborem ignara postquam habitasse -3. Subitarum supplevit quoque fontesque venabula spretis modo -4. Montis tot est mali quasque gravis -5. Quinquennem domus arsit ipse -6. Pellem turis pugnabant locavit diff --git a/content/docs/example/hidden.md b/content/docs/example/hidden.md deleted file mode 100644 index df7cb9e..0000000 --- a/content/docs/example/hidden.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -bookHidden: true ---- - -# This page is hidden in menu - -# Quondam non pater est dignior ille Eurotas - -## Latent te facies - -Lorem markdownum arma ignoscas vocavit quoque ille texit mandata mentis ultimus, -frementes, qui in vel. Hippotades Peleus [pennas -conscia](http://gratia.net/tot-qua.php) cuiquam Caeneus quas. - -- Pater demittere evincitque reddunt -- Maxime adhuc pressit huc Danaas quid freta -- Soror ego -- Luctus linguam saxa ultroque prior Tatiumque inquit -- Saepe liquitur subita superata dederat Anius sudor - -## Cum honorum Latona - -O fallor [in sustinui -iussorum](http://www.spectataharundine.org/aquas-relinquit.html) equidem. -Nymphae operi oris alii fronde parens dumque, in auro ait mox ingenti proxima -iamdudum maius? - - reality(burnDocking(apache_nanometer), - pad.property_data_programming.sectorBrowserPpga(dataMask, 37, - recycleRup)); - intellectualVaporwareUser += -5 * 4; - traceroute_key_upnp /= lag_optical(android.smb(thyristorTftp)); - surge_host_golden = mca_compact_device(dual_dpi_opengl, 33, - commerce_add_ppc); - if (lun_ipv) { - verticalExtranet(1, thumbnail_ttl, 3); - bar_graphics_jpeg(chipset - sector_xmp_beta); - } - -## Fronde cetera dextrae sequens pennis voce muneris - -Acta cretus diem restet utque; move integer, oscula non inspirat, noctisque -scelus! Nantemque in suas vobis quamvis, et labori! - - var runtimeDiskCompiler = home - array_ad_software; - if (internic > disk) { - emoticonLockCron += 37 + bps - 4; - wan_ansi_honeypot.cardGigaflops = artificialStorageCgi; - simplex -= downloadAccess; - } - var volumeHardeningAndroid = pixel + tftp + onProcessorUnmount; - sector(memory(firewire + interlaced, wired)); \ No newline at end of file diff --git a/content/docs/example/table-of-contents/_index.md b/content/docs/example/table-of-contents/_index.md deleted file mode 100644 index c7ee0d8..0000000 --- a/content/docs/example/table-of-contents/_index.md +++ /dev/null @@ -1,85 +0,0 @@ ---- -weight: 10 ---- - -# Ubi loqui - -## Mentem genus facietque salire tempus bracchia - -Lorem markdownum partu paterno Achillem. Habent amne generosi aderant ad pellem -nec erat sustinet merces columque haec et, dixit minus nutrit accipiam subibis -subdidit. Temeraria servatum agros qui sed fulva facta. Primum ultima, dedit, -suo quisque linguae medentes fixo: tum petis. - -## Rapit vocant si hunc siste adspice - -Ora precari Patraeque Neptunia, dixit Danae [Cithaeron -armaque](http://mersis-an.org/litoristum) maxima in **nati Coniugis** templis -fluidove. Effugit usus nec ingreditur agmen *ac manus* conlato. Nullis vagis -nequiquam vultibus aliquos altera *suum venis* teneas fretum. Armos [remotis -hoc](http://tutum.io/me) sine ferrea iuncta quam! - -## Locus fuit caecis - -Nefas discordemque domino montes numen tum humili nexilibusque exit, Iove. Quae -miror esse, scelerisque Melaneus viribus. Miseri laurus. Hoc est proposita me -ante aliquid, aura inponere candidioribus quidque accendit bella, sumpta. -Intravit quam erat figentem hunc, motus de fontes parvo tempestate. - - iscsi_virus = pitch(json_in_on(eupViral), - northbridge_services_troubleshooting, personal( - firmware_rw.trash_rw_crm.device(interactive_gopher_personal, - software, -1), megabit, ergonomicsSoftware(cmyk_usb_panel, - mips_whitelist_duplex, cpa))); - if (5) { - managementNetwork += dma - boolean; - kilohertz_token = 2; - honeypot_affiliate_ergonomics = fiber; - } - mouseNorthbridge = byte(nybble_xmp_modem.horse_subnet( - analogThroughputService * graphicPoint, drop(daw_bit, dnsIntranet), - gateway_ospf), repository.domain_key.mouse(serverData(fileNetwork, - trim_duplex_file), cellTapeDirect, token_tooltip_mashup( - ripcordingMashup))); - module_it = honeypot_driver(client_cold_dvr(593902, ripping_frequency) + - coreLog.joystick(componentUdpLink), windows_expansion_touchscreen); - bashGigabit.external.reality(2, server_hardware_codec.flops.ebookSampling( - ciscNavigationBacklink, table + cleanDriver), indexProtocolIsp); - -## Placabilis coactis nega ingemuit ignoscat nimia non - -Frontis turba. Oculi gravis est Delphice; *inque praedaque* sanguine manu non. - - if (ad_api) { - zif += usb.tiffAvatarRate(subnet, digital_rt) + exploitDrive; - gigaflops(2 - bluetooth, edi_asp_memory.gopher(queryCursor, laptop), - panel_point_firmware); - spyware_bash.statePopApplet = express_netbios_digital( - insertion_troubleshooting.brouter(recordFolderUs), 65); - } - recursionCoreRay = -5; - if (hub == non) { - portBoxVirus = soundWeb(recursive_card(rwTechnologyLeopard), - font_radcab, guidCmsScalable + reciprocalMatrixPim); - left.bug = screenshot; - } else { - tooltipOpacity = raw_process_permalink(webcamFontUser, -1); - executable_router += tape; - } - if (tft) { - bandwidthWeb *= social_page; - } else { - regular += 611883; - thumbnail /= system_lag_keyboard; - } - -## Caesorum illa tu sentit micat vestes papyriferi - -Inde aderam facti; Theseus vis de tauri illa peream. Oculos **uberaque** non -regisque vobis cursuque, opus venit quam vulnera. Et maiora necemque, lege modo; -gestanda nitidi, vero? Dum ne pectoraque testantur. - -Venasque repulsa Samos qui, exspectatum eram animosque hinc, [aut -manes](http://www.creveratnon.net/apricaaetheriis), Assyrii. Cupiens auctoribus -pariter rubet, profana magni super nocens. Vos ius sibilat inpar turba visae -iusto! Sedes ante dum superest **extrema**. diff --git a/content/docs/example/table-of-contents/with-toc.md b/content/docs/example/table-of-contents/with-toc.md deleted file mode 100644 index 5345c66..0000000 --- a/content/docs/example/table-of-contents/with-toc.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -title: With ToC -weight: 1 ---- -# Caput vino delphine in tamen vias - -## Cognita laeva illo fracta - -Lorem markdownum pavent auras, surgit nunc cingentibus libet **Laomedonque que** -est. Pastor [An](http://est.org/ire.aspx) arbor filia foedat, ne [fugit -aliter](http://www.indiciumturbam.org/moramquid.php), per. Helicona illas et -callida neptem est *Oresitrophos* caput, dentibus est venit. Tenet reddite -[famuli](http://www.antro-et.net/) praesentem fortibus, quaeque vis foret si -frondes *gelidos* gravidae circumtulit [inpulit armenta -nativum](http://incurvasustulit.io/illi-virtute.html). - -1. Te at cruciabere vides rubentis manebo -2. Maturuit in praetemptat ruborem ignara postquam habitasse -3. Subitarum supplevit quoque fontesque venabula spretis modo -4. Montis tot est mali quasque gravis -5. Quinquennem domus arsit ipse -6. Pellem turis pugnabant locavit - -## Natus quaerere - -Pectora et sine mulcere, coniuge dum tincta incurvae. Quis iam; est dextra -Peneosque, metuis a verba, primo. Illa sed colloque suis: magno: gramen, aera -excutiunt concipit. - -> Phrygiae petendo suisque extimuit, super, pars quod audet! Turba negarem. -> Fuerat attonitus; et dextra retinet sidera ulnas undas instimulat vacuae -> generis? *Agnus* dabat et ignotis dextera, sic tibi pacis **feriente at mora** -> euhoeque *comites hostem* vestras Phineus. Vultuque sanguine dominoque [metuit -> risi](http://iuvat.org/eundem.php) fama vergit summaque meus clarissimus -> artesque tinguebat successor nominis cervice caelicolae. - -## Limitibus misere sit - -Aurea non fata repertis praerupit feruntur simul, meae hosti lentaque *citius -levibus*, cum sede dixit, Phaethon texta. *Albentibus summos* multifidasque -iungitur loquendi an pectore, mihi ursaque omnia adfata, aeno parvumque in animi -perlucentes. Epytus agis ait vixque clamat ornum adversam spondet, quid sceptra -ipsum **est**. Reseret nec; saeva suo passu debentia linguam terga et aures et -cervix [de](http://www.amnem.io/pervenit.aspx) ubera. Coercet gelidumque manus, -doluit volvitur induta? - -## Enim sua - -Iuvenilior filia inlustre templa quidem herbis permittat trahens huic. In -cruribus proceres sole crescitque *fata*, quos quos; merui maris se non tamen -in, mea. - -## Germana aves pignus tecta - -Mortalia rudibusque caelum cognosceret tantum aquis redito felicior texit, nec, -aris parvo acre. Me parum contulerant multi tenentem, gratissime suis; vultum tu -occupat deficeret corpora, sonum. E Actaea inplevit Phinea concepit nomenque -potest sanguine captam nulla et, in duxisses campis non; mercede. Dicere cur -Leucothoen obitum? - -Postibus mittam est *nubibus principium pluma*, exsecratur facta et. Iunge -Mnemonidas pallamque pars; vere restitit alis flumina quae **quoque**, est -ignara infestus Pyrrha. Di ducis terris maculatum At sede praemia manes -nullaque! diff --git a/content/docs/example/table-of-contents/without-toc.md b/content/docs/example/table-of-contents/without-toc.md deleted file mode 100644 index 9b16318..0000000 --- a/content/docs/example/table-of-contents/without-toc.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: Without ToC -weight: 2 -bookToc: false ---- - -# At me ipso nepotibus nunc celebratior genus - -## Tanto oblite - -Lorem markdownum pectora novis patenti igne sua opus aurae feras materiaque -illic demersit imago et aristas questaque posset. Vomit quoque suo inhaesuro -clara. Esse cumque, per referri triste. Ut exponit solisque communis in tendens -vincetis agisque iamque huic bene ante vetat omina Thebae rates. Aeacus servat -admonitu concidit, ad resimas vultus et rugas vultu **dignamque** Siphnon. - -Quam iugulum regia simulacra, plus meruit humo pecorumque haesit, ab discedunt -dixit: ritu pharetramque. Exul Laurenti orantem modo, per densum missisque labor -manibus non colla unum, obiectat. Tu pervia collo, fessus quae Cretenque Myconon -crate! Tegumenque quae invisi sudore per vocari quaque plus ventis fluidos. Nodo -perque, fugisse pectora sorores. - -## Summe promissa supple vadit lenius - -Quibus largis latebris aethera versato est, ait sentiat faciemque. Aequata alis -nec Caeneus exululat inclite corpus est, ire **tibi** ostendens et tibi. Rigent -et vires dique possent lumina; **eadem** dixit poma funeribus paret et felix -reddebant ventis utile lignum. - -1. Remansit notam Stygia feroxque -2. Et dabit materna -3. Vipereas Phrygiaeque umbram sollicito cruore conlucere suus -4. Quarum Elis corniger -5. Nec ieiunia dixit - -Vertitur mos ortu ramosam contudit dumque; placabat ac lumen. Coniunx Amoris -spatium poenamque cavernis Thebae Pleiadasque ponunt, rapiare cum quae parum -nimium rima. - -## Quidem resupinus inducto solebat una facinus quae - -Credulitas iniqua praepetibus paruit prospexit, voce poena, sub rupit sinuatur, -quin suum ventorumque arcadiae priori. Soporiferam erat formamque, fecit, -invergens, nymphae mutat fessas ait finge. - -1. Baculum mandataque ne addere capiti violentior -2. Altera duas quam hoc ille tenues inquit -3. Sicula sidereus latrantis domoque ratae polluit comites -4. Possit oro clausura namque se nunc iuvenisque -5. Faciem posuit -6. Quodque cum ponunt novercae nata vestrae aratra - -Ite extrema Phrygiis, patre dentibus, tonso perculit, enim blanda, manibus fide -quos caput armis, posse! Nocendo fas Alcyonae lacertis structa ferarum manus -fulmen dubius, saxa caelum effuge extremis fixum tumor adfecit **bella**, -potentes? Dum nec insidiosa tempora tegit -[spirarunt](http://mihiferre.net/iuvenes-peto.html). Per lupi pars foliis, -porreximus humum negant sunt subposuere Sidone steterant auro. Memoraverit sine: -ferrum idem Orion caelum heres gerebat fixis? diff --git a/content/docs/license/index.md b/content/docs/license/index.md index 85133ed..575a242 100644 --- a/content/docs/license/index.md +++ b/content/docs/license/index.md @@ -5,4 +5,6 @@ bookToc: false bookFlatSection: true --- +# License + {{< cc_banner >}} \ No newline at end of file diff --git a/content/docs/shortcodes/_index.md b/content/docs/shortcodes/_index.md deleted file mode 100644 index 9bb0430..0000000 --- a/content/docs/shortcodes/_index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -bookFlatSection: true ---- diff --git a/content/docs/shortcodes/buttons.md b/content/docs/shortcodes/buttons.md deleted file mode 100644 index c2ef1e7..0000000 --- a/content/docs/shortcodes/buttons.md +++ /dev/null @@ -1,13 +0,0 @@ -# Buttons - -Buttons are styled links that can lead to local page or external link. - -## Example - -```tpl -{{}}Get Home{{}} -{{}}Contribute{{}} -``` - -{{< button relref="/" >}}Get Home{{< /button >}} -{{< button href="https://github.com/alex-shpak/hugo-book" >}}Contribute{{< /button >}} diff --git a/content/docs/shortcodes/columns.md b/content/docs/shortcodes/columns.md deleted file mode 100644 index 4df396a..0000000 --- a/content/docs/shortcodes/columns.md +++ /dev/null @@ -1,45 +0,0 @@ -# Columns - -Columns help organize shorter pieces of content horizontally for readability. - - -```html -{{}} -# Left Content -Lorem markdownum insigne... - -<---> - -# Mid Content -Lorem markdownum insigne... - -<---> - -# Right Content -Lorem markdownum insigne... -{{}} -``` - -## Example - -{{< columns >}} -## Left Content -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. - -<---> - -## Mid Content -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! - -<---> - -## Right Content -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. -{{< /columns >}} diff --git a/content/docs/shortcodes/expand.md b/content/docs/shortcodes/expand.md deleted file mode 100644 index c62520f..0000000 --- a/content/docs/shortcodes/expand.md +++ /dev/null @@ -1,35 +0,0 @@ -# Expand - -Expand shortcode can help to decrease clutter on screen by hiding part of text. Expand content by clicking on it. - -## Example -### Default - -```tpl -{{}} -## Markdown content -Lorem markdownum insigne... -{{}} -``` - -{{< expand >}} -## Markdown content -Lorem markdownum insigne... -{{< /expand >}} - -### With Custom Label - -```tpl -{{}} -## Markdown content -Lorem markdownum insigne... -{{}} -``` - -{{< expand "Custom Label" "..." >}} -## Markdown content -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. -{{< /expand >}} diff --git a/content/docs/shortcodes/hints.md b/content/docs/shortcodes/hints.md deleted file mode 100644 index 3477113..0000000 --- a/content/docs/shortcodes/hints.md +++ /dev/null @@ -1,32 +0,0 @@ -# Hints - -Hint shortcode can be used as hint/alerts/notification block. -There are 3 colors to choose: `info`, `warning` and `danger`. - -```tpl -{{}} -**Markdown content** -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -{{}} -``` - -## Example - -{{< hint info >}} -**Markdown content** -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -{{< /hint >}} - -{{< hint warning >}} -**Markdown content** -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -{{< /hint >}} - -{{< hint danger >}} -**Markdown content** -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -{{< /hint >}} diff --git a/content/docs/shortcodes/katex.md b/content/docs/shortcodes/katex.md deleted file mode 100644 index fae88c5..0000000 --- a/content/docs/shortcodes/katex.md +++ /dev/null @@ -1,37 +0,0 @@ -# KaTeX - -KaTeX shortcode let you render math typesetting in markdown document. See [KaTeX](https://katex.org/) - -## Example -{{< columns >}} - -```latex -{{}} -x = \begin{cases} - a &\text{if } b \\ - c &\text{if } d -\end{cases} -{{}} -``` - -<---> - -{{< katex >}} -x = \begin{cases} - a &\text{if } b \\ - c &\text{if } d -\end{cases} -{{< /katex >}} - -{{< /columns >}} - -## Display Mode Example - -Here is some inline example: {{< katex >}}\pi(x){{< /katex >}}, rendered in the same line. And below is `display` example, having `display: block` -{{< katex display >}} -x = \begin{cases} - a &\text{if } b \\ - c &\text{if } d -\end{cases} -{{< /katex >}} -Text continues here. diff --git a/content/docs/shortcodes/mermaid.md b/content/docs/shortcodes/mermaid.md deleted file mode 100644 index 3a617bc..0000000 --- a/content/docs/shortcodes/mermaid.md +++ /dev/null @@ -1,38 +0,0 @@ -# Mermaid Chart - -[Mermaid](https://mermaidjs.github.io/) is library for generating svg charts and diagrams from text. - -## Example - -{{< columns >}} -```tpl -{{}} -sequenceDiagram - Alice->>Bob: Hello Bob, how are you? - alt is sick - Bob->>Alice: Not so good :( - else is well - Bob->>Alice: Feeling fresh like a daisy - end - opt Extra response - Bob->>Alice: Thanks for asking - end -{{}} -``` - -<---> - -{{< mermaid >}} -sequenceDiagram - Alice->>Bob: Hello Bob, how are you? - alt is sick - Bob->>Alice: Not so good :( - else is well - Bob->>Alice: Feeling fresh like a daisy - end - opt Extra response - Bob->>Alice: Thanks for asking - end -{{< /mermaid >}} - -{{< /columns >}} diff --git a/content/docs/shortcodes/tabs.md b/content/docs/shortcodes/tabs.md deleted file mode 100644 index 096892c..0000000 --- a/content/docs/shortcodes/tabs.md +++ /dev/null @@ -1,50 +0,0 @@ -# Tabs - -Tabs let you organize content by context, for example installation instructions for each supported platform. - -```tpl -{{}} -{{}} # MacOS Content {{}} -{{}} # Linux Content {{}} -{{}} # Windows Content {{}} -{{}} -``` - -## Example - -{{< tabs "uniqueid" >}} -{{< tab "MacOS" >}} -# MacOS - -This is tab **MacOS** content. - -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. -{{< /tab >}} - -{{< tab "Linux" >}} - -# Linux - -This is tab **Linux** content. - -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. -{{< /tab >}} - -{{< tab "Windows" >}} - -# Windows - -This is tab **Windows** content. - -Lorem markdownum insigne. Olympo signis Delphis! Retexi Nereius nova develat -stringit, frustra Saturnius uteroque inter! Oculis non ritibus Telethusa -protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes. -Miseratus fonte Ditis conubia. -{{< /tab >}} -{{< /tabs >}} diff --git a/content/menu/index.md b/content/menu/index.md deleted file mode 100644 index 4a5180c..0000000 --- a/content/menu/index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -headless: true ---- -- [**About**]({{< relref "docs/about/index.md">}}) -- [**2020年 福岡女学院大学 「サウンド・デザイン」**]({{< relref "docs/2020/fukujo-sounddesign/_index.md">}}) -- [**License**]({{< relref "docs/license/index.md">}}) diff --git a/content/posts/creating-a-new-theme.md b/content/posts/creating-a-new-theme.md index f8230a1..5eccd8c 100644 --- a/content/posts/creating-a-new-theme.md +++ b/content/posts/creating-a-new-theme.md @@ -9,6 +9,7 @@ next: /tutorials/github-pages-blog prev: /tutorials/automated-deployments title: Creating a New Theme weight: 10 +draft: true --- diff --git a/content/posts/goisforlovers.md b/content/posts/goisforlovers.md deleted file mode 100644 index df125d8..0000000 --- a/content/posts/goisforlovers.md +++ /dev/null @@ -1,344 +0,0 @@ -+++ -title = "(Hu)go Template Primer" -description = "" -tags = [ - "go", - "golang", - "templates", - "themes", - "development", -] -date = "2014-04-02" -categories = [ - "Development", - "golang", -] -menu = "main" -+++ - -Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for -its template engine. It is an extremely lightweight engine that provides a very -small amount of logic. In our experience that it is just the right amount of -logic to be able to create a good static website. If you have used other -template systems from different languages or frameworks you will find a lot of -similarities in Go templates. - -This document is a brief primer on using Go templates. The [Go docs][gohtmltemplate] -provide more details. - -## Introduction to Go Templates - -Go templates provide an extremely simple template language. It adheres to the -belief that only the most basic of logic belongs in the template or view layer. -One consequence of this simplicity is that Go templates parse very quickly. - -A unique characteristic of Go templates is they are content aware. Variables and -content will be sanitized depending on the context of where they are used. More -details can be found in the [Go docs][gohtmltemplate]. - -## Basic Syntax - -Golang templates are HTML files with the addition of variables and -functions. - -**Go variables and functions are accessible within {{ }}** - -Accessing a predefined variable "foo": - - {{ foo }} - -**Parameters are separated using spaces** - -Calling the add function with input of 1, 2: - - {{ add 1 2 }} - -**Methods and fields are accessed via dot notation** - -Accessing the Page Parameter "bar" - - {{ .Params.bar }} - -**Parentheses can be used to group items together** - - {{ if or (isset .Params "alt") (isset .Params "caption") }} Caption {{ end }} - - -## Variables - -Each Go template has a struct (object) made available to it. In hugo each -template is passed either a page or a node struct depending on which type of -page you are rendering. More details are available on the -[variables](/layout/variables) page. - -A variable is accessed by referencing the variable name. - - {{ .Title }} - -Variables can also be defined and referenced. - - {{ $address := "123 Main St."}} - {{ $address }} - - -## Functions - -Go template ship with a few functions which provide basic functionality. The Go -template system also provides a mechanism for applications to extend the -available functions with their own. [Hugo template -functions](/layout/functions) provide some additional functionality we believe -are useful for building websites. Functions are called by using their name -followed by the required parameters separated by spaces. Template -functions cannot be added without recompiling hugo. - -**Example:** - - {{ add 1 2 }} - -## Includes - -When including another template you will pass to it the data it will be -able to access. To pass along the current context please remember to -include a trailing dot. The templates location will always be starting at -the /layout/ directory within Hugo. - -**Example:** - - {{ template "chrome/header.html" . }} - - -## Logic - -Go templates provide the most basic iteration and conditional logic. - -### Iteration - -Just like in Go, the Go templates make heavy use of range to iterate over -a map, array or slice. The following are different examples of how to use -range. - -**Example 1: Using Context** - - {{ range array }} - {{ . }} - {{ end }} - -**Example 2: Declaring value variable name** - - {{range $element := array}} - {{ $element }} - {{ end }} - -**Example 2: Declaring key and value variable name** - - {{range $index, $element := array}} - {{ $index }} - {{ $element }} - {{ end }} - -### Conditionals - -If, else, with, or, & and provide the framework for handling conditional -logic in Go Templates. Like range, each statement is closed with `end`. - - -Go Templates treat the following values as false: - -* false -* 0 -* any array, slice, map, or string of length zero - -**Example 1: If** - - {{ if isset .Params "title" }}

{{ index .Params "title" }}

{{ end }} - -**Example 2: If -> Else** - - {{ if isset .Params "alt" }} - {{ index .Params "alt" }} - {{else}} - {{ index .Params "caption" }} - {{ end }} - -**Example 3: And & Or** - - {{ if and (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}} - -**Example 4: With** - -An alternative way of writing "if" and then referencing the same value -is to use "with" instead. With rebinds the context `.` within its scope, -and skips the block if the variable is absent. - -The first example above could be simplified as: - - {{ with .Params.title }}

{{ . }}

{{ end }} - -**Example 5: If -> Else If** - - {{ if isset .Params "alt" }} - {{ index .Params "alt" }} - {{ else if isset .Params "caption" }} - {{ index .Params "caption" }} - {{ end }} - -## Pipes - -One of the most powerful components of Go templates is the ability to -stack actions one after another. This is done by using pipes. Borrowed -from unix pipes, the concept is simple, each pipeline's output becomes the -input of the following pipe. - -Because of the very simple syntax of Go templates, the pipe is essential -to being able to chain together function calls. One limitation of the -pipes is that they only can work with a single value and that value -becomes the last parameter of the next pipeline. - -A few simple examples should help convey how to use the pipe. - -**Example 1 :** - - {{ if eq 1 1 }} Same {{ end }} - -is the same as - - {{ eq 1 1 | if }} Same {{ end }} - -It does look odd to place the if at the end, but it does provide a good -illustration of how to use the pipes. - -**Example 2 :** - - {{ index .Params "disqus_url" | html }} - -Access the page parameter called "disqus_url" and escape the HTML. - -**Example 3 :** - - {{ if or (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}} - Stuff Here - {{ end }} - -Could be rewritten as - - {{ isset .Params "caption" | or isset .Params "title" | or isset .Params "attr" | if }} - Stuff Here - {{ end }} - - -## Context (aka. the dot) - -The most easily overlooked concept to understand about Go templates is that {{ . }} -always refers to the current context. In the top level of your template this -will be the data set made available to it. Inside of a iteration it will have -the value of the current item. When inside of a loop the context has changed. . -will no longer refer to the data available to the entire page. If you need to -access this from within the loop you will likely want to set it to a variable -instead of depending on the context. - -**Example:** - - {{ $title := .Site.Title }} - {{ range .Params.tags }} -
  • {{ . }} - {{ $title }}
  • - {{ end }} - -Notice how once we have entered the loop the value of {{ . }} has changed. We -have defined a variable outside of the loop so we have access to it from within -the loop. - -# Hugo Parameters - -Hugo provides the option of passing values to the template language -through the site configuration (for sitewide values), or through the meta -data of each specific piece of content. You can define any values of any -type (supported by your front matter/config format) and use them however -you want to inside of your templates. - - -## Using Content (page) Parameters - -In each piece of content you can provide variables to be used by the -templates. This happens in the [front matter](/content/front-matter). - -An example of this is used in this documentation site. Most of the pages -benefit from having the table of contents provided. Sometimes the TOC just -doesn't make a lot of sense. We've defined a variable in our front matter -of some pages to turn off the TOC from being displayed. - -Here is the example front matter: - -``` ---- -title: "Permalinks" -date: "2013-11-18" -aliases: - - "/doc/permalinks/" -groups: ["extras"] -groups_weight: 30 -notoc: true ---- -``` - -Here is the corresponding code inside of the template: - - {{ if not .Params.notoc }} -
    - {{ .TableOfContents }} -
    - {{ end }} - - - -## Using Site (config) Parameters -In your top-level configuration file (eg, `config.yaml`) you can define site -parameters, which are values which will be available to you in chrome. - -For instance, you might declare: - -```yaml -params: - CopyrightHTML: "Copyright © 2013 John Doe. All Rights Reserved." - TwitterUser: "spf13" - SidebarRecentLimit: 5 -``` - -Within a footer layout, you might then declare a `