diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2beb9e1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,662 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..c0e81ed --- /dev/null +++ b/README.md @@ -0,0 +1,325 @@ +![logo](static/logo.svg) + +# Ficurinia + +A prickly blog theme for Hugo + +![](images/tn.png) + +# [Demo](https://gabmus.org) + +[Code for the demo website](https://gitlab.com/gabmus/gabmus.gitlab.io) (really my personal website) + +[Screenshot gallery](https://gabmus.gitlab.io/hugo-ficurinia-screenshots/) showcasing 256 of the possible configurations that Ficurinia offers. + +# Customization + +## Configuration + +These are some parameters you can use in your `config.toml` to customize Ficurinia: + +```toml +baseURL = "https://example.com/" +theme = "hugo-ficurinia" +title = "My nice blog" +languageCode = "en" +defaultContentLanguage = "en" + +# this will be included in the footer after the current year the site is last +# built, followed by the (c) symbol +# you can use markdown inside this field +copyright = "Some copyright notice - [my license](https://example.com/license)" + +paginate = 5 # number of articles per page in the index +summaryLength = 70 # number of words for article summaries + + +[params] + author = "Gabriele Musco" + description = "A description for my website" # this will be added as metadata + + posts = "posts" # content directory where to find home page posts; default searches in "posts" and "post" + showPostsLink = true # show or hide the link to the simple post list + extraContentDirs = [] # other content directories to render similarly to the home page + showcaseDir = "showcase" # create a content directory that shows a special showcase section in the home page + + # shows a specified single page as a home page, instead of the traditional articles list + # requires setting `homeSinglePage` + # goes well with extraContentDirs + showSinglePageAsHome = false + homeSinglePage = "/home" + + # It's best to put these icons in the "static" folder of your site + logo = "/logo.svg" + favicon = "/favicon.png" # 32x32 + faviconIco = "/favicon.ico" # 32x32 + appletouch = "/apple-touch-icon.png" # 180x180 + svgicon = "/logo.svg" + icon512 = "/icon512.png" # 512x512 png image + + logoRightOfTitle = false # positions the logo to the right of the title; default: false + + showTags = true # show the Tags menu item; default true + showRss = true # show the link for the RSS feed; default true + + imageInArticlePreview = false # show images in article preview; default false + fitImageInArticlePreview = false # make article preview images fit the article preview instead of getting cropped + articleSummary = true # show a summary in article preview; default true + + fontFamily = "JetBrains Mono" # changes the font, default "JetBrains Mono" + titleFontFamily = "JetBrains Mono" # font used for titles and headings + monospaceFontFamily = "JetBrains Mono" # changes the monospace font for code, default "JetBrains Mono" + + # multipliers applied to font sizes, useful for custom fonts that may be too big or too small + titleFontSizeMultiplier = 1.0 + mainFontSizeMultiplier = 1.0 + monoFontSizeMultiplier = 1.0 + + contentWidth = "1000px" # maximum width of the site content, css syntax + + paperCards = false # enable paper card style; default false + buttonTags = false # enable button tag style; default false + tagsInArticlePreview = true # enable tags list in the article preview card + gridView = false # show post list as a grid. goes well with paperCards + bigArticleTitle = false # makes the title in the single article view bigger + navtype = "standard" # changes the style of the pagination, available styles are: "standard", "circles" + enableShadow = false # shows a shadow around some elements + menuStyle = "standard" # changes the style of the main site navigation menu, available styles are: "standard", "buttons" + inputStyle = "standard" # changes the style of inputs (like the searchbar), available styles are: "standard", "buttons" + + enableSearch = true # enable search page + searchbarEverywhere = true # if the searchbar should be shown in every page; requires enableSearch + searchMenuLink = false # add a search link to the navigation menu; requires enableSearch + mobileHamburgerNav = false # alternative hamburger menu layout for the main nav menu when screen is small + + enableFeatured = false # enable a particular view for articles marked as featured (featured: true in the article frontmatter) + + underlineTitleLinks = false # show an underline also for links that are titles + + # enable comments support with commento using the script from your server + commento = "https://example.com/js/commento.js" + + # enable comments support with cactus comments (cactus.chat) + cactusCommentsSiteName = "example.com" + cactusCommentsServerName = "cactus.chat" + cactusCommentsHomeserver = "https://matrix.cactus.chat:8448" + + # enable analytics using Plausible + plausibleScriptUrl = "https://something.com/..." + plausibleDomain = "example.com" + + # enable analytics using Umami + umamiScriptUrl = "https://something.com/..." + umamiWebsiteId = "example-tracking-code" + + enableShareOnFediverse = false # enable a button at the end of an article to share it on the fediverse + tocBeforeImage = false # show the table of contents before the main article image; default false + + # WARNING: deprecated! Use [[menu.icons]] instead, look below + # links = [ + # ["GitLab", "https://gitlab.com/gabmus"], + # ["GNOME", "https://gitlab.gnome.org/gabmus"], + # ["YouTube", "https://youtube.com/TechPillsNet"] + # ] + + # you can customize all of the colors in this theme + # Colors are defined in data/colors.yml + + # alternative sidebar layout + enableSidebarLayout = false + tocInSidebar = false # if the sidebar is enbabled, show the TOC in the sidebar + + # redirect to baseURL if current URL host doesn't match + # useful if deploying in gitlab pages with custom domain and don't want + # the username.gitlab.io/website url to persist + # this requires you to set baseURL (see above) + forceRedirect = false + + infiniteScrolling = false # activates infinite scrolling instead of regular pagination + enableFooterColumns = false # activates footer columns, as described below + enableJumbotron = false # enables jumbotron, as described below + # related articles will be selected randomly based on tags and shown at + # the bottom of the article, after the comments + enableRelatedArticles = false + relatedArticlesNum = 2 # how many related articles to show + randomRelated = false # sorts related articles in random order (randomized at built time) + +[menu] + # these links will be added to the main navigation menu, sorted by weight + # other elements in this menu are added automatically from the "pages" folder + # the folder it will look into can be customized with the pages variable + # in params above + [[menu.main]] + identifier = "about" + name = "About" + url = "/about/" + weight = 10 + # these links (menu.icons) will be added as icon links below the main nav + [[menu.icons]] + identifier = "gitlab" + name = "GitLab" + url = "https://gitlab.com/gabmus" + weight = 10 + [[menu.icons]] + identifier = "gnome" + name = "GNOME GitLab" + url = "https://gitlab.gnome.org/gabmus" + weight = 20 + +# this section is necessary if you want infinite scrolling +# it allows to output the article list as paged JSON so that "pages" can be retrieved via javascript +[outputs] + home = ["HTML", "JSON"] +``` + +### Supported icons + +For the `[[menu.icons]]` menu. They match identifier, name and url can be whatever. Here's a list of supported identifiers: + +- discord +- email +- facebook +- github +- gitlab +- gnome +- instagram +- linkedin +- mastodon +- matrix +- peertube +- phone +- pleroma +- rss +- steam +- telegram +- twitter +- xmpp +- youtube + +## Colors + +Colors are completely customizable. They are defined in [`data/colors.yml`](data/colors.yml). Just copy that file over to `yoursite/data/colors.yml` and customize it to your liking. + +## Footer columns + +You can add various columns of links in the footer using the `data/footer_columns.yml` file. + +Following is an example configuration: + +```yaml +- title: My other projects + links: + - title: HydraPaper + link: https://hydrapaper.gabmus.org + - title: Ada UI + link: https://gitlab.com/gabmus/ada-ui +- title: About me + links: + - title: My personal website + link: https://gabmus.org + - title: My GitLab + link: https://gitlab.com/gabmus + - title: My GNOME GitLab + link: https://gitlab.gnome.org/gabmus +``` + +## Jumbotron + +You can add a jumbotron at the beginning of the home page using the `data/jumbotron.yml` file. + +Following is an example configuration: + +```yaml +title: My awesome website +hugeTitle: false +subtitle: Some fancy subtitle +image: /jumbotron_image.svg +imagePosition: left # values: left, right, top, bottom +background: /img/jumbotron_bg.png +backgroundVideo: /jumbotron_video.mp4 # will replace the background image +# it's best to provide both an mp4 and a web source for the video for better compatibility +backgroundVideoMp4: /jumbotron_video.mp4 +backgroundVideoWebm: /jumbotron_video.webm +videoOpacity: 1.0 +textShadow: false +fullscreen: false +downArrow: false +whiteText: false # force white text in the jumbotron +links: + - title: About me + link: /pages/about + - title: Read my blog + link: /posts +``` + +# Post parameters + +Every post can have various parameters in the frontmatter, here are some that you may find useful + +- `title`: the title of the article +- `date`: usually automatically populated, holds the date and time of the post creation +- `description`: a brief description of the post, useful for SEO optimization +- `tags`: an array of tags, useful for searching similar articles +- `image`: a link to a feature image for the article, shown in the preview as well +- `alt`: alternative text to be shown if image is not available or fails to download +- `imageCaption`: a markdown text rendered as a caption for the article image described above +- `featured`: boolean, indicate if the post should be shown as featured +- `comments`: boolean, if true it enables comments for the current post, if false it disables them (default is true) +- `showDate`: boolean, true by default, if false hides the date. Useful for non-article pages where the date isn't important +- `showTitle`: boolean, true by default, if false hides the title. +- `showShare`: boolean, true by default, if false hides the share button. +- `norss`: boolean, if set to true the page will be skipped in the rss feed +- `nosearch`: boolean, if set to true the page won't show up in searches +- `toc`: boolean, if set to true a table of contents will be shown for the article + +## Table of contents settings + +You can tweak the TOC settings in your `config.toml`: + +```toml +[markup] + [markup.tableOfContents] + endLevel = 5 + ordered = false + startLevel = 1 +``` + +# Generate icons + +It's best to use the provided `generate_icons.sh` script to generate all necessary icons for your website. This script requires ImageMagick, that you will need to install separately. + +For the best results, place your logo in svg format inside the `static` directory of your website, rename it to `logo.svg` and then call `./themes/hugo-ficurinia/generate_icons.sh static/logo.svg`. + +The script will take care of generating all the icons you need. + +Finally, make sure to edit your config.toml to include the following: + +```toml +# ... +[params] + logo = "/logo.svg" + logoAltText = "Logo" + favicon = "/favicon.png" + faviconIco = "/favicon.ico" + appletouch = "/apple-touch-icon.png" + svgicon = "/logo.svg" + # ... +``` + +# Inject custom content + +Ficurinia supports injecting custom content into the theme. There are several files you can create in `layouts/partials/inject` that will be included inside the theme in different places. + +| Partial | Placement | +|---------|-----------| +| `layouts/partials/inject/body.html` | Before closing the `body` tag | +| `layouts/partials/inject/content-after.html` | After a post or page content | +| `layouts/partials/inject/content-before.html` | Before a post or page content | +| `layouts/partials/inject/footer.html` | At the beginning of the footer | +| `layouts/partials/inject/head.html` | Before closing the `head` tag | +| `layouts/partials/inject/header-after.html` | Before closing the header | +| `layouts/partials/inject/header-before.html` | At the beginning of the header | + +# Does *Ficurinia* mean anything? + +It's Sicilian for Indian fig, also known as prickly pear cactus. diff --git a/archetypes/default.md b/archetypes/default.md index 00e77bd..decea26 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,8 @@ ---- -title: "{{ replace .Name "-" " " | title }}" +title: "{{ replace (replace .Name "-" " ") "_" " " | title }}" date: {{ .Date }} -draft: true ---- - +tags: + - tag1 + - tag2 + - tag3 +image: +comments: true diff --git a/assets/feed_style.xsl b/assets/feed_style.xsl new file mode 100644 index 0000000..3ed58f5 --- /dev/null +++ b/assets/feed_style.xsl @@ -0,0 +1,84 @@ + + + + + + + <xsl:value-of select="/rss/channel/title"/> RSS Feed + + + + {{ $style := resources.Get "/scss/style.scss" | resources.ExecuteAsTemplate "/scss/style.scss" . | resources.ToCSS (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") | resources.Fingerprint "sha512" }} + + + + +
+

+ + +

+
+

This is a web feed, also known as an RSS feed. Subscribe by copying the URL into your RSS reader.

+
+
+
+ +
+ +
+
+
+
+

📄 Recent Posts

+ +
+

+
Published:
+
+
+
+
+ + +
+
diff --git a/assets/scss/style.scss b/assets/scss/style.scss new file mode 100644 index 0000000..7a872ff --- /dev/null +++ b/assets/scss/style.scss @@ -0,0 +1,1246 @@ +{{ $colors := .Site.Data.colors | default dict }} + +$dark_bg: {{ $colors.dark.bg | default "#242629" }}; +$dark_hl_bg: {{ $colors.dark.hl_bg | default "#34363b" }}; +$dark_fg: {{ $colors.dark.fg | default "white" }}; +$dark_dim_fg: {{ $colors.dark.dim_fg | default "#bababa" }}; +$dark_stroke: {{ $colors.dark.stroke | default "#4f4f4f" }}; +$dark_accent: {{ $colors.dark.accent | default "#db5793" }}; +$dark_sidebar_bg: {{ $colors.dark.sidebar.bg | default "#34363b" }}; +$dark_sidebar_fg: {{ $colors.dark.sidebar.fg | default "white" }}; + +$light_bg: {{ $colors.light.bg | default "#f5f5f5" }}; +$light_hl_bg: {{ $colors.light.hl_bg | default "#e6e6e6" }}; +$light_fg: {{ $colors.light.fg | default "#262625" }}; +$light_dim_fg: {{ $colors.light.dim_fg | default "#40403e" }}; +$light_stroke: {{ $colors.light.stroke | default "#575754" }}; +$light_accent: {{ $colors.light.accent | default "#db5793" }}; +$light_sidebar_bg: {{ $colors.light.sidebar.bg | default "#e6e6e6" }}; +$light_sidebar_fg: {{ $colors.light.sidebar.fg | default "#121211" }}; + +:root { + --dark_bg: #{$dark_bg}; + --dark_hl_bg: #{$dark_hl_bg}; + --dark_fg: #{$dark_fg}; + --dark_dim_fg: #{$dark_dim_fg}; + --dark_stroke: #{$dark_stroke}; + --dark_accent: #{$dark_accent}; + --dark_sidebar_bg: #{$dark_sidebar_bg}; + --dark_sidebar_fg: #{$dark_sidebar_fg}; + + --light_bg: #{$light_bg}; + --light_hl_bg: #{$light_hl_bg}; + --light_fg: #{$light_fg}; + --light_dim_fg: #{$light_dim_fg}; + --light_stroke: #{$light_stroke}; + --light_accent: #{$light_accent}; + --light_sidebar_bg: #{$light_sidebar_bg}; + --light_sidebar_fg: #{$light_sidebar_fg}; + + {{ if eq .Site.Data.colors.default "light" }} + --default_bg: #{$light_bg}; + --default_hl_bg: #{$light_hl_bg}; + --default_fg: #{$light_fg}; + --default_dim_fg: #{$light_dim_fg}; + --default_stroke: #{$light_stroke}; + --default_accent: #{$light_accent}; + --default_sidebar_bg: #{$light_sidebar_bg}; + --default_sidebar_fg: #{$light_sidebar_fg}; + {{ else }} + --default_bg: #{$dark_bg}; + --default_hl_bg: #{$dark_hl_bg}; + --default_fg: #{$dark_fg}; + --default_dim_fg: #{$dark_dim_fg}; + --default_stroke: #{$dark_stroke}; + --default_accent: #{$dark_accent}; + --default_sidebar_bg: #{$dark_sidebar_bg}; + --default_sidebar_fg: #{$dark_sidebar_fg}; + {{ end }} +} + +{{ if ($colors.auto_switch | default false) }} +@media (prefers-color-scheme: dark) { + :root { + --default_bg: #{$dark_bg}; + --default_hl_bg: #{$dark_hl_bg}; + --default_fg: #{$dark_fg}; + --default_dim_fg: #{$dark_dim_fg}; + --default_stroke: #{$dark_stroke}; + --default_accent: #{$dark_accent}; + --default_sidebar_bg: #{$dark_sidebar_bg}; + --default_sidebar_fg: #{$dark_sidebar_fg}; + } +} +@media (prefers-color-scheme: light) { + :root { + --default_bg: #{$light_bg}; + --default_hl_bg: #{$light_hl_bg}; + --default_fg: #{$light_fg}; + --default_dim_fg: #{$light_dim_fg}; + --default_stroke: #{$light_stroke}; + --default_accent: #{$light_accent}; + --default_sidebar_bg: #{$light_sidebar_bg}; + --default_sidebar_fg: #{$light_sidebar_fg}; + } +} +{{ end }} + + +$main_font: {{ .Site.Params.fontFamily | default "JetBrains Mono" }}; +$title_font: {{ .Site.Params.titleFontFamily | default "$main_font" }}; +$mono_font: {{ .Site.Params.monospaceFontFamily | default "JetBrains Mono" }}; +$symbols_font: "Symbols Nerd Font"; +$content_width: {{ .Site.Params.contentWidth | default "1000px" }}; +$border_radius: 10px; +$margin: 15px; + +$base_font_size: 16px; +$title_font_mult: {{ .Site.Params.titleFontSizeMultiplier | default 1.0 }}; +$main_font_mult: {{ .Site.Params.mainFontSizeMultiplier | default 1.0 }}; +$mono_font_mult: {{ .Site.Params.monoFontSizeMultiplier | default 1.0 }}; + +{{ if (.Site.Params.enableShadow | default false) }} + $shadow: 0 0 5px 0 rgba(0, 0, 0, .2); +{{ else }} + $shadow: 0 0 0 0 transparent; +{{ end }} + +::selection, ::-moz-selection { + background: var(--default_accent); + color: var(--default_fg); +} + +body, html { + font-family: $symbols_font, $main_font, monospace; + font-size: $base_font_size * $main_font_mult; + margin: 0; + padding: 0; + background-color: var(--default_bg); + color: var(--default_fg); +} + +body { + min-height: 100vh; +} + +@mixin linkLike { + color: var(--default_fg); + text-decoration: none; + background-color: transparent; + border-radius: 0; + border-bottom: 2px solid currentcolor; + &:hover, &:focus { + &, &:not([disabled]) { + border-color: var(--default_accent) !important; + background-color: transparent; + } + } +} + +@mixin roundButtonLike { + display: inline-block; + border-radius: $border_radius; + background-color: var(--default_hl_bg); + color: var(--default_fg); + padding: ($margin / 2); + margin: ($margin / 6) 0; + transition: background-color .15s ease-in-out !important; + border-bottom: none; + &:hover, &:focus { + background-color: var(--default_accent); + } + box-shadow: $shadow; +} + +@mixin buttonLike { + {{ if eq (site.Params.navtype | default "standard") "circles" }} + @include roundButtonLike; + {{ else }} + @include linkLike; + {{ end }} + font-size: #{1.2 * $base_font_size}; +} + +a { + @include linkLike; +} + +a.unstyledLink { + border: none; + text-decoration: none; + color: var(--default_fg); +} + +@mixin limitWidth { + max-width: $content_width; + margin-left: auto; + margin-right: auto; +} + +#content { + @include limitWidth; + padding: $margin; +} + +footer { + color: var(--default_dim_fg); + a { + color: var(--default_dim_fg); + } + hr { + margin-top: (2 * $margin); + } + .footerColumns { + font-size: .9 * $base_font_size * $main_font_mult; + display: flex; + flex-direction: row; + flex-wrap: wrap; + ul { + margin: ($margin / 2); + list-style-type: none; + padding: 0; + li > strong { + font-size: 1rem * $main_font_mult; + } + } + } +} + +#links { + padding: 5px 0; +} + +article, .articlePreview { + img { + margin: auto; + display: block; + max-width: 100%; + } + + pre, code { + overflow: auto; + } + pre { + padding: $margin; + border: 1px solid var(--default_stroke); + border-radius: 3px; + } +} + +code { + font-family: $symbols_font, $mono_font, monospace; + font-size: $base_font_size * .8 * $mono_font_mult; + border: 1px solid var(--default_stroke); + border-radius: 3px +} +code, table { + padding: 2px; +} + +pre code { + border: none; + border-radius: none; + padding: 0 +} + +table { + border-collapse: collapse; + overflow-x: auto; + display: block; + td, th { + padding: 6px; + border: 1px solid var(--default_stroke); + } + th, tr:nth-child(even) { + filter: brightness(105%); + } +} + +blockquote { + margin: 0; + padding-left: ($margin * 2); + border-left: 2px solid currentcolor; +} + +.date, .date a { + color: var(--default_dim_fg); + border-color: var(--default_dim_fg); + font-size: .9em; +} + +#pageNavigation, .nerdlink, nav:not(#TableOfContents) { + a { + border-bottom: none; + &:hover { + border-bottom: none; + } + } +} + +#pageNavigation { + text-align: right; + a { + color: var(--default_accent); + } + a, span { + // appropriately sized tap targets + display: inline-block; + padding: 6px; + } + &.nav-circles { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: flex-end; + align-items: center; + a, span { + margin: 5px; + text-align: center; + display: inline-block; + width: 40px; + height: 40px; + line-height: 40px; + padding: unset; + border-radius: 100%; + transition: background-color .15s ease-in-out; + background-color: var(--default_hl_bg); + color: var(--default_fg); + box-shadow: $shadow; + } + span { + background-color: var(--default_accent); + } + a:hover { + background-color: var(--default_accent); + } + } +} + +h1, h2, h3, h4, h5, h6 { + font-family: $symbols_font, $title_font; + a { + color: var(--default_accent); + {{ if not (.Site.Params.underlineTitleLinks | default false) }} + border-bottom: none; + {{ end }} + } +} + +h1 {font-size: 2.0 * $base_font_size * $title_font_mult;} +h2 {font-size: 1.5 * $base_font_size * $title_font_mult;} +h3 {font-size: 1.3 * $base_font_size * $title_font_mult;} +h4 {font-size: 1.0 * $base_font_size * $title_font_mult;} +h5 {font-size: 0.8 * $base_font_size * $title_font_mult;} +h6 {font-size: 0.7 * $base_font_size * $title_font_mult;} + +.nerd { + font-family: $symbols_font, $main_font; + font-size: 1.2 * $base_font_size; + margin: 5px; + display: inline-block; +} + +.nerdlink { + @extend .nerd; + color: var(--default_fg); + border-bottom: none; + position: relative; + width: 1em; + height: 1.2em; + display: inline-flex; + align-items: center; + justify-content: center; + .pseudofont { + fill: var(--default_fg); + display: inline; + position: relative; + top: 1px; + } + span { + position: absolute; + top: 1.5em; + left: 50%; + transform: translateX(-50%); + padding: 2px; + border: 1px solid var(--default_stroke); + border-radius: 3px; + color: var(--default_fg); + display: none; + background-color: var(--default_bg); + z-index: 900; + text-align: center; + } + &:hover { + .pseudofont { + fill: var(--default_accent); + } + color: var(--default_accent); + text-decoration: none; + border-bottom: none; + span { + display: block; + } + } +} + +.card { + display: block; + padding-bottom: $margin; + + {{ if (.Site.Params.paperCards | default false) }} + background-color: var(--default_hl_bg); + border-radius: $border_radius; + box-shadow: $shadow; + padding: $margin; + padding-top: 1px; + {{ end }} + + &.single { + {{ if (.Site.Params.bigArticleTitle | default false) }} + h1 { + font-size: #{2.2 * $base_font_size * $title_font_mult}; + } + {{ end }} + } +} + +.postlist { + display: grid; + grid-gap: $margin; + margin-bottom: $margin; + grid-template-columns: 1fr; + &.gridView { + grid-template-columns: repeat(auto-fit, minmax(325px, 1fr)); + } +} + +// only hide hr in cards if they are in the article list +// cards in list are divs, cards as in full-blown articles use the article tag +{{ if (.Site.Params.paperCards | default false) }} + .postlistitem.card { + hr { display: none; } + } +{{ end}} + +.postlistitem.card div { + img { + height: 250px; + {{ if (.Site.Params.paperCards | default false) }} + min-width: calc(100% + #{2*$margin}); + margin: 0 #{-$margin}; + {{ else }} + min-width: 100%; + {{ end }} + object-fit: + {{ if .Site.Params.FitImageInArticlePreview }} + contain + {{ else }} + cover + {{ end }}; + } +} + +ul { + li { + margin: 5px 0; + } +} + +ul.list { + .date { + display: inline-block; + min-width: 100px; + } + > li > div { + display: grid; + grid-template-columns: 100px auto; + } +} + +#commento { + margin-top: $margin; + color: var(--default_fg); + font-family: $symbols_font, $main_font, monospace; + textarea, #commento-markdown-help-root { + background: rgba(255, 255, 255, .05); + color: var(--default_fg); + border-radius: 0; + border: none; + td, td>*, td>*>* { + color: var(--default_fg); + pre { + font-family: $symbols_font, $mono_font, monospace; + color: var(--default_dim_fg); + } + } + } + #commento-submit-button-root { + background: var(--default_accent); + color: var(--default_fg); + } + .commento-name { + color: var(--default_dim_fg); + } + .commento-sort-policy-buttons { + a { + border-bottom: none; + } + .commento-sort-policy-button-selected { + color: var(--default_accent); + } + } + .commento-card { + border-top: none; + margin: 25px 0; + } + .commento-body { + >*, *>*, >*>*>*, >*>*>*>*, >*>*>*>*>* { + color: var(--default_fg); + font-family: $symbols_font, $main_font, monospace; + } + } +} + +.search { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-items: center; + margin: $margin 0; + .nerdlink { + display: inline-block; + cursor: pointer; + padding: 0 6px; // appropriately sized tap targets + } + #searchbar { + width: 100%; + min-width: 150px; + font-size: 1.3em; + outline: none; + } +} + +.titleAndSearchContainer { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; + #titleContainer { + flex-grow: 99; + } + .search { + flex-grow: 1; + &, #searchbar {font-size: 1em;} + } +} + +.featuredCardLink { + border: none; + padding: 0; + .featuredCard { + @extend .card; + background-size: cover; + background-position: center; + background-repeat: no-repeat; + position: relative; + height: 250px; + .contentArea { + position: absolute; + bottom: 0; + padding: $margin; + &, h2, .date {color: white;} + h2 { + margin: 0; + } + .date { + margin: 0; + } + } + {{ if (.Site.Params.paperCards | default false) }} + border-radius: $border_radius; + padding: 0; + {{ end }} + } +} + +.loadMoreButton { + text-align: center; + font-size: 1.2em; + font-weight: bold; + &.buttonLike { + a { + @include roundButtonLike; + } + } +} + +.relatedArticlesContainer { + margin: $margin 0; + #relatedArticles .postlistitem { + @extend .featuredCard; + } +} + +#titleContainer { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-items: flex-start; + align-self: flex-start; + + h1 { + font-weight: normal; + font-size: 1.6 * $base_font_size * $title_font_mult; + margin: 0; + {{ if site.Params.logoRightOfTitle }} + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-items: center; + > a { + margin-right: 12px; + } + {{ end }} + } + + img { + margin-right: ($margin / 2); + margin-top: 7px; + align-self: flex-start; + width: 50px; + max-height: 50px; + border-radius: 5px; + } +} + +nav:not(#TableOfContents), #links { + ul { + list-style-type: none; + display: flex; + flex-direction: row; + flex-wrap: wrap; + padding: 0; + margin: 0; + } +} + +header { + @include limitWidth; + padding: $margin; + margin-bottom: $margin; + .rightOfLogo { + width: 100%; + .titleAndHamburger { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-items: flex-start; + justify-content: space-between; + } + } + nav:not(#TableOfContents) { + font-size: .9em; + ul { + li { + {{ if eq .Site.Params.menuStyle "buttons" }} + margin: 5px 2px; + margin-right: 5px; + &:last-child { + margin-right: none; + } + a { + {{ if eq (site.Params.navtype | default "standard") "circles" }} + @include roundButtonLike; + {{ else }} + font-family: $symbols_font, $main_font; + background-color: var(--default_hl_bg); + transition: background-color .15s ease-in-out; + &:hover, &:active { + background-color: var(--default_accent); + } + {{ end }} + box-sizing: border-box; + color: var(--default_fg); + margin: 0; + padding: #{$margin/2} $margin; + } + {{ else }} + border-right: 1px solid var(--default_accent); + &:last-child { + border-right: none; + } + a { + padding: 2px $margin; + color: var(--default_accent); + &:hover { + text-decoration: underline; + } + } + {{ end }} + } + } + } +} + +.articleTagsContainer { + margin: $margin 0; +} + +a.buttonTag { + @include roundButtonLike; +} + +.cactus-button, .cactus-login-buttons > button { + font-family: $main_font; + padding: 0; + margin: 5px 0 5px $margin !important; + @include buttonLike; + transition-property: border-color, background-color !important; + transition-duration: .15s; + transition-timing-function: ease-in-out; + opacity: 1 !important; + &[disabled] { + opacity: .5 !important; + border-color: transparent !important; + background-color: transparent !important; + box-shadow: none; + } +} + +.shareBtn, button { + @include buttonLike; + cursor: pointer; +} + +input, textarea, textarea.cactus-editor-textarea { + {{ if (eq (site.Params.inputStyle | default "standard") "buttons") }} + @include buttonLike; + {{ else }} + border-radius: 0 !important; + {{ end }} + box-sizing: border-box; + font-family: $symbols_font, $main_font; + background-color: var(--default_hl_bg) !important; + color: var(--default_fg); + max-width: 100%; + min-width: 10px; + padding: 12px; + border: 2px solid transparent !important; + border-color: transparent; + transition: border-color .15s ease-in-out !important; + &:focus, &:active { + border-color: var(--default_accent) !important; + outline: none; + } +} + +.cactus-editor-name { + box-sizing: border-box; + max-width: 100%; + min-width: 10px; +} + +.cactus-login-form { + {{ if (eq (site.Params.inputStyle | default "standard") "buttons") }} + border-radius: $border_radius; + {{ else }} + border-radius: 0; + {{ end }} + {{ if (.Site.Params.enableShadow | default false) }} + box-shadow: $shadow; + {{ else }} + box-shadow: none; + border: 2px solid var(--default_stroke); + {{ end }} + max-width: 600px; + min-width: 200px; + width: 100%; + margin: 0 auto; + box-sizing: border-box; + transform: none; + top: #{$margin*2}; + left: 0; right: 0; + background-color: var(--default_bg) !important; + color: var(--default_fg) !important; + z-index: 9999; + > a { // "Use a Matrix client" button + @include buttonLike; + align-self: flex-end; + > button { + background-color: transparent !important; + border: none !important; + box-shadow: none !important; + margin: 0 !important; + padding: 0 !important; + } + } + .cactus-login-buttons { + margin: 0; + justify-content: flex-end; + > button { + flex-grow: 0; + white-space: nowrap; // otherwise labels go 1 line per word + } + } +} + +#fediInstanceDialog { + display: none; + position: fixed; + top: 0; bottom: 0; left: 0; right: 0; + + .dialog { + {{ if (.Site.Params.enableShadow | default false) }} + box-shadow: $shadow; + {{ else }} + box-shadow: none; + border: 2px solid var(--default_stroke); + {{ end }} + box-sizing: border-box; + position: absolute; + display: flex; flex-direction: column; + top: #{$margin*2}; + left: 50%; transform: translateX(-50%); + z-index: 9999; + background-color: var(--default_bg); + width: 450px; + max-width: 100%; + padding: $margin; + {{ if (eq (site.Params.inputStyle | default "standard") "buttons") }} + border-radius: $border_radius; + {{ end }} + h1, h2, h3, h4 { + margin: 0; + } + h2 { + margin-bottom: 24px; + } + input { + display: block; + } + .buttons { + margin: $margin 0; + display: flex; + flex-direction: row; + justify-content: end; + > * { + margin: 5px 0 5px $margin; + display: block; + } + } + } + .bg { + z-index: 99; + position: absolute; + top: 0; bottom: 0; left: 0; right: 0; + background-color: rgba(0, 0, 0, .4); + cursor: pointer; + } + &.open { + display: block; + } +} + +{{ if .Site.Params.mobileHamburgerNav | default false }} + header { + #hamburger-menu { + @extend .nerdlink; + display: none !important; + } + #main-nav-toggler { + display: none; + } + } + + @media only screen and (max-width: 520px) { + header { + .titleAndSearchContainer { + z-index: 9999999 !important; + } + #hamburger-menu { + display: block !important; + font-size: 1.2em; + cursor: pointer; + text-align: center; + margin: 0; + padding: ($margin / 4); + align-self: center; + } + nav:not(#TableOfContents) { + ul#main-nav { + &, li, li a {text-shadow: none !important;} + display: none; + position: absolute; + z-index: 99999; + right: $margin; + padding: 2px 5px; + width: 120px; + {{ if eq .Site.Params.navtype "circles" }} + border-radius: $border_radius; + {{ end }} + border: 2px solid var(--default_stroke); + background-color: var(--default_hl_bg); + flex-direction: column; + li { + border-right: none !important; + display: block; + text-align: center; + margin: 0; + a { + box-shadow: none; + box-sizing: border-box; + display: block; + width: 100%; + padding: 10px; + margin: 3px 0; + } + } + } + #main-nav-toggler:checked ~ #main-nav { + display: flex; + } + } + } + } +{{ end }} + +{{ if and + (.Site.Params.enableJumbotron | default false) + .Site.Data.jumbotron +}} +{{ + $jumbo_fullscreen := (or + (.Site.Data.jumbotron.fullscreen | default false) + (.Site.Data.jumbotron.backgroundVideo) + ) +}} +header { + .jumbotron { display: none; } + max-width: 100%; + > * { + @include limitWidth; + } +} +header.jumbotronContainer { + {{ if (.Site.Data.jumbotron.whiteText | default false) }} + &, *, > * { + color: white !important; + } + #searchbar { + color: var(--default_fg) !important; + } + #main-nav a, .nerdlink:hover { + color: var(--default_fg) !important; + } + .nerdlink span { + color: var(--default_fg) !important; + text-shadow: none; + } + .arrow { + border-color: white !important; + svg , svg * { + fill: white !important; + } + &:hover, &:focus, &:active { + background-color: rgba(0, 0, 0, .7); + svg, svg * { + fill: white !important; + } + } + } + {{ end }} + {{ if (.Site.Data.jumbotron.textShadow | default false) }} + &, * { + text-shadow: 0 0 5px transparentize($light_fg, .3); + } + {{ end }} + > *:first-child { + padding-top: $margin; + } + padding-bottom: 0; + padding-top: 0; + .jumbotron { display: flex; } + {{ if and + .Site.Data.jumbotron.background + (not .Site.Data.jumbotron.backgroundVideo) + }} + background: + linear-gradient( + transparentize($dark_bg, 0.2), + transparentize($dark_bg, 0.2) + ), + url({{ .Site.Data.jumbotron.background }}); + background-size: cover; + background-position: center; + background-repeat: no-repeat; + {{ else if .Site.Data.jumbotron.backgroundVideo }} + background: transparent; + > * { + position: relative; + z-index: 9999; + } + overflow: hidden; + .video_container { + overflow: hidden; + position: absolute; + min-height: 100%; + min-width: 100%; + top: 0; bottom: 0; left: 0; right: 0; + z-index: 0; + background-color: black; + .jumbotron_video { + opacity: {{ .Site.Data.jumbotron.videoOpacity | default 1.0 }}; + position: absolute; + z-index: 0; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + overflow: hidden; + min-height: 100%; + min-width: 100%; + height: 100vh; + } + } + {{ else }} + background-color: rgba(0, 0, 0, .3); + {{ end }} + {{ if $jumbo_fullscreen }} + height: 100vh; + {{ if (.Site.Data.jumbotron.downArrow | default false) }} + margin-bottom: 100px; + .arrow { + position: absolute; + bottom: 24px; + left: 50%; transform: translateX(-50%); + cursor: pointer; + &, svg { + height: 64px; + width: 64px; + } + opacity: .7; + border-radius: 100%; + border: 2px solid var(--default_fg); + padding: 3px; + // display: flex; flex-direction: row; justify-content: center; + background-color: transparent; + transition: background-color .15s ease-in-out; + svg { + margin-top: 5px; + &, * { + fill: var(--default_fg); + transition: fill .15s ease-in-out; + } + @keyframes bounce { + 0% { + transform: translateY(3px); + } + 100% { + transform: translateY(-3px); + } + } + animation: bounce 2s infinite ease-in-out alternate both; + + } + &:hover, &:focus, &:active { + background-color: var(--default_fg); + svg, svg * { + fill: var(--default_bg); + } + } + } + {{ end }} + {{ end }} +} +.jumbotron { + width: 100%; + {{ if $jumbo_fullscreen }} + height: 80vh; + {{ else }} + min-height: 40vh; + {{ end }} + flex-wrap: no-wrap; + text-align: center; + justify-content: center; + align-items: center; + align-content: center; + {{ $jumbotronImagePosition := ( + .Site.Data.jumbotron.imagePosition | default "left" + ) }} + {{ if (eq $jumbotronImagePosition "left") }} + flex-direction: row; + {{ else if (eq $jumbotronImagePosition "right") }} + flex-direction: row-reverse; + {{ else if (eq $jumbotronImagePosition "top") }} + flex-direction: column; + {{ else if (eq $jumbotronImagePosition "bottom") }} + flex-direction: column-reverse; + {{ end }} + .main_box { + display: flex; + flex-direction: column; + text-align: center; + justify-content: center; + align-items: center; + flex-basis: 55%; + flex-grow: 1; + } + img { + flex-basis: 45%; + flex-grow: 1; + max-width: 100vw; + min-width: 200px; + } + h2 { + font-weight: 300; + &.huge { + font-size: 4 * $base_font_size * $title_font_mult; + } + } + h2, h3 { + margin: 12px; + } + ul { + list-style: none; + padding: 0; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + li { + margin: 3px; + a { + &.huge { + font-size: 1.5em; + } + {{ if eq .Site.Params.navtype "circles" }} + @include roundButtonLike; + background-color: transparent; + border: 2px solid var(--default_accent); + {{ end }} + } + } + } +} +@media only screen and (max-width: 520px) { + .jumbotron { + flex-wrap: wrap; + h1.huge { + font-size: 3 * $base_font_size * $title_font_mult !important; + } + h2, h3 { + margin: 6px; + } + } +} +@media only screen and (max-height: 800px) { + .jumbotron { + height: auto; + img { + max-height: 120px; + } + } +} +{{ end }} + +{{ if .Site.Params.enableSidebarLayout | default false }} + $sidebar_width: 350px; + + header { + #sidebar_nav, .sidebarToc { + display: none; + } + #wide_nav { + display: block; + } + } + + @media only screen and (min-width: 950px) { + html{{if .Site.Params.enableJumbotron}}:not(.home){{end}} { + position: fixed; top: 0; bottom: 0; left: 0; right: 0; + color: var(--default_sidebar_fg); + #baseContainer { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + max-height: 100vh; + header { + margin-left: unset; margin-right: unset; + background-color: var(--default_sidebar_bg); + max-width: $sidebar_width; + min-width: $sidebar_width; + height: 100vh; + display: block; + overflow: auto; + margin-bottom: 0; + padding: 0 $margin; + box-shadow: $shadow; + > *:first-child { + padding-bottom: $margin; + padding-top: $margin; + } + .rightOfLogo { + align-self: center; + } + #sidebar_nav { + display: block; + margin: $margin 0; + width: 100%; + nav:not(#TableOfContents) { + font-size: 1.1em; + ul#main-nav { + flex-direction: column; + li { + border-right: none; + a { + display: block; + } + } + } + } + } + #wide_nav { + display: none; + } + .sidebarToc { + display: block; + nav#TableOfContents { + ul { + padding-left: 24px; + a:not(:hover) { + border-color: transparent; + } + } + } + } + } + #contentContainer { + flex-grow: 1; + overflow-y: auto; + } + } + .articleToc { + display: none; + } + } + } + +{{ end }} + + +// transitions at the end so that loading css doens't cause animations + +a { + transition-property: color, border-color; + transition-duration: .15s; + transition-timing-function: ease-in-out; +} + +.nerdlink { + &, .pseudofond { + transition: all .15s ease-in-out; + } +} + +input { + transition: .15s border ease-in-out; +} diff --git a/content/manifest.md b/content/manifest.md new file mode 100644 index 0000000..83b837c --- /dev/null +++ b/content/manifest.md @@ -0,0 +1,8 @@ +--- +title: Manifest +layout: manifest +outputs: + - "json" +norss: true +nosearch: true +--- diff --git a/content/search.md b/content/search.md new file mode 100644 index 0000000..e56adab --- /dev/null +++ b/content/search.md @@ -0,0 +1,10 @@ +--- +title: Search +layout: search +outputs: + - "html" + - "json" +norss: true +nosearch: true +comments: false +--- diff --git a/data/colors.yml b/data/colors.yml new file mode 100644 index 0000000..2f144fc --- /dev/null +++ b/data/colors.yml @@ -0,0 +1,22 @@ +default: dark # light +auto_switch: false # set to true to respect the user preference +dark: + bg: '#242629' # main site background + hl_bg: '#34363b' # card and circle navigation background color for paper card mode + fg: 'white' # font color + dim_fg: '#bababa' # will be used for secondary information like dates and tags + stroke: '#4f4f4f' # stroke/border color used mostly in the icon menu tooltip + accent: '#db5793' # pervasive accent color + sidebar: + bg: '#34363b' # sidebar background + fg: 'white' # sidebar font color +light: + bg: '#f5f5f5' + hl_bg: '#e6e6e6' + fg: '#262625' + dim_fg: '#40403e' + stroke: '#575754' + accent: '#db5793' + sidebar: + bg: '#e6e6e6' + fg: '#121211' diff --git a/data/supported_icons.yml b/data/supported_icons.yml new file mode 100644 index 0000000..7a93562 --- /dev/null +++ b/data/supported_icons.yml @@ -0,0 +1,21 @@ +email: "" +facebook: "" +github: "" +gitlab: "" +gnome: "" +instagram: "" +linkedin: "" +mastodon: "" +matrix: "" +peertube: "" +phone: "" +pleroma: "" +rss: "" +steam: "" +telegram: "" +twitter: "" +xmpp: "ﳽ" +youtube: "" +discord: "ﭮ" +soundcloud: "" + diff --git a/generate_icons.sh b/generate_icons.sh new file mode 100755 index 0000000..7ed5a39 --- /dev/null +++ b/generate_icons.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ -z "$1" ]; then + echo "Usage: $0 path/to/icon.svg" + exit 1 +fi +FNAME=$1 +if [ ! -f "$FNAME" ]; then + echo "Error: file $FNAME doesn't exist" + exit 1 +fi + +DESTDIR="$(dirname "$FNAME")" +convert -density 1200 -background none -resize 32x32 "$FNAME" "$DESTDIR/favicon.ico" +convert -density 1200 -background none -resize 32x32 "$FNAME" "$DESTDIR/favicon.png" +convert -density 1200 -background none -resize 180x180 "$FNAME" "$DESTDIR/apple-touch-icon.png" +convert -density 1200 -background none -resize 192x192 "$FNAME" "$DESTDIR/android-chrome-192x192.png" +convert -density 1200 -background none -resize 512x512 "$FNAME" "$DESTDIR/android-chrome-512x512.png" diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..c3b7490 --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,59 @@ +[404message] +other = "This is not the page you were looking for" + +[searchbarTxt] +other = "Search" + +[tags] +other = "Tags" + +[date] +other = "Date" + +[continueReading] +other = "Continue reading" + +[previousPage] +other = "Previous page" + +[nextPage] +other = "Next page" + +[shareOnTheFediverse] +other = "Share on the Fediverse" + +[enterFediverseInstanceAddress] +other = "Enter your instance's address" + +[fediverseInstanceExample] +other = "Eg. mastodon.social" + +[cancel] +other = "Cancel" + +[share] +other = "Share" + +[themeCopyrightNotice] +other = "Ficurinia theme for Hugo by Gabriele Musco. Licensed under GNU AGPLv3." + +[home] +other = "Home" + +[posts] +other = "Posts" + +[search] +other = "Search" + +[tagsColumn] +other = "Tags:" + +[tagColumn] +other = "Tag:" + +[morePostsLikeThis] +other = "More posts like this" + +[noResultsFound] +other = "No results found" diff --git a/i18n/it.toml b/i18n/it.toml new file mode 100644 index 0000000..57cd38b --- /dev/null +++ b/i18n/it.toml @@ -0,0 +1,59 @@ +[404message] +other = "Questa non è la pagina che stavi cercando" + +[searchbarTxt] +other = "Cerca" + +[tags] +other = "Tag" + +[date] +other = "Data" + +[continueReading] +other = "Continua a leggere" + +[previousPage] +other = "Pagina precedente" + +[nextPage] +other = "Pagina successiva" + +[shareOnTheFediverse] +other = "Condividi sul Fediverse" + +[enterFediverseInstanceAddress] +other = "Inserisci l'indirizzo della tua istanza" + +[fediverseInstanceExample] +other = "Es. mastodon.social" + +[cancel] +other = "Annulla" + +[share] +other = "Condividi" + +[themeCopyrightNotice] +other = "Tema Ficurinia per Hugo creato da Gabriele Musco. Disponibile con licenza GNU AGPLv3." + +[home] +other = "Home" + +[posts] +other = "Post" + +[search] +other = "Cerca" + +[tagsColumn] +other = "Tag:" + +[tagColumn] +other = "Tag:" + +[morePostsLikeThis] +other = "Altri post come questo" + +[noResultsFound] +other = "Nessun risultato trovato" diff --git a/images/screenshot.png b/images/screenshot.png new file mode 100644 index 0000000..eb8f668 Binary files /dev/null and b/images/screenshot.png differ diff --git a/images/tn.png b/images/tn.png new file mode 100644 index 0000000..7b5018e Binary files /dev/null and b/images/tn.png differ diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..f04b7e1 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,7 @@ +{{ define "main" }} +
+

+ {{ i18n "404message" }} +

+
+{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..3b2bc96 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,21 @@ + + + {{- partial "head.html" . -}} + {{- partial "build_assets.html" . -}} + +
+ {{- partial "header.html" . -}} +
+
+
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} +
+
+
+ {{- partial "plausible.html" . -}} + {{- partial "umami.html" . -}} + {{- partial "inject/body.html" . -}} + + diff --git a/layouts/_default/baseof.json b/layouts/_default/baseof.json new file mode 100644 index 0000000..49d010f --- /dev/null +++ b/layouts/_default/baseof.json @@ -0,0 +1 @@ +{{- block "main" . }}{{- end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..4415c13 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,8 @@ +{{ define "main" }} + {{ if in (site.Params.extraContentDirs | default (slice)) .Section }} +

{{ .Section | humanize }}

+ {{- partial "home_post_list.html" (dict "Ctx" . "AllPostsList" .Pages) -}} + {{ else }} + {{- partial "simple_posts_list.html" . -}} + {{ end }} +{{ end }} diff --git a/layouts/_default/manifest.json b/layouts/_default/manifest.json new file mode 100644 index 0000000..3eca3c0 --- /dev/null +++ b/layouts/_default/manifest.json @@ -0,0 +1,37 @@ +{ + "$schema": "https://json.schemastore.org/web-manifest-combined.json", + "name": "{{ .Site.Title }}", + "short_name": "{{ .Site.Title }}", + "start_url": "/", + "display": "standalone", + {{ $bg := (.Site.Data.colors.dark.bg | default "#242629") }} + {{ $accent := (.Site.Data.colors.dark.accent | default "#db5793") }} + {{ if eq .Site.Data.colors.default "light" }} + {{ $bg = (.Site.Data.colors.light.bg | default "#f5f5f5") }} + {{ $accent = (.Site.Data.colors.light.accent | default "#db5793") }} + {{ end }} + "background_color": "{{ $bg }}", + "theme_color": "{{ $accent }}" + {{ if .Site.Params.description }} + , + "description": "{{ .Site.Params.description }}" + {{ end }} + {{ if .Site.Params.icon512 }} + , + "icons": [ + { + "src": "{{ .Site.Params.icon512 }}", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "{{ .Site.Params.icon512 }}", + "sizes": "512x512", + "type": "image/png", + "purpose": "any" + } + ] + {{ end }} +} + diff --git a/layouts/_default/search.html b/layouts/_default/search.html new file mode 100644 index 0000000..a4fab65 --- /dev/null +++ b/layouts/_default/search.html @@ -0,0 +1,44 @@ +{{ define "main" }} + +{{- partial "searchbar.html" . -}} +
+
+{{- partial "js_paginator.html" . -}} + +{{ end }} diff --git a/layouts/_default/search.json b/layouts/_default/search.json new file mode 100644 index 0000000..04d132d --- /dev/null +++ b/layouts/_default/search.json @@ -0,0 +1,27 @@ +{{ define "main" }} +{ + {{ $mscratch := newScratch }} + {{ $mscratch.Add "articles" slice }} + {{ $pages := where .Site.RegularPages "Params.nosearch" "!=" "true" }} + {{ range $pages }} + {{ $image := "" }} + {{ if .Params.Image }} + {{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }} + {{ $image = .Params.Image }} + {{ else }} + {{ $image = print .Permalink "/" .Params.Image }} + {{ end }} + {{ end }} + {{ $mscratch.Add "articles" (dict + "title" .Title + "date" (.Date.Format "2006-01-02") + "tags" (sort (or .Params.tags slice)) + "summary" (or .Params.description .Summary) + "text" (lower .Plain) + "link" .Permalink + "image" $image + "imageAlt" (or .Params.Alt "")) }} + {{ end }} + "pages": {{ $mscratch.Get "articles" | jsonify }} +} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..f20d5db --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{- partial "single_post.html" . -}} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..3a5701a --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,15 @@ +{{ define "main" }} + + {{/* get all the pages that are regular posts and not pages */}} + {{ $postsDir := .Site.Params.Posts | default (slice "posts" "post") }} + {{ $allPostsList := where (where site.RegularPages "Section" "in" $postsDir) "Section" "!=" "" }} + {{- partial "showcase.html" . -}} + {{ if and .Site.Params.showSinglePageAsHome (ne .Site.Params.homeSinglePage "") }} + {{ with .Site.GetPage .Site.Params.homeSinglePage }} + {{- partial "single_post.html" . -}} + {{ end }} + {{ else }} + {{- partial "home_post_list.html" (dict "Ctx" . "AllPostsList" $allPostsList) -}} + {{ end }} + +{{ end }} diff --git a/layouts/index.json b/layouts/index.json new file mode 100644 index 0000000..aff74af --- /dev/null +++ b/layouts/index.json @@ -0,0 +1,38 @@ +{{ define "main" }} +{ + {{ $postsDir := .Site.Params.Posts | default (slice "posts" "post") }} + {{ $allPostsList := where .Site.RegularPages "Section" "in" $postsDir }} + {{ $featuredPostsList := slice }} + {{ $postsList := $allPostsList }} + {{ if .Site.Params.enableFeatured | default false }} + {{ $featuredPostsList = where $allPostsList "Params.featured" true }} + {{ $postsList = union (where $allPostsList "Params.featured" false) (where $allPostsList "Params.featured" nil) }} + {{ end }} + {{ $mscratch := newScratch }} + {{ $mscratch.Add "articles" slice }} + {{ range (.Paginate $postsList).Pages }} + {{ $image := "" }} + {{ if .Params.Image }} + {{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }} + {{ $image = .Params.Image }} + {{ else }} + {{ $image = print .Permalink "/" .Params.Image }} + {{ end }} + {{ end }} + {{ $mscratch.Add "articles" (dict + "title" .Title + "date" (.Date.Format "2006-01-02") + "tags" (sort (or .Params.tags slice)) + "summary" (or .Params.description .Summary) + "link" .Permalink + "image" $image + "imageAlt" (or .Params.Alt "")) }} + {{ end }} + "articles": {{ $mscratch.Get "articles" | jsonify }}, + "test": "{{range $postsList}}{{.Title}} {{end}}", + "page": "{{ .Paginator.PageNumber }}", + "next": {{ if .Paginator.HasNext }} + {{ .Paginator.Next.URL | absURL | jsonify }} + {{ else }}""{{ end }} +} +{{ end }} diff --git a/layouts/index.xml b/layouts/index.xml new file mode 100644 index 0000000..155c39c --- /dev/null +++ b/layouts/index.xml @@ -0,0 +1,46 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := slice -}} +{{- if or $.IsHome $.IsSection -}} +{{- $pages = $pctx.RegularPages -}} +{{- else -}} +{{- $pages = $pctx.Pages -}} +{{- end -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} +{{- printf "" | safeHTML -}} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" -}} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end -}} + {{ .Site.Params.Logo | default "/img/icon.svg" | absURL }} + {{ range $pages }} + {{ if not ( .Params.norss | default false) }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ printf "" | safeHTML }} + {{ if .Params.image }} + + {{ end }} + + {{ end }} + {{ end }} + + diff --git a/layouts/partials/article_card.html b/layouts/partials/article_card.html new file mode 100644 index 0000000..6f428f4 --- /dev/null +++ b/layouts/partials/article_card.html @@ -0,0 +1,42 @@ +
+
+

+ {{ .Title }} +

+

+ + {{- partial "date.html" .Date -}} + {{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }} + | + + {{ range sort .Params.tags }} + #{{ . }} + {{ end }} + {{ end }} +

+ {{ if .Site.Params.imageInArticlePreview }} + {{ if .Params.Image }} + + {{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }} + {{ .Params.Alt }} + {{ else }} + {{ .Params.Alt }} + {{ end }} + + {{ end }} + {{end}} + {{ if (site.Params.articleSummary | default true) }} +
+

+ {{ if .Params.description }} + {{ .Params.description }} + {{ else }} + {{.Summary }} + {{ end }} +

+

{{ i18n "continueReading" }} 

+
+ {{ end }} +
+
+
diff --git a/layouts/partials/build_assets.html b/layouts/partials/build_assets.html new file mode 100644 index 0000000..216434e --- /dev/null +++ b/layouts/partials/build_assets.html @@ -0,0 +1,10 @@ +{{/* + This partial builds non-standard assets (like xsl files) with the template + engine. It is necessary to do it this way to reduce user friction and + ensure that the file is there. +*/}} +{{ if .IsHome }} + {{ $feed_style_xsl_template := resources.Get "feed_style.xsl" }} + {{ $feed_style_xsl := $feed_style_xsl_template | resources.ExecuteAsTemplate "feed_style.xsl" . }} + {{ $noop := $feed_style_xsl.Permalink }} +{{ end }} diff --git a/layouts/partials/cactus_chat.html b/layouts/partials/cactus_chat.html new file mode 100644 index 0000000..e2dac46 --- /dev/null +++ b/layouts/partials/cactus_chat.html @@ -0,0 +1,15 @@ +{{ if and site.Params.cactusCommentsSiteName (.Params.comments | default true) }} + + +
+ + +{{ end }} diff --git a/layouts/partials/commento.html b/layouts/partials/commento.html new file mode 100644 index 0000000..e425eac --- /dev/null +++ b/layouts/partials/commento.html @@ -0,0 +1,8 @@ +{{ if and .Site.Params.commento (.Params.comments | default true) }} + +
+{{ end }} diff --git a/layouts/partials/date.html b/layouts/partials/date.html new file mode 100644 index 0000000..bbaaf31 --- /dev/null +++ b/layouts/partials/date.html @@ -0,0 +1,5 @@ +{{ if site.Params.dateFormat }} + {{ .Format site.Params.dateFormat }} +{{ else }} + {{ .Format "2006-01-02" }} +{{ end }} diff --git a/layouts/partials/featured_articles.html b/layouts/partials/featured_articles.html new file mode 100644 index 0000000..48546a1 --- /dev/null +++ b/layouts/partials/featured_articles.html @@ -0,0 +1,37 @@ + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..9834367 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,11 @@ +
+
+ {{- partial "inject/footer.html" . -}} + {{- partial "footer_columns.html" . -}} +

+ {{ now.Format "2006" }} © {{ .Site.Copyright | markdownify }} +

+

+ {{ i18n "themeCopyrightNotice" | safeHTML }} +

+
diff --git a/layouts/partials/footer_columns.html b/layouts/partials/footer_columns.html new file mode 100644 index 0000000..63ba0f6 --- /dev/null +++ b/layouts/partials/footer_columns.html @@ -0,0 +1,12 @@ +{{ if (and (.Site.Params.enableFooterColumns | default false) .Site.Data.footer_columns) }} +
+ {{ range .Site.Data.footer_columns }} +
    +
  • {{ .title }}
  • + {{ range .links }} +
  • {{ .title }}
  • + {{ end }} +
+ {{ end }} +
+{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..6dda6e7 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,44 @@ + + {{ if .Site.Params.forceRedirect }} + + {{ end }} + + + + + {{ if .OutputFormats.Get "RSS" }} + {{ with .OutputFormats.Get "RSS" }} + + + {{ end }} + {{ end }} + + {{- partial "head_icons.html" . -}} + + + {{ if and (.Title) (ne .Title .Site.Title) }} + {{ .Title }} – + {{ end }} + {{ .Site.Title | default "Ficurinia" }} + + + {{/* + how to update these hashes: + https://gitlab.com/gabmus/hugo-ficurinia/-/merge_requests/5 + */}} + + + + {{ if and site.Params.cactusCommentsSiteName (.Params.comments | default true) }} + + {{ end }} + {{ $style := resources.Get "/scss/style.scss" | resources.ExecuteAsTemplate "/scss/style.scss" . | resources.ToCSS (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") | resources.Fingerprint "sha512" }} + + {{- partial "inject/head.html" . -}} + {{- partial "head_meta_seo.html" . -}} + {{- partial "head_meta_opengraph.html" . -}} + {{- partial "head_meta_twitter.html" . -}} + + diff --git a/layouts/partials/head_icons.html b/layouts/partials/head_icons.html new file mode 100644 index 0000000..1716d3f --- /dev/null +++ b/layouts/partials/head_icons.html @@ -0,0 +1,20 @@ + + + +{{ if .Site.Params.svgicon }} + +{{ end }} diff --git a/layouts/partials/head_meta_opengraph.html b/layouts/partials/head_meta_opengraph.html new file mode 100644 index 0000000..9bffc55 --- /dev/null +++ b/layouts/partials/head_meta_opengraph.html @@ -0,0 +1,42 @@ + +{{ if .IsPage }} + + + + + + {{ if .Params.tags }} + {{ range sort .Params.tags }} + + {{ end }} + {{ end }} + + {{ $image := .Site.Params.icon512 | default "/img/icon.svg" }} + {{ if .Params.Image }} + {{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }} + {{ $image = .Params.Image }} + {{ else }} + {{ $image = print .Permalink "/" .Params.Image }} + {{ end }} + {{ end }} + + {{ if .Params.description }} + + {{ else }} + + {{ end }} +{{ else }} + + {{ if .Site.Params.description }} + + {{ end }} + + +{{ end }} diff --git a/layouts/partials/head_meta_seo.html b/layouts/partials/head_meta_seo.html new file mode 100644 index 0000000..fb606ff --- /dev/null +++ b/layouts/partials/head_meta_seo.html @@ -0,0 +1,15 @@ + +{{ if .IsPage }} + {{ if .Params.tags }} + + {{ end }} + {{ if .Params.description }} + + {{ else }} + + {{ end }} +{{ else }} + {{ if .Site.Params.description }} + + {{ end }} +{{ end }} diff --git a/layouts/partials/head_meta_twitter.html b/layouts/partials/head_meta_twitter.html new file mode 100644 index 0000000..60b07ce --- /dev/null +++ b/layouts/partials/head_meta_twitter.html @@ -0,0 +1,33 @@ + + + + +{{ if .IsPage }} + + + {{ $image := .Site.Params.icon512 | default "/img/icon.svg" }} + {{ if .Params.Image }} + {{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }} + {{ $image = .Params.Image }} + {{ else }} + {{ $image = print .Permalink "/" .Params.Image }} + {{ end }} + {{ end }} + + {{ if .Params.description }} + + {{ else }} + + {{ end }} +{{ else }} + + {{ if .Site.Params.description }} + + {{ end }} + +{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..929af92 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,63 @@ +
+ {{- partial "inject/header-before.html" . -}} +
+
+ {{ if not (.Site.Params.logoRightOfTitle | default false) }} + + {{ .Site.Params.LogoAltText | default "Logo" }} + + {{ end }} + +
+ {{ if and (.Site.Params.searchbarEverywhere | default true) (and (.Site.Params.enableSearch | default true) (not (eq .Title "Search"))) }} + {{- partial "searchbar.html" . -}} + {{ end }} +
+ + {{ if and + (.Site.Params.enableSidebarLayout | default false) + (or + (not (.Site.Params.enableJumbotron | default false)) + (not .IsHome) + ) + }} + + {{ if and .IsPage .Params.toc }} +
+
+ {{ .TableOfContents }} +
+ {{ end }} + {{ end }} + {{- partial "inject/header-after.html" . -}} + {{- partial "jumbotron.html" . -}} +
diff --git a/layouts/partials/header_navigation.html b/layouts/partials/header_navigation.html new file mode 100644 index 0000000..7a52d73 --- /dev/null +++ b/layouts/partials/header_navigation.html @@ -0,0 +1,30 @@ + diff --git a/layouts/partials/home_post_list.html b/layouts/partials/home_post_list.html new file mode 100644 index 0000000..8c379b3 --- /dev/null +++ b/layouts/partials/home_post_list.html @@ -0,0 +1,23 @@ +{{ $allPostsList := .AllPostsList }} +{{ $postsList := $allPostsList }} +{{ $featuredPostsList := slice }} +{{ $pagination := slice }} +{{ if site.Params.enableFeatured | default false }} + {{ $featuredPostsList = where $allPostsList "Params.featured" true }} + {{ $postsList = union (where $allPostsList "Params.featured" false) (where $allPostsList "Params.featured" nil) }} + {{ $pagination = (.Ctx.Paginate $postsList).Pages }} + {{ if eq .Ctx.Paginator.PageNumber 1 }} + {{- partial "featured_articles.html" $featuredPostsList -}} + {{ end }} +{{ else }} + {{ $pagination = (.Ctx.Paginate $postsList).Pages }} +{{ end }} + +{{/* pagination */}} +
+{{ range $pagination }} + {{- partial "article_card.html" . -}} +{{ end }} +
+
+{{- partial "paginator.html" .Ctx -}} diff --git a/layouts/partials/iconlink.html b/layouts/partials/iconlink.html new file mode 100644 index 0000000..bd93b85 --- /dev/null +++ b/layouts/partials/iconlink.html @@ -0,0 +1,19 @@ + + {{ $icon := index site.Data.supported_icons (lower .Identifier) | safeHTML }} + {{ if $icon }} + {{ $icon | safeHTML }} + {{ else }} + {{ .Name }} + {{ end }} + + {{ .Name }} + + diff --git a/layouts/partials/inject/body.html b/layouts/partials/inject/body.html new file mode 100644 index 0000000..4d25fcc --- /dev/null +++ b/layouts/partials/inject/body.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/inject/content-after.html b/layouts/partials/inject/content-after.html new file mode 100644 index 0000000..ae7a28b --- /dev/null +++ b/layouts/partials/inject/content-after.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/inject/content-before.html b/layouts/partials/inject/content-before.html new file mode 100644 index 0000000..2528f4f --- /dev/null +++ b/layouts/partials/inject/content-before.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/inject/footer.html b/layouts/partials/inject/footer.html new file mode 100644 index 0000000..5409872 --- /dev/null +++ b/layouts/partials/inject/footer.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/inject/head.html b/layouts/partials/inject/head.html new file mode 100644 index 0000000..addac4c --- /dev/null +++ b/layouts/partials/inject/head.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/inject/header-after.html b/layouts/partials/inject/header-after.html new file mode 100644 index 0000000..4589529 --- /dev/null +++ b/layouts/partials/inject/header-after.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/inject/header-before.html b/layouts/partials/inject/header-before.html new file mode 100644 index 0000000..b1a7c16 --- /dev/null +++ b/layouts/partials/inject/header-before.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/js_paginator.html b/layouts/partials/js_paginator.html new file mode 100644 index 0000000..3371f2d --- /dev/null +++ b/layouts/partials/js_paginator.html @@ -0,0 +1,47 @@ + diff --git a/layouts/partials/jumbotron.html b/layouts/partials/jumbotron.html new file mode 100644 index 0000000..36a9ead --- /dev/null +++ b/layouts/partials/jumbotron.html @@ -0,0 +1,89 @@ +{{ if and .IsHome (and (.Site.Params.enableJumbotron | default false) .Site.Data.jumbotron) }} + {{ + $jumbo_fullscreen := (or + (.Site.Data.jumbotron.fullscreen | default false) + (.Site.Data.jumbotron.backgroundVideo) + ) + }} + {{ if .Site.Data.jumbotron.backgroundVideo }} +
+ +
+ {{ end }} +
+ {{ if .Site.Data.jumbotron.image }} + + {{ end }} +
+

{{ .Site.Data.jumbotron.title }}

+

{{ .Site.Data.jumbotron.subtitle }}

+ {{ if .Site.Data.jumbotron.backgroundVideo }} + + + {{ end }} + {{ if .Site.Data.jumbotron.links }} + + {{ end }} +
+
+ {{ if ( + and + $jumbo_fullscreen + (.Site.Data.jumbotron.downArrow | default false) + ) }} +
+ + + +
+ + {{ end }} +{{ end }} diff --git a/layouts/partials/nerdlink.html b/layouts/partials/nerdlink.html new file mode 100644 index 0000000..acf4a32 --- /dev/null +++ b/layouts/partials/nerdlink.html @@ -0,0 +1,55 @@ + + + {{ if eq (lower (index . 0)) "gitlab" }} +  + {{ else if eq (lower (index . 0)) "gnome" }} +  + {{ else if eq (lower (index . 0)) "youtube" }} +  + {{ else if eq (lower (index . 0)) "email" }} +  + {{ else if eq (lower (index . 0)) "twitter" }} +  + {{ else if eq (lower (index . 0)) "instagram" }} +  + {{ else if eq (lower (index . 0)) "facebook" }} +  + {{ else if eq (lower (index . 0)) "github" }} +  + {{ else if eq (lower (index . 0)) "linkedin" }} +  + {{ else if eq (lower (index . 0)) "telegram" }} +  + {{ else if eq (lower (index . 0)) "xmpp" }} + ﳽ + {{ else if eq (lower (index . 0)) "pleroma" }} + + + + {{ else if eq (lower (index . 0)) "peertube" }} + + + + {{ else if eq (lower (index . 0)) "matrix" }} + + + + {{ else if eq (lower (index . 0)) "mastodon" }} + + + + {{ else if eq (lower (index . 0)) "phone" }} +  + {{ else if eq (lower (index . 0)) "rss" }} +  + {{ else }} + {{ index . 0 }} + {{ end }} + + {{ index . 0 }} + + diff --git a/layouts/partials/paginator.html b/layouts/partials/paginator.html new file mode 100644 index 0000000..a54123d --- /dev/null +++ b/layouts/partials/paginator.html @@ -0,0 +1,66 @@ +{{ if .Site.Params.infiniteScrolling }} +{{- partial "js_paginator.html" . -}} + +{{ end }} +{{ if .Site.Params.infiniteScrolling }}{{ end }} diff --git a/layouts/partials/plausible.html b/layouts/partials/plausible.html new file mode 100644 index 0000000..a16fcfc --- /dev/null +++ b/layouts/partials/plausible.html @@ -0,0 +1,10 @@ +{{ if .Site.Params.plausibleScriptUrl }} + {{ if .Site.Params.plausibleDomain }} + + {{ end }} +{{ end }} diff --git a/layouts/partials/related_articles.html b/layouts/partials/related_articles.html new file mode 100644 index 0000000..995d902 --- /dev/null +++ b/layouts/partials/related_articles.html @@ -0,0 +1,23 @@ +{{ if and (.Site.Params.enableRelatedArticles | default false) .Params.tags }} + {{ $postsList := + where ( + where ( + where site.RegularPages "Params.tags" "!=" nil + ) "Params.tags" "intersect" .Params.tags + ) "Permalink" "ne" .Permalink + }} + {{ if $postsList }} + {{ if site.Params.randomRelated | default false }} + {{ $postsList = shuffle $postsList }} + {{ end }} +
+
+

{{ i18n "morePostsLikeThis" }}

+
+ {{ range first (.Site.Params.relatedArticlesNum | default 2) $postsList }} + {{- partial "article_card.html" . -}} + {{ end }} +
+
+ {{ end }} +{{ end }} diff --git a/layouts/partials/searchbar.html b/layouts/partials/searchbar.html new file mode 100644 index 0000000..dbe7303 --- /dev/null +++ b/layouts/partials/searchbar.html @@ -0,0 +1,12 @@ + + diff --git a/layouts/partials/share_on_fediverse.html b/layouts/partials/share_on_fediverse.html new file mode 100644 index 0000000..9e6b566 --- /dev/null +++ b/layouts/partials/share_on_fediverse.html @@ -0,0 +1,45 @@ +{{ if site.Params.enableShareOnFediverse | default false }} + +
+
+
+

{{ i18n "enterFediverseInstanceAddress" }}

+ + +
+
+ +{{ end }} diff --git a/layouts/partials/showcase.html b/layouts/partials/showcase.html new file mode 100644 index 0000000..a29227a --- /dev/null +++ b/layouts/partials/showcase.html @@ -0,0 +1,19 @@ +{{ if .Site.Params.showcaseDir }} +{{ $showcasePosts := where site.RegularPages "Section" "in" .Site.Params.showcaseDir }} +
+ {{ range (sort $showcasePosts "File.LogicalName") }} + {{ if in .File.Dir .Site.Params.showcaseDir }} +
+
+

{{ .Title }}

+ {{ if .Params.image }} + + {{ end }} +
{{ .Content }}
+
+
+ {{ end }} + {{ end }} +
+
+{{ end }} diff --git a/layouts/partials/simple_posts_list.html b/layouts/partials/simple_posts_list.html new file mode 100644 index 0000000..d7a68b4 --- /dev/null +++ b/layouts/partials/simple_posts_list.html @@ -0,0 +1,35 @@ +

+ {{ $title := .Title }} + {{ $section := .Section | humanize }} + {{ if and (ne $section $title) (ne $section "Tags") (ne $title (printf "%ss" $section)) }} + {{ $section }}: + {{ end }} + {{ if and (eq $section "Tags") (eq $section $title) }} + {{ i18n "tagsColumn" }} + {{ else }} + {{ if and (eq $section "Tags") (ne $section $title) }}{{ i18n "tagColumn" }} #{{ end }}{{ $title }} + {{ end }} +

+
    + {{ if and (eq $section "Tags") (eq $section $title) }} + {{/* if we're in the Tags section, sort alphabetically and don't show the date */}} + {{ range (sort .Pages "Title") }} +
  • + #{{ .Title }} +
  • + {{ end }} + {{ else }} + {{ range .Pages }} +
  • +
    + + {{- partial "date.html" .Date -}} + + + {{ .Title }} + +
    +
  • + {{ end }} + {{ end }} +
diff --git a/layouts/partials/single_post.html b/layouts/partials/single_post.html new file mode 100644 index 0000000..f15d516 --- /dev/null +++ b/layouts/partials/single_post.html @@ -0,0 +1,54 @@ +{{- partial "inject/content-before.html" . -}} +
+ {{ if .Params.showTitle | default true }} +

{{ .Title }}

+ {{ end }} + {{ if (.Params.showDate | default true) }} +

+ + {{- partial "date.html" .Date -}} +

+ {{ end }} + {{ if and (.Params.toc | default false) (.Site.Params.tocBeforeImage | default false) }} + {{- partial "toc.html" . -}} + {{ end }} + {{ if .Params.Image }} +
+ {{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }} + {{ .Params.Alt }} + {{ else }} + {{ .Params.Alt }} + {{ end }} + {{ if .Params.ImageCaption }} +
+

{{ .Params.ImageCaption | markdownify }}

+
+ {{ end }} +
+ {{ end }} + {{ if and (.Params.toc | default false) (not (.Site.Params.tocBeforeImage | default false)) }} + {{- partial "toc.html" . -}} + {{ end }} +
{{ .Content }}
+
+{{ if .Params.tags }} + {{ if not .Site.Params.paperCards }}
{{ end }} + +{{ end }} +{{- partial "inject/content-after.html" . -}} +{{ if .Params.showShare | default true }} + {{- partial "share_on_fediverse.html" . -}} +{{ end }} +{{- partial "commento.html" . -}} +{{- partial "cactus_chat.html" . -}} +{{- partial "related_articles.html" . -}} diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html new file mode 100644 index 0000000..d99f4d7 --- /dev/null +++ b/layouts/partials/toc.html @@ -0,0 +1,4 @@ +
+ {{ .TableOfContents }} +
+
diff --git a/layouts/partials/umami.html b/layouts/partials/umami.html new file mode 100644 index 0000000..2890627 --- /dev/null +++ b/layouts/partials/umami.html @@ -0,0 +1,10 @@ +{{ if .Site.Params.umamiScriptUrl }} + {{ if .Site.Params.umamiWebsiteId }} + + {{ end }} +{{ end }} diff --git a/layouts/shortcodes/imgwwidth.html b/layouts/shortcodes/imgwwidth.html new file mode 100644 index 0000000..3ea3d15 --- /dev/null +++ b/layouts/shortcodes/imgwwidth.html @@ -0,0 +1 @@ +{{ .Get "alt" }} diff --git a/layouts/shortcodes/video.html b/layouts/shortcodes/video.html new file mode 100644 index 0000000..ede2c0e --- /dev/null +++ b/layouts/shortcodes/video.html @@ -0,0 +1,33 @@ +{{ $h265 := .Get "h265" }} +{{ $h264 := .Get "h264" }} +{{ $vp9 := .Get "vp9" }} +{{ $vp8 := .Get "vp8" }} +{{ $caption := .Get "caption" }} +{{ $attr := .Get "attr" }} +{{ $attrlink := .Get "attrlink" }} +
+ + {{ if or $caption $attr }} +
+ {{ if $caption }} +

{{ . }}

+ {{ end }} +

+ {{ if $attrlink }}{{ end }}{{ $attr }}{{ if $attrlink }}{{ end }} +

+
+ {{ end }} +
diff --git a/static/android-chrome-192x192.png b/static/android-chrome-192x192.png new file mode 100644 index 0000000..4f137e6 Binary files /dev/null and b/static/android-chrome-192x192.png differ diff --git a/static/android-chrome-512x512.png b/static/android-chrome-512x512.png new file mode 100644 index 0000000..721d693 Binary files /dev/null and b/static/android-chrome-512x512.png differ diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png new file mode 100644 index 0000000..d76dba3 Binary files /dev/null and b/static/apple-touch-icon.png differ diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..cb5f125 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 0000000..2d1a502 Binary files /dev/null and b/static/favicon.png differ diff --git a/static/jetbrains-mono/jetbrains-mono-bold-italic-latin-ext.woff2 b/static/jetbrains-mono/jetbrains-mono-bold-italic-latin-ext.woff2 new file mode 100644 index 0000000..e576049 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-bold-italic-latin-ext.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-bold-italic-latin.woff2 b/static/jetbrains-mono/jetbrains-mono-bold-italic-latin.woff2 new file mode 100644 index 0000000..4b69c85 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-bold-italic-latin.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-bold-latin-ext.woff2 b/static/jetbrains-mono/jetbrains-mono-bold-latin-ext.woff2 new file mode 100644 index 0000000..6496d65 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-bold-latin-ext.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-bold-latin.woff2 b/static/jetbrains-mono/jetbrains-mono-bold-latin.woff2 new file mode 100644 index 0000000..9df6576 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-bold-latin.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-extra-bold-italic-latin-ext.woff2 b/static/jetbrains-mono/jetbrains-mono-extra-bold-italic-latin-ext.woff2 new file mode 100644 index 0000000..c22d4bd Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-extra-bold-italic-latin-ext.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-extra-bold-italic-latin.woff2 b/static/jetbrains-mono/jetbrains-mono-extra-bold-italic-latin.woff2 new file mode 100644 index 0000000..7483c47 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-extra-bold-italic-latin.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-extra-bold-latin-ext.woff2 b/static/jetbrains-mono/jetbrains-mono-extra-bold-latin-ext.woff2 new file mode 100644 index 0000000..6d1bb03 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-extra-bold-latin-ext.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-extra-bold-latin.woff2 b/static/jetbrains-mono/jetbrains-mono-extra-bold-latin.woff2 new file mode 100644 index 0000000..1a367b9 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-extra-bold-latin.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-italic-latin-ext.woff2 b/static/jetbrains-mono/jetbrains-mono-italic-latin-ext.woff2 new file mode 100644 index 0000000..161311d Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-italic-latin-ext.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-italic-latin.woff2 b/static/jetbrains-mono/jetbrains-mono-italic-latin.woff2 new file mode 100644 index 0000000..b9c5c09 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-italic-latin.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-light-italic-latin-ext.woff2 b/static/jetbrains-mono/jetbrains-mono-light-italic-latin-ext.woff2 new file mode 100644 index 0000000..f3840f9 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-light-italic-latin-ext.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-light-italic-latin.woff2 b/static/jetbrains-mono/jetbrains-mono-light-italic-latin.woff2 new file mode 100644 index 0000000..739aacc Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-light-italic-latin.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-light-latin-ext.woff2 b/static/jetbrains-mono/jetbrains-mono-light-latin-ext.woff2 new file mode 100644 index 0000000..1c31fdd Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-light-latin-ext.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-light-latin.woff2 b/static/jetbrains-mono/jetbrains-mono-light-latin.woff2 new file mode 100644 index 0000000..14ee7c4 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-light-latin.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-medium-italic-latin-ext.woff2 b/static/jetbrains-mono/jetbrains-mono-medium-italic-latin-ext.woff2 new file mode 100644 index 0000000..5cb4302 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-medium-italic-latin-ext.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-medium-italic-latin.woff2 b/static/jetbrains-mono/jetbrains-mono-medium-italic-latin.woff2 new file mode 100644 index 0000000..dc3c9c7 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-medium-italic-latin.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-medium-latin-ext.woff2 b/static/jetbrains-mono/jetbrains-mono-medium-latin-ext.woff2 new file mode 100644 index 0000000..a355e4e Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-medium-latin-ext.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-medium-latin.woff2 b/static/jetbrains-mono/jetbrains-mono-medium-latin.woff2 new file mode 100644 index 0000000..61d7aa5 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-medium-latin.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-regular-latin-ext.woff2 b/static/jetbrains-mono/jetbrains-mono-regular-latin-ext.woff2 new file mode 100644 index 0000000..5b182eb Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-regular-latin-ext.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono-regular-latin.woff2 b/static/jetbrains-mono/jetbrains-mono-regular-latin.woff2 new file mode 100644 index 0000000..433ef97 Binary files /dev/null and b/static/jetbrains-mono/jetbrains-mono-regular-latin.woff2 differ diff --git a/static/jetbrains-mono/jetbrains-mono.css b/static/jetbrains-mono/jetbrains-mono.css new file mode 100644 index 0000000..eeab84a --- /dev/null +++ b/static/jetbrains-mono/jetbrains-mono.css @@ -0,0 +1,161 @@ +/* jetbrains-mono-regular-latin */ +@font-face { + font-family: JetBrains Mono; + font-style: normal; + font-weight: 400; + src: local("JetBrains Mono Regular"), local("JetBrainsMono-Regular"), url(jetbrains-mono-regular-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215; +} +/* jetbrains-mono-regular-latin-ext */ +@font-face { + font-family: JetBrains Mono; + font-style: normal; + font-weight: 400; + src: local("JetBrains Mono Regular"), local("JetBrainsMono-Regular"), url(jetbrains-mono-regular-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; +} +/* jetbrains-mono-medium-italic-latin */ +@font-face { + font-family: JetBrains Mono; + font-style: italic; + font-weight: 500; + src: local("JetBrains Mono Medium Italic"), local("JetBrainsMono-MediumItalic"), url(jetbrains-mono-medium-italic-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215; +} +/* jetbrains-mono-medium-italic-latin-ext */ +@font-face { + font-family: JetBrains Mono; + font-style: italic; + font-weight: 500; + src: local("JetBrains Mono Medium Italic"), local("JetBrainsMono-MediumItalic"), url(jetbrains-mono-medium-italic-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; +} +/* jetbrains-mono-medium-latin */ +@font-face { + font-family: JetBrains Mono; + font-style: normal; + font-weight: 500; + src: local("JetBrains Mono Medium"), local("JetBrainsMono-Medium"), url(jetbrains-mono-medium-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215; +} +/* jetbrains-mono-medium-latin-ext */ +@font-face { + font-family: JetBrains Mono; + font-style: normal; + font-weight: 500; + src: local("JetBrains Mono Medium"), local("JetBrainsMono-Medium"), url(jetbrains-mono-medium-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; +} +/* jetbrains-mono-light-italic-latin */ +@font-face { + font-family: JetBrains Mono; + font-style: italic; + font-weight: 300; + src: local("JetBrains Mono Light Italic"), local("JetBrainsMono-LightItalic"), url(jetbrains-mono-light-italic-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215; +} +/* jetbrains-mono-light-italic-latin-ext */ +@font-face { + font-family: JetBrains Mono; + font-style: italic; + font-weight: 300; + src: local("JetBrains Mono Light Italic"), local("JetBrainsMono-LightItalic"), url(jetbrains-mono-light-italic-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; +} +/* jetbrains-mono-light-latin */ +@font-face { + font-family: JetBrains Mono; + font-style: normal; + font-weight: 300; + src: local("JetBrains Mono Light"), local("JetBrainsMono-Light"), url(jetbrains-mono-light-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215; +} +/* jetbrains-mono-light-latin-ext */ +@font-face { + font-family: JetBrains Mono; + font-style: normal; + font-weight: 300; + src: local("JetBrains Mono Light"), local("JetBrainsMono-Light"), url(jetbrains-mono-light-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; +} +/* jetbrains-mono-italic-latin */ +@font-face { + font-family: JetBrains Mono; + font-style: italic; + font-weight: 400; + src: local("JetBrains Mono Italic"), local("JetBrainsMono-Italic"), url(jetbrains-mono-italic-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215; +} +/* jetbrains-mono-italic-latin-ext */ +@font-face { + font-family: JetBrains Mono; + font-style: italic; + font-weight: 400; + src: local("JetBrains Mono Italic"), local("JetBrainsMono-Italic"), url(jetbrains-mono-italic-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; +} +/* jetbrains-mono-extra-bold-italic-latin */ +@font-face { + font-family: JetBrains Mono; + font-style: italic; + font-weight: 700; + src: local("JetBrains Mono Extra Bold Italic"), local("JetBrainsMono-ExtraBoldItalic"), url(jetbrains-mono-extra-bold-italic-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215; +} +/* jetbrains-mono-extra-bold-italic-latin-ext */ +@font-face { + font-family: JetBrains Mono; + font-style: italic; + font-weight: 700; + src: local("JetBrains Mono Extra Bold Italic"), local("JetBrainsMono-ExtraBoldItalic"), url(jetbrains-mono-extra-bold-italic-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; +} +/* jetbrains-mono-extra-bold-latin */ +@font-face { + font-family: JetBrains Mono; + font-style: normal; + font-weight: 700; + src: local("JetBrains Mono Extra Bold"), local("JetBrainsMono-ExtraBold"), url(jetbrains-mono-extra-bold-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215; +} +/* jetbrains-mono-extra-bold-latin-ext */ +@font-face { + font-family: JetBrains Mono; + font-style: normal; + font-weight: 700; + src: local("JetBrains Mono Extra Bold"), local("JetBrainsMono-ExtraBold"), url(jetbrains-mono-extra-bold-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; +} +/* jetbrains-mono-bold-italic-latin */ +@font-face { + font-family: JetBrains Mono; + font-style: italic; + font-weight: 700; + src: local("JetBrains Mono Bold Italic"), local("JetBrainsMono-BoldItalic"), url(jetbrains-mono-bold-italic-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215; +} +/* jetbrains-mono-bold-italic-latin-ext */ +@font-face { + font-family: JetBrains Mono; + font-style: italic; + font-weight: 700; + src: local("JetBrains Mono Bold Italic"), local("JetBrainsMono-BoldItalic"), url(jetbrains-mono-bold-italic-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; +} +/* jetbrains-mono-bold-latin */ +@font-face { + font-family: JetBrains Mono; + font-style: normal; + font-weight: 700; + src: local("JetBrains Mono Bold"), local("JetBrainsMono-Bold"), url(jetbrains-mono-bold-latin.woff2) format("woff2"); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215; +} +/* jetbrains-mono-bold-latin-ext */ +@font-face { + font-family: JetBrains Mono; + font-style: normal; + font-weight: 700; + src: local("JetBrains Mono Bold"), local("JetBrainsMono-Bold"), url(jetbrains-mono-bold-latin-ext.woff2) format("woff2"); + unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF; +} + diff --git a/static/logo.svg b/static/logo.svg new file mode 100644 index 0000000..1fb0794 --- /dev/null +++ b/static/logo.svg @@ -0,0 +1,169 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..7d329b1 --- /dev/null +++ b/static/robots.txt @@ -0,0 +1 @@ +User-agent: * diff --git a/static/symbols-nerd-font/symbols-2048-em-nerd-font-complete.woff2 b/static/symbols-nerd-font/symbols-2048-em-nerd-font-complete.woff2 new file mode 100644 index 0000000..75b8818 Binary files /dev/null and b/static/symbols-nerd-font/symbols-2048-em-nerd-font-complete.woff2 differ diff --git a/static/symbols-nerd-font/symbols-nerd-font.css b/static/symbols-nerd-font/symbols-nerd-font.css new file mode 100644 index 0000000..393577c --- /dev/null +++ b/static/symbols-nerd-font/symbols-nerd-font.css @@ -0,0 +1,8 @@ +/* symbols-2048-em-nerd-font-complete */ +@font-face { + font-family: Symbols Nerd Font; + font-style: normal; + font-weight: 400; + src: local("Symbols-2048-em Nerd Font Complete"), local("SymbolsNerdFontComplete-2048-em"), url(symbols-2048-em-nerd-font-complete.woff2) format("woff2"); +} + diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..d127c23 --- /dev/null +++ b/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Hugo Ficurinia" +license = "AGPL3" +licenselink = "https://gitlab.com/gabmus/hugo-ficurinia/-/blob/master/LICENSE" +description = "A prickly blog theme for Hugo" +homepage = "https://gitlab.com/gabmus/hugo-ficurinia" +tags = ["blog", "dark", "customizable", "simple"] +features = ["posts", "shortcodes", "comments", "analytics"] + +logo = "/img/logo.png" + +[author] + name = "Gabriele Musco" + homepage = "https://gabmus.org" + +[module] + [module.hugoVersion] + extended = true + min = "0.80.0"